安全异常部署错误 [英] Security Exception deployment error

查看:94
本文介绍了安全异常部署错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的集成测试服务器上验证了

之后,我最近将ASP.Net应用程序移动到了我们的部署服务器。


部署服务器我现在收到以下错误:

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

安全例外

描述:应用程序试图执行不允许的操作
$ b安全政策$ b。要授予此应用程序所需的权限

请联系您的系统管理员或在配置文件中更改应用程序的信任

级别。


异常详细信息:System.Security.SecurityException:安全错误。


源错误:

第30行:private static bool __intialized = false;

第31行:

第32行:public Global_asax(){

第33行:if((ASP.Global_asax .__ intialized == false)) {

第34行:ASP.Global_asax .__ intialized = true;

源文件:C:\ WINNT \ Microros.NET \ Framework \v1.0.3705 \\ \\ tempmpora ry ASP.NET

Files \locator\5058f3de\5dc8deb2 \ bl3wphvz.0.cs行:32

堆栈跟踪:

[SecurityException:安全错误。]

Antioch.CreativeMemories.Web.Global..ctor()+ 0

ASP.Global_asax..ctor ()在

C:\ WINNT \\ Microsoft /.NET \ Framework \v1.0.3705 \Tempora ry ASP.NET

Files \locator\5058f3de\ddc8deb2 \ bl3wphvz.0.cs:32


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


web.config文件与我在工作服务器上使用的文件相同。

还有其他在非工作服务器上运行.Net应用程序。

该应用程序非常简单。我只是从另一个网站

站点接收一个XML流并将其运行到数据网格中。


我见过很多其他类似的网站问题,但没有任何建议
从这些线程
似乎工作。


任何想法或建议?


TIA


John S

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\Tempora ry 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\Tempora ry 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

推荐答案

嗨John,

谢谢你使用Microsoft新闻组服务。根据您的描述,

您的一个ASP.NET Web应用程序在工作服务器中运行良好。但是,当你把它移到部署服务器时,你遇到了以下

异常:

--------- ------------------------------------------------ <无线电通信/>
安全例外

描述:应用程序试图通过安全策略执行不允许的操作

。要授予此应用程序所需的权限

请联系您的系统管理员或在配置文件中更改应用程序的信任

级别。


异常详细信息:System.Security.SecurityException:安全错误。

-------------------------- -------------------------------


请随时在此发布我的理解不太正确。


至于问题,很可能是由于

Web应用程序的一些安全事实。您是否可以尝试以下步骤:


1.尝试创建一个新的非常简单的Web应用程序,只需要一个页面

并将其移动到$ 1. $ b $ 2.由于你说你的网络应用程序有一些操作可以访问

另一个web应用程序删除服务器(从

另一个网站接收XML流)。也许你可以尝试删除该操作,然后再次运行

应用程序以查看问题是否仍然存在。


3.如果问题在第2步之后消失了。由于远程访问操作,我们可以确认问题是

。您是否会在访问远程站点和接收XML流的操作上提供更多信息

?由于

在ASP.NET中访问远程共享存在已知问题,因此您可以查看下面的Knowlege基础以查看它是否会帮助您:

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


请尝试以上建议。如果您对它们有任何疑问或者您有任何新的发现,请告诉我。


Steven Cheng

Microsoft在线支持


安全! www.microsoft.com/security

(此帖子按原样提供,不作任何保证,并且不授予

权利。)

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.SecurityException: 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(receiving 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.)


Steven,
感谢您的帮助。这是自上次发送电子邮件以来发生的事情。


1.简单的应用程序。工作正常。


2.从非工作应用程序的主页中删除了所有代码。相同的

错误。

另外,只需要调用以获取远程服务器上的XML数据的行。仍然有错误。


任何想法???

谢谢


John

Steven Cheng [MSFT]" <,V - ****** @ online.microsoft.com>写在消息

新闻:iC ************** @ cpmsftngxa07.phx.gbl ...
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.microsoft.com> wrote in message
news:iC**************@cpmsftngxa07.phx.gbl...
嗨约翰,

感谢您使用Microsoft新闻组服务。根据您的
描述,您的一个ASP.NET Web应用程序在工作服务器中运行良好。但是,当您将其移动到部署服务器时,您遇到了以下
异常:
--------------------- ------------------------------------
安全例外
描述:该应用程序尝试执行安全策略不允许的操作。授予此应用程序所需的权限
请联系您的系统管理员或更改配置文件中应用程序的信任级别。

异常详细信息:System.Security.SecurityException :安全错误。
------------------------------------------ ---------------

如果我的理解不太正确,请随时在这里发帖。

至于问题,这很可能是由于网络应用程序的一些安全事实。您是否可以尝试以下步骤:

1.尝试创建一个新的非常简单的Web应用程序,只需要一个页面
并将其移动到部署服务器以查看它是否可以运行良好。

2.由于您说您的Web应用程序有一些操作,
访问删除服务器上的另一个Web应用程序(从另一个网站接收XML流) 。也许您可以尝试删除该操作然后再次运行应用程序以查看问题是否仍然存在。

3.如果问题在第2步之后消失。由于远程访问操作,我们可以确认问题是否正确。您是否会提供有关您访问远程站点和接收XML流的操作的更多
信息?
由于ASP.NET中访问远程共享存在已知问题,因此您可以查看下面的Knowlege基础,看看它是否会帮助您:
http://support.microsoft.com/?id=320268

请尝试以上建议。如果您对它们有任何疑问或者您有任何新的发现,请告诉我。

Steven Cheng
Microsoft在线支持

安全! www.microsoft.com/security
(此帖已提供按原样,没有保证,也没有赋予
权利。)
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.SecurityException: 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(receiving 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.)



仅供参考


我还删除了对资源文件和资源管理器的所有引用。

仍然出错。

J

" Steven Cheng [MSFT] " <,V - ****** @ online.microsoft.com>写在消息

新闻:iC ************** @ cpmsftngxa07.phx.gbl ...
FYI

I also removed all references to Resource files and th Resource manager.
Still got the error.
J
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:iC**************@cpmsftngxa07.phx.gbl...
嗨约翰,

感谢您使用Microsoft新闻组服务。根据您的
描述,您的一个ASP.NET Web应用程序在工作服务器中运行良好。但是,当您将其移动到部署服务器时,您遇到了以下
异常:
--------------------- ------------------------------------
安全例外
描述:该应用程序尝试执行安全策略不允许的操作。授予此应用程序所需的权限
请联系您的系统管理员或更改配置文件中应用程序的信任级别。

异常详细信息:System.Security.SecurityException :安全错误。
------------------------------------------ ---------------

如果我的理解不太正确,请随时在这里发帖。

至于问题,这很可能是由于网络应用程序的一些安全事实。您是否可以尝试以下步骤:

1.尝试创建一个新的非常简单的Web应用程序,只需要一个页面
并将其移动到部署服务器以查看它是否可以运行良好。

2.由于您说您的Web应用程序有一些操作,
访问删除服务器上的另一个Web应用程序(从另一个网站接收XML流) 。也许您可以尝试删除该操作然后再次运行应用程序以查看问题是否仍然存在。

3.如果问题在第2步之后消失。由于远程访问操作,我们可以确认问题是否正确。您是否会提供有关您访问远程站点和接收XML流的操作的更多
信息?
由于ASP.NET中访问远程共享存在已知问题,因此您可以查看下面的Knowlege基础,看看它是否会帮助您:
http://support.microsoft.com/?id=320268

请尝试以上建议。如果您对它们有任何疑问或者您有任何新的发现,请告诉我。

Steven Cheng
Microsoft在线支持

安全! www.microsoft.com/security
(此帖已提供按原样,没有保证,也没有赋予
权利。)
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.SecurityException: 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(receiving 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.)



这篇关于安全异常部署错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆