问题描述
异常详细信息:System.UnauthorizedAccessException:检索COM类工厂中CLSID为{000209FF-0000-0000-C000-000000000046}的组件时失败,原因是出现以下错误:80070005。我是2000操作系统,组件服务-计算机-我的电脑-dcom配置找到MicrosoftExcel应用程序里右键没有属性,只提示配置属性成功,可是我想设定他是交互的,如何设定?
解决方案
解决方案二:
楼主可以试试:开始->运行->dcomcnfgComponentSerivices-Computer-MyComputer在DCOMConfig中找到"MicrosoftExcelApplication".在XP系统,我添加了IIS默设用户:InternetGuestAccout(Computername/IUSER_USER),即 如果找不到该用户可点击"Add(添加)"->"Advanced(高级)",用"Findnow(立即查找)"找到相应的用户。添加进去以后,把"Locallaunch(本地启动)"和"LocalActivation(本地激活)"在允许权限框里打勾
解决方案三:
学习
解决方案四:
我也遇到过这样的问题了。当时改了以后还是不行,本地可以。上传到服务器上就不行了
解决方案五:
•GototheStart-Runmenuitem.•Typein"DCOMCNFG"andhitenter.•Thisshouldloadthe"ComponentServices"MMC(youcanalsoloadfromAdministrativeTools-ComponentServices"•Expand"ComponentServices"•Expand"Computers"•Expand"MyComputer"•Selectthe"DCOMConfig"item•Selectthe"MicrosoftExcelApplication"item.•RightclickandselectProperties•SelecttheSecurityTabandyoushouldseethefollowing:•Under"LaunchandActivationPermissions"selectthe"Customize"option.•Clickthe"Edit"buttonWindowsXPWindows2003Server•Clickthe"Add"buttontoaddanewaccounttothelist.•OnthedialogthatisdisplayedclicktheLocationsbutton(thisisbecausebydefaultyourdomainwillbeselectedandweneedalocalaccount)Inthisdialogscrollthelisttothetop(sometimesthefirstitemisnotvisible)butscrolltothetopandselectthefirstitemwhichisyourcomputername.Inthelistbelow"CCROWE"isthenameofmycomputer.•ClicktheOKbutton•Onthedialogthatisdisplayedenter"ASPNET"astheaccountname(makesurelocationissettothenameofthecomputerthatIISison)onWindowsXPorifyouarerunningonWindows2003ServeryoumustentertheaccountthattheApplicationPoolisrunningas,bydefault"NetworkService"WindowsXPWindows2003ServerNote:AquickerwayonWindowsXPistojustenterthecomputernameandtheaccountsoinmycasethatwouldbe:ccroweASPNET••ClicktheOKbutton•Nowmakesureyouselectthefollowingoptionsforthe"ASP.NETMachineAccount"ortheaccountthatistheapplicationpoolidentity(bydefaultNetworkService)•LocalLaunch:Allow•RemoteLaunch:[blank]•LocalActivation:Allow•RemoteActivation:[blank]Thesesettingscanbeseenbelow:WindowsXPWindows2003ServerClicktheOKbuttonandtestyourwebapplicationagainanditshouldworkfine.Note:RememberifyouarerunningonWindows2003ServeryoumustusetheapplicationpoolidentityastheaccountandnottheASPNETaccount.