2011-04-06 128 views
1

我有一個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

回答

0

使用Windows Server2008 R2的COM庫存在安全問題。此安全問題阻止在Server 2008 R2中使用COM庫。如果服務器是2003版本,它就是工作。

1

嘗試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

0

您是否使用了第三方的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