473,399 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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 26305
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
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
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
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
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
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
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
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
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
by: subramanian100in | last post by:
Program 1: --------------- #include <cstdlib> #include <iostream> #include <vector> using namespace std; int main() {
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.