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

问题描述:

我有一个Visual Studio 2010 ASP.Net项目。我想将这个项目部署到我的主机上。我做了,但我的网站无法正常工作。我可以访问主页等,但我不能做我以前的工作。我必须更改位于服务器上的一些单词模板。我正在使用IIS 6.谢谢。顺便说一下,我改变了一些访问属性,但它不起作用。ASP.Net在IIS6上无法正常工作

执行当前Web请求期间生成未处理的异常。关于异常的来源和位置的信息可以使用下面的异常堆栈跟踪来标识。

这里是堆栈跟踪

[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 
+0

什么是文件'modifyCont.aspx.cs'中的第120行? – 2011-04-06 08:27:03

+0

该页面尝试更改服务器中的文字模板@Filip – 2011-04-07 12:24:13

使用Windows Server2008 R2的COM库存在安全问题。此安全问题阻止在Server 2008 R2中使用COM库。如果服务器是2003版本,它就是工作。

尝试chaning运行应用程序池的用户,似乎您试图访问你的IIS_USR没有访问过一些COM对象。您也可以尝试使用Impersonation

+0

我如何授予对象的访问权限。 – 2011-04-06 08:15:01

+0

我如何授予COM对象的访问权限。 @Filip – 2011-04-06 08:53:02

+0

@Güngör,在使用模拟/更改用户的应用程序池时是否工作?你可能会发现这个有用的:http://support.microsoft.com/kb/325791 – 2011-04-06 08:55:05

您是否使用了第三方的dll,如Crystal Reports,可能安装不正确或版本正确?这可能是说,第三方DLL试图访问Windows或.net临时文件夹或不存在的相关DLL。

+0

错误消息显示“拒绝访问”而不是“FileNotFound”。 – 2011-04-06 07:04:39

+0

是的,我在我的项目上使用word dll。但我在我的服务器上安装了word 2010,但它不起作用。 – 2011-04-06 08:08:47

+0

是的,我在我的项目上使用word dll。但我在我的服务器上安装了word 2010,但它不起作用。 @Fellmeister – 2011-04-06 08:53:40