Security Exception deployment error

J

John Stemper

I've recently moved an ASP.Net app to our deployment server after it was
verified on our integration test server.

On the deployment server I am now getting the following error:
/*********************************************/
Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.

Exception Details: System.Security.SecurityException: Security error.

Source Error:


Line 30: private static bool __intialized = false;
Line 31:
Line 32: public Global_asax() {
Line 33: if ((ASP.Global_asax.__intialized == false)) {
Line 34: ASP.Global_asax.__intialized = true;


Source File: C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET
Files\locator\5058f3de\5dc8deb2\bl3wphvz.0.cs Line: 32

Stack Trace:


[SecurityException: Security error.]
Antioch.CreativeMemories.Web.Global..ctor() +0
ASP.Global_asax..ctor() in
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET
Files\locator\5058f3de\5dc8deb2\bl3wphvz.0.cs:32



/**********************************************/

The web.config file is the same as the one I'm using on the working servers.
There are other working .Net apps on the non-working server.
The app is pretty simple. I'm just receiving an XML stream from another web
site and running that into a datagrid.

I've seen lots of others with similar problems but none of the suggestions
from those threads seemed to work.

Any ideas or suggestions?

TIA

John S
 
S

Steven Cheng[MSFT]

Hi John ,


Thank you for using Microsoft Newsgroup Service. Based on your tested
result, the problem is mainly focus on the certain web application. Also
the web.config file you provided doesn't have anything particular which
seems to cause the problem. I still think that the problem is concerned
with something on the code access security. So would you have a further
check to see whether there is any other particular code access , such as
access to a remote resource. Also, have you referenced some certain
assemblies which has some certain operations that will cause the access
permission problem? If you're not quite sure on this, you may still try my
former suggestion, check all the references step by step,just to minimize
the web application so as to repro the problem with the smaller scope.

Please check out the preceding suggestions. In the meantime, if you have
any new findings, please also let me know.


Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
S

Steven Cheng[MSFT]

Hi John,


Have you had a chance to try my suggestion or have you got any progress on
our issue? Please feel free to post here
if you need any help.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
J

John Stemper

Steven,

I've started stepping through some of the suggestions you have given. I do
not have any references out of the ordinary (ie. System.xxx). I have rem'd
out the code that deals with accessing the remote http stream. That did not
seem to make a difference.

Anyway I'm continuing to go through the code step by step to see if I can
narrow the problem down to a specific function/method.

Thanks

John
 
S

Steven Cheng[MSFT]

Hi John,


Thanks for your response. I'll keep on waiting for your latest progress. If
you need any assistance, please feel free to let me know.


Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top