Last post Feb 19, 2007 05:58 PM by fripper
Feb 18, 2007 09:07 PM|fripper|LINK
I am at my wits end trying to get a VB 2003/.Net 1.1 web site converted to VB 2005/Net 2.0. I am using Visual Studio 2005. I have a ton of questions about the conversion process [eg. What is all this business about a Web Application Project option?] but
my immediate problem seems straightforward although I cannot fix it. After converting the site on my decvelopment machine [using the conversion wizard] I am able to compile/debug/run the site under IIS but when I upload the site to the server I use I get
an error message:
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
The stack trace shows that the offending statement is the End Sub statement of the load event handler for the start page of the site. I have been in touch with the site administrator and am told that all the permissions are set properly. I have a .Net
1.1 version of the site on the server and it runs fine ... all I did was convert it to 2.0, upload it to the server (which is using .Net 2.0) and I get the error above. What in the world is happening here?
I really need help. CAn someone point me to an article or explain this?
Feb 19, 2007 05:58 PM|fripper|LINK
As I investigsate this propblem further I have determined the following ... any page in the site that accesses at least one data file in the _private directory will cause the security exeption to be thrown when the END SUB statement is executed. Any page
that does not access a file in _private works fine.