[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1152
  • Last Modified:

Element is not a known element.

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
Gawron3
Asked:
Gawron3
  • 2
1 Solution
 
Bob LearnedCommented:
Do you have a reference to control type on the page (with prefix and namespace)?

Bob
0
 
Gawron3Author Commented:
<%@ 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
 
strickddCommented:
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
 
Gawron3Author Commented:
Thanks for the help strickdd...:)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now