Solved

Element is not a known element.

Posted on 2006-11-20
4
1,139 Views
Last Modified: 2013-11-19
I have added a third party control to my application.  I cannot figure how to make it compile.  Im sure I am just missing something.  Here are the 2 errors when I try to compile.

Error      1      Element 'PopCalendar' is not a known element. This can occur if there is a compilation error in the Web site.       

Error      2      Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.      

Anyone know how to get those to go away?  Im sure I just need to copy the DLL somewhere.

THanks for the help.
0
Comment
Question by:Gawron3
  • 2
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
Do you have a reference to control type on the page (with prefix and namespace)?

Bob
0
 

Author Comment

by:Gawron3
Comment Utility
<%@ Register Assembly="RJS.Web.WebControl.PopCalendar" Namespace="RJS.Web.WebControl"
    TagPrefix="rjs" %>

I have that at the top of the aspx page.

Thanks for the reply.
0
 
LVL 28

Accepted Solution

by:
strickdd earned 500 total points
Comment Utility
This is a strongly named DLL you are referencing and needs to be placed in the Global Assembly Cache (GAC). Then it is added as a project reference and used from there.
0
 

Author Comment

by:Gawron3
Comment Utility
Thanks for the help strickdd...:)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now