473,769 Members | 6,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Security Exception deployment error

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 .SecurityExcept ion: Security error.

Source Error:
Line 30: private static bool __intialized = false;
Line 31:
Line 32: public Global_asax() {
Line 33: if ((ASP.Global_as ax.__intialized == false)) {
Line 34: ASP.Global_asax .__intialized = true;
Source File: C:\WINNT\Micros oft.NET\Framewo rk\v1.0.3705\Te mporary ASP.NET
Files\locator\5 058f3de\5dc8deb 2\bl3wphvz.0.cs Line: 32

Stack Trace:
[SecurityExcepti on: Security error.]
Antioch.Creativ eMemories.Web.G lobal..ctor() +0
ASP.Global_asax ..ctor() in
C:\WINNT\Micros oft.NET\Framewo rk\v1.0.3705\Te mporary ASP.NET
Files\locator\5 058f3de\5dc8deb 2\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
Nov 18 '05 #1
9 1687
Hi John,
Thank you for using Microsoft Newsgroup Service. Based on your description,
one of your ASP.NET web application runs well in working server. However,
when you moved it to a deploy server, you encountered the following
exception:
---------------------------------------------------------
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 .SecurityExcept ion: Security error.
---------------------------------------------------------

Please feel free to post here if my understanding is not quite correct.

As for the problem, it is most likely due the some security facts with the
web application. Would you have a try on the following steps:

1.Try creating a new very simple web application , just have a single page
and move it to the deploy server to see whether it can run well.

2.Since you said that your web application has some operations which access
another web application on a remove server(receivin g an XML stream from
another web site ). Maybe you can try removing that operation and then run
the application again to see whether the problem remain.

3.If the problem goes away after step2. We can confirm that the problem is
due to the remote access operation. Would you provide some more information
on the operation you access the remote site and receiving XML stream? Since
there is a known issue on access remote share in ASP.NET, you may have a
look at the Knowlege base below to see whether it 'll help you:

http://support.microsoft.com/?id=320268

Please try the above suggestions. If you have any questions on them or 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.)

Nov 18 '05 #2
Steven,
Thanks for your help. Here's what happened since the last email.

1. Simple app. Worked fine.

2. Removed all code from main page in question on the non-working app. Same
error.
Also rem'd out just the line that made the call to get the XML data on
the remote server. Still got the error.

Any ideas???
Thanks

John
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:iC******** ******@cpmsftng xa07.phx.gbl...
Hi John,
Thank you for using Microsoft Newsgroup Service. Based on your description, one of your ASP.NET web application runs well in working server. However,
when you moved it to a deploy server, you encountered the following
exception:
---------------------------------------------------------
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 .SecurityExcept ion: Security error.
---------------------------------------------------------

Please feel free to post here if my understanding is not quite correct.

As for the problem, it is most likely due the some security facts with the
web application. Would you have a try on the following steps:

1.Try creating a new very simple web application , just have a single page
and move it to the deploy server to see whether it can run well.

2.Since you said that your web application has some operations which access another web application on a remove server(receivin g an XML stream from
another web site ). Maybe you can try removing that operation and then run
the application again to see whether the problem remain.

3.If the problem goes away after step2. We can confirm that the problem is
due to the remote access operation. Would you provide some more information on the operation you access the remote site and receiving XML stream? Since there is a known issue on access remote share in ASP.NET, you may have a
look at the Knowlege base below to see whether it 'll help you:

http://support.microsoft.com/?id=320268

Please try the above suggestions. If you have any questions on them or 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.)

Nov 18 '05 #3
FYI

I also removed all references to Resource files and th Resource manager.
Still got the error.
J
"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:iC******** ******@cpmsftng xa07.phx.gbl...
Hi John,
Thank you for using Microsoft Newsgroup Service. Based on your description, one of your ASP.NET web application runs well in working server. However,
when you moved it to a deploy server, you encountered the following
exception:
---------------------------------------------------------
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 .SecurityExcept ion: Security error.
---------------------------------------------------------

Please feel free to post here if my understanding is not quite correct.

As for the problem, it is most likely due the some security facts with the
web application. Would you have a try on the following steps:

1.Try creating a new very simple web application , just have a single page
and move it to the deploy server to see whether it can run well.

2.Since you said that your web application has some operations which access another web application on a remove server(receivin g an XML stream from
another web site ). Maybe you can try removing that operation and then run
the application again to see whether the problem remain.

3.If the problem goes away after step2. We can confirm that the problem is
due to the remote access operation. Would you provide some more information on the operation you access the remote site and receiving XML stream? Since there is a known issue on access remote share in ASP.NET, you may have a
look at the Knowlege base below to see whether it 'll help you:

http://support.microsoft.com/?id=320268

Please try the above suggestions. If you have any questions on them or 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.)

Nov 18 '05 #4
Here is a copy of my web.config file

<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<appSettings>
<add key="KnowWhereU RL" value="http://CM.know-where.com/CM/cgi/selection" />
<add key="CareerQues tion_en" value="1,2,3,4" />
<add key="CareerQues tion_sp" value="" />
<add key="ReturnQuan tity" value="5" />
<add key="Subject" value="text goes here." />
<add key="DefaultAdd ress" value="xx*@xxx. com" />
<add key="SMTPServer " value="127.0.0. 1" />
<add key="EnableMail " value="false" />
</appSettings>
<system.web>
<compilation defaultLanguage ="c#" debug="true" />
<customErrors mode="RemoteOnl y" />
<authenticati on mode="Windows" />
<trace enabled="false" requestLimit="1 0" pageOutput="fal se"
traceMode="Sort ByTime" localOnly="true " />
<sessionState mode="InProc" stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;user id=sa;password= "
cookieless="fal se" timeout="20" />
<globalizatio n requestEncoding ="utf-8" responseEncodin g="utf-8" />
</system.web>
</configuration>
John


"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:iC******** ******@cpmsftng xa07.phx.gbl...
Hi John,
Thank you for using Microsoft Newsgroup Service. Based on your description, one of your ASP.NET web application runs well in working server. However,
when you moved it to a deploy server, you encountered the following
exception:
---------------------------------------------------------
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 .SecurityExcept ion: Security error.
---------------------------------------------------------

Please feel free to post here if my understanding is not quite correct.

As for the problem, it is most likely due the some security facts with the
web application. Would you have a try on the following steps:

1.Try creating a new very simple web application , just have a single page
and move it to the deploy server to see whether it can run well.

2.Since you said that your web application has some operations which access another web application on a remove server(receivin g an XML stream from
another web site ). Maybe you can try removing that operation and then run
the application again to see whether the problem remain.

3.If the problem goes away after step2. We can confirm that the problem is
due to the remote access operation. Would you provide some more information on the operation you access the remote site and receiving XML stream? Since there is a known issue on access remote share in ASP.NET, you may have a
look at the Knowlege base below to see whether it 'll help you:

http://support.microsoft.com/?id=320268

Please try the above suggestions. If you have any questions on them or 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.)

Nov 18 '05 #5
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.)
Nov 18 '05 #6
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.)
Nov 18 '05 #7
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

"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:OT******** ********@cpmsft ngxa07.phx.gbl. ..
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.)

Nov 18 '05 #8
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.)

Nov 18 '05 #9
Rebuilt from scratch, works fine. Go figure.

"Steven Cheng[MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:GW******** ******@cpmsftng xa07.phx.gbl...
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.)

Nov 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2450
by: Sam Fields | last post by:
I have found very little regarding the error "Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. ". I have an ASP.NET Web Service being accessed via SSL. I found a website indicating that if any of your .dll names are security.dll, it could cause this issue. I happened to have named the service that -- so I renamed the service's dll, and it still didn't work. I decided to start from scratch, and built...
19
3224
by: Diego F. | last post by:
I think I'll never come across that error. It happens when running code from a DLL that tries to write to disk. I added permissions in the project folder, the wwwroot and in IIS to NETWORK_SERVICE and Everyone, with Full Control to see if it's a permissions problem. The project is hosted in a Windows 2003 Server and developed from PCs in a domain, developing with Visual Studio 2005 Beta 1. -- Regards,
5
2062
by: Norsoft | last post by:
I have a .Net 1.1 application which is downloaded into an aspx page. It is a dll which inherits from System.Windows.Forms.UserControl. It works fine on a PC with only the 1.1 Framework. However, the control will not load on a PC with the 2.0 Framework installed. I know that IE will use the newest framework so I assume it is a security issue. At the assembly level I apply the following attributes;
4
3105
by: Vishal Dattani | last post by:
hi everybody, i am developing a project which is made up of three projects. 1) main project (presentation layer) 2) data access layer 3) business logic layer the main project references these other project 2 and 3 shown above. I have added these projects in a solution and this solution is added to source safe. the problem is that when i run the project on the machine on which the
1
1694
by: DBC User | last post by:
I have a VC++ program which launches a C# program. This one works fine, when I have both in my workstation. When I install it in a server and when I launch it from the workstation PC, I am getting System.Security.SecurityException. Does anyone know why I am getting this error? Thanks.
1
1580
by: Phillip Taylor | last post by:
Hi The Visual Basic 2003 application that I wrote was installed on Windows 2003 Server and we are trying to acess it across the network from Windows XP Pro but we are getting An Exception System.Security.SecurityException has accured when we try and run it. The application is a Executable the network administrator do not want to add the application to the .Net Wizard Trust because they fear that it will open up a bunch of security...
0
1819
by: Pieter | last post by:
Hi, When using clickOnce for a VB.NET 2.0 application it installs fine on every computer, except one (a new one...). Every is isstalled, Framework, Mdac, .... The error in the log file is: "External component has thrown an exception" Does anybody knows what could have caused this problem?
1
1132
by: Spanco | last post by:
In my Application ,When I am hosted my application , that gives an error.... "Exception: System.Security.SecurityException:That assembly does not allow partially trusted callers. Description: Application attemped 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
3
12061
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (machine.config) ---> System.Security.SecurityException: Request for the permission of type
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9994
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8872
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3959
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3562
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.