简体   繁体   English

ASP.Net在IIS6上无法正常工作

[英]ASP.Net is not working properly on IIS6

I have an Visual Studio 2010 ASP.Net project. 我有一个Visual Studio 2010 ASP.Net项目。 And I want to deploy this project to the my host. 我想将此项目部署到我的主机上。 I did but my site is not working properly. 我做到了,但是我的网站无法正常运行。 I can access to Home Page etc. but I can not do my prior job. 我可以访问主页等,但是不能做以前的工作。 I have to change some word template which located on the server. 我必须更改位于服务器上的某些Word模板。 I am using IIS 6. Thank you.By the way I did change some access property but it did not work. 我正在使用IIS6。谢谢。通过这种方式,我确实更改了一些访问属性,但没有用。

An unhandled exception was generated during the execution of the current web request. 当前Web请求的执行期间生成了未处理的异常。 Information regarding the origin and location of the exception can be identified using the exception stack trace below. 可以使用下面的异常堆栈跟踪来标识有关异常的来源和位置的信息。

Here is the stack trace 这是堆栈跟踪

[UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).]
System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType) +0
System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType) +79
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj) +76
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) +98
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
System.Activator.CreateInstance(Type type, Boolean nonPublic) +69
System.Activator.CreateInstance(Type type) +6
TemplateModify3.modifyCont.justDoIt() in C:\Users\q\documents\visual studio 2010\Projects\TemplateModify3\TemplateModify3\modifyCont.aspx.cs:120
TemplateModify3.modifyCont.runDelegate(myDelegate dlg) in C:\Users\q\documents\visual studio 2010\Projects\TemplateModify3\TemplateModify3\modifyCont.aspx.cs:92
TemplateModify3.modifyCont.Button1_Click(Object sender, EventArgs e) in C:\Users\q\documents\visual studio 2010\Projects\TemplateModify3\TemplateModify3\modifyCont.aspx.cs:72
System.Web.UI.WebControls.Button.onclick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563 

Try chaning the user that runs the Application Pool, it seems that you are trying to access some COM objects that your IIS_USR don't have access too. 尝试更改运行应用程序池的用户,看来您正在尝试访问IIS_USR也无权访问的某些COM对象。

You can also try using Impersonation . 您也可以尝试使用Impersonation

Do you use a third party dll like Crystal Reports that may not be installed correctly or at the correct version? 您使用的第三方dll(例如Crystal Reports)可能安装不正确或版本正确吗? It could be that said third party dll is trying to access the windows or .net temp folders or a related dll that does not exist. 可能是由于第三方dll试图访问Windows或.net临时文件夹或不存在的相关dll。

There is an security issue with COM libraries with Windows Server2008 R2. Windows Server2008 R2的COM库存在安全问题。 This security issue prevent to use COM libaries with Server 2008 R2. 此安全问题阻止将COM库与Server 2008 R2一起使用。 If the server was 2003 version, it coul be work. 如果服务器是2003版本,则可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM