473,511 Members | 16,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Element 'Element Name Here' is not a known element. This can occur if there is a compilation error in the Web

I'm unable to build a web project that has a custom .NET control that I
downloaded

(from: http://blogs.msdn.com/dmitryr/archiv...26/561200.aspx)

I'm running VS 2005, ASP.NET 2.0 on my local development box. I created a
new web site with a single test page in it. I also right-clicked the
project added a Bin folder. Then I added the DLL that I downloaded to that
Bin folder. Then I copy/pasted the sample code included from the download
into a new .aspx page which included a Register Assembly directive:

<%@ Register Assembly="RssToolkit, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=d9202816019f11ea" Namespace="RssToolkit" TagPrefix="cc1" %>

But when I try to build I get two errors

Error 2 Element 'rssdatasource' is not a known element. This can occur if
there is a compilation error in the Web site. \\oicpfp1\home\e000082\My
Documents\Visual Studio 2005\WebSites\WebSite3\Default.aspx 27 29
\\oicpfp1\home\...\WebSite3\

Error 3 Request for the permission of type
'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
\\oicpfp1\home\e000082\My Documents\Visual Studio
2005\WebSites\WebSite3\Default.aspx 27
Any suggestions on what to do would be greatly appreciated.

-- Margo

(FWIW, the doc file that also came w/ the download said:

"... RSS Toolkit works in Medium Trust (RssToolkit.dll Assembly either in
GAC or in 'bin' ..."

)

So I thought just by copying the .dll file into the Bin directory of my
project, it should work...
Apr 11 '06 #1
3 26308
Hi Margo,

Thanks for your post!

For the current issue, I have performed the test. However, I can not repro
the problem. I add the dll file in the Bin folder and copy all html source
code from the scenario5.aspx file to the new web form page. All seems work
fine.

As far as I know, the error message indicates the issue is related to
permission. It seems your ASP.NET applications run in partial trust. This
is configured through the <trust level="xxx" /> setting in web.config or
machine.config. Please change the "xxx" to medium and try again to figure
out whether the problem still occurs.

Regards,

Yuan Ren
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 12 '06 #2
I believe I stumbled onto something here, although I honestly do not
understand the *Exact* details of why... When I was creating my web projects
in Visual Studio 2005, I was accepting the default location for them, which,
in my case, happens to be a network share.

So, I created a new web project and changed the location to a folder on my
local hard drive, and that seemed to fix it.

Apr 14 '06 #3
Hi Noreen,

Thanks for your reply!

I'm glad to hear the issue has been resolved. Actually, as I mentioned
before, the issue is caused by the permission setting of the current
machine. I think there are some restrictions in the specific folder you
create before. So, after you choose the default creation, the issue has
been resolved.

Regards,

Yuan Ren
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Apr 17 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2227
by: Stuart A Yeates | last post by:
I'm trying to write a template that matches "*" but which has an if clause which if only executed once per type of element seen (where all elements of a type have the same name and namespace). The...
10
1810
by: philchen1978 | last post by:
Hi, I can compile the code below with GCC 3.4.2, because function g is a "dependent name". template<class T> void f1(T t) { g(t); }
3
8676
by: Robert | last post by:
I have a number of web projects converted from 1.1 to 2.0 in VS2005. I am methodically seeing the error below: The element 'compilation' has invalid child element 'compilers'. List of...
2
7177
by: MK | last post by:
Hi, I am having problem while adding user control into a user control in 2005 WAP project. The controls are in the same project. When I try to drag and drop the user control into and user...
4
1674
by: ina | last post by:
Hello all, I am newbie in xml and have a problem with this parse. I have this xml.file <Style> <Strategy>
1
4957
by: Elmo Watson | last post by:
Just switched from Beta2 to RC1 - I get this error for all the Ajax stuff (UpdatePanel, UpdateProgress, etc) as well as many others any time I open HTML source view on any page in the site. The...
0
3214
by: hirebrian | last post by:
If you run accross the error message: "Element '%' is not a known element. This can occur if there is a compilation error in the Web site" where '%' is the value of the tagName attribute on a...
4
7930
by: carmelo | last post by:
Hi! I need to read and store data from a file, but I don't the name of it; Is this code correct and is there a better way to do this thing?? int main() { cout << " type file name:" char *...
16
2036
by: subramanian100in | last post by:
Program 1: --------------- #include <cstdlib> #include <iostream> #include <vector> using namespace std; int main() {
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.