BugNET

Open source issue tracking & project management

Forums

HomeHomeSupportSupportInstalling BugN...Installing BugN...Security ExceptionSecurity Exception
Previous
 
Next
New Post
6/28/2010 4:45 AM
 
Hi im trying to install on a VPS, IIS7, SQL Server 2005, windows server 2008 R2 datacenter edition.

After setting up the site in iis manager and sql management studio (including setting connection string in web.config) I get:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0 System.Web.UI.Util.GetTypeFromAssemblies(ICollection assemblies, String typeName, Boolean ignoreCase) +201 System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) +323 System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) +10864044 System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) +365

In iis  manager its trust level is set to FULL (internal) 


Any Ideas?
 
New Post
7/2/2010 5:06 AM
 
I appear to have the same problem.

Windows 2008 Server   
64-bit Operation System
IIS7
 
 
New Post
7/2/2010 9:11 AM
 
Well I'm running on IIS7, SQL Server 2008, Win 7 64-bit (test) and Rackspace Cloud (live) and it's all good, although there's no way I'm full trust on the Rackspace system.

It won't install on Rackspace's limited trust environment because it writes to its own web.config during the install procedure.

I'm not sure from your stack trace if that's where you're hitting trouble, but if it is...

The trick is just to do the install on a test machine with full trust, pointing at a database on your hoster or wherever you like. Then copy the website (complete with the newly written web.config) out to the target host, set it as an application, and it's all good.
 
New Post
7/29/2010 3:43 PM
 
I was have the same problem, this helped me: http://geekswithblogs.net/ProjectLaws...
 
New Post
12/20/2010 2:25 AM
 
Yep - that link helped with as well.

Thx
 
Previous
 
Next
HomeHomeSupportSupportInstalling BugN...Installing BugN...Security ExceptionSecurity Exception


Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.