Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  BC30002: Type 'Net.WebPermission' is not defined.
Previous Previous
 
Next Next
New Post 4/3/2007 11:33 PM
User is offline Brian Howard
130 posts
9th Ranked


BC30002: Type 'Net.WebPermission' is not defined. 
Modified By Stefan Cullmann  on 4/14/2007 6:05:21 AM)

I just installed the latest XML module on a 4.4.1 DNN.... and now I can't get into the site. I get the following error: Please help.

BC30002: Type 'Net.WebPermission' is not defined.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'Net.WebPermission' is not defined.

Source Error:

 
Line 94:         ''' <remarks>Helpful in Medium Trust environment.</remarks>
Line 95:         Public Function CheckWebPermission(ByVal url As String) As Boolean
Line 96:             Return System.Security.SecurityManager.IsGranted(New Net.WebPermission(Net.NetworkAccess.Connect, url))
Line 97:         End Function
Line 98:     End Module

 
New Post 4/4/2007 1:06 AM
User is offline Ismet Dumlupinar
620 posts
www.mynetnuke.com
7th Ranked




Re: BC30002: Type 'Net.WebPermission' is not defined. 
i think this is a Medium Trust issue. Can you try renaming XML dll file for module @ /bin folder. Also try recylcing your application pool.
Ismet Dumlupinar
MCP/MCDST/MCT
DotNetNuke Türkçe
My DotNetNuke Blog for Global Users
 
New Post 4/4/2007 8:10 AM
User is offline Brian Howard
130 posts
9th Ranked


Re: BC30002: Type 'Net.WebPermission' is not defined. 
What do you mean rename XML dll file? Won't this definitely cause it to stop working? Please explain further.... I have made changes several times to web.config in order to recycle app but that hasn't worked either.....
 
New Post 4/4/2007 8:21 AM
User is offline Ismet Dumlupinar
620 posts
www.mynetnuke.com
7th Ranked




Re: BC30002: Type 'Net.WebPermission' is not defined. 
Sometimes it works for renaming *.dll file to *.dll.old to re-access a down site. At least it was working for me at godaddy hosted environment. You can switch back to orginal name if file is not deleted. Also try recycling your application pool between ASP.NET 2.0 and ASP.NET 1.1
For example lets say you are using 2.0, switch it to 1.1, wait 15 minutes and switch it back.
But i believe XML module is not working at Medium Trust.

Ismet Dumlupinar
MCP/MCDST/MCT
DotNetNuke Türkçe
My DotNetNuke Blog for Global Users
 
New Post 4/4/2007 8:25 AM
User is offline Brian Howard
130 posts
9th Ranked


Re: BC30002: Type 'Net.WebPermission' is not defined. 
How do I change trust level?
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  BC30002: Type 'Net.WebPermission' is not defined.
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com
Ultra Media Gallery & Video Gallery
The most popular photo gallery and video gallery module. with Flash interface.
www.bizmodules.net
WDK Solutions
Quality modules for the DotNetNuke community. Check out our 'wild' modules!
wdkns.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP