M
Madison
Hi All,
I have created custom textbox in framework 2 and been using in asp.net
framework 2 with Web Application Project mode everythinge works fine. Until
I try to create new application by using Web Site Project mode, I add
reference for custom textbox and add <controls> in web.config with
<controls>
<add tagPrefix="myControl" namespace="ccCustom.mycontrol"
assembly="ccTextbox" />
</controls>
Then in the web page when I use custom control I get errors message say
1. Request for the permission of type 'System.web.AspNetHostingPermission,
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken='b11a5c561934e089'
failed.
2. Element 'ccTextbox' is not a known elemetn. This can occur if there is a
compilation error in the web site
What is different setting between Web Application Project and Web Site
Project?
Any idea?
I have created custom textbox in framework 2 and been using in asp.net
framework 2 with Web Application Project mode everythinge works fine. Until
I try to create new application by using Web Site Project mode, I add
reference for custom textbox and add <controls> in web.config with
<controls>
<add tagPrefix="myControl" namespace="ccCustom.mycontrol"
assembly="ccTextbox" />
</controls>
Then in the web page when I use custom control I get errors message say
1. Request for the permission of type 'System.web.AspNetHostingPermission,
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken='b11a5c561934e089'
failed.
2. Element 'ccTextbox' is not a known elemetn. This can occur if there is a
compilation error in the web site
What is different setting between Web Application Project and Web Site
Project?
Any idea?