System.Security.SecurityException - Project won´t run online
-
Hi there I wrote a tiny test program that opens an OleDb connection to a MSSQL database and gets some data from a table and displays it in a DataGrid (because I´ve had some troubles getting my first web project to work online). Everything works fine when I run it on my local IIS, the data is displayed in the Datagrid and everything´s fine, but when I move it to my web folder online, I get this strange 'System.Security.SecurityException' error when I try to run it(I already talked to the system admins and got some IIS service on my web folder). After some google search I saw this article explaining the error: http://support.microsoft.com/default.aspx?scid=kb;en-us;320268[^] Would it solve my problems if I ask the system admin to change my IIS profile rights on my web folder to 'FullTrust'? Thanks a lot! :)
-
Hi there I wrote a tiny test program that opens an OleDb connection to a MSSQL database and gets some data from a table and displays it in a DataGrid (because I´ve had some troubles getting my first web project to work online). Everything works fine when I run it on my local IIS, the data is displayed in the Datagrid and everything´s fine, but when I move it to my web folder online, I get this strange 'System.Security.SecurityException' error when I try to run it(I already talked to the system admins and got some IIS service on my web folder). After some google search I saw this article explaining the error: http://support.microsoft.com/default.aspx?scid=kb;en-us;320268[^] Would it solve my problems if I ask the system admin to change my IIS profile rights on my web folder to 'FullTrust'? Thanks a lot! :)
The article outlines adding "FullTrust" to the share, not the web folder. The application is accessing a remote share. The current permissions on that share were put there for a reason; they're not likely going to want to reduce the security. PeterRitchie.com
-
The article outlines adding "FullTrust" to the share, not the web folder. The application is accessing a remote share. The current permissions on that share were put there for a reason; they're not likely going to want to reduce the security. PeterRitchie.com
Thanks, but is there any workaround? This is the very first time I try to put an ASP.NET page online :)
-
Thanks, but is there any workaround? This is the very first time I try to put an ASP.NET page online :)
If the exception is because you're accessing a remote share, then the workaround would be not to use the remote share--copy the files that are being accessed in the share to the web server. PeterRitchie.com