关于System.UnauthorizedAccessException:检索WordInterop的COM类工厂失败,错误80070005和检索com类工厂中clsid8007007e的问题就给大家
关于System.UnauthorizedAccessException:检索Word Interop的COM类工厂失败,错误80070005和检索com类工厂中clsid 8007007e的问题就给大家分享到这里,感谢你花时间阅读本站内容,更多关于.net core 3.1 - 读取操作失败,参见内部异常System.Net.Http.WinHttpException (0x80004004): Operation aborted;、ASP.NET IIS System.UnauthorizedAccessException: 对路径“C:\.....”的访问被拒绝。(转)、asp.net – COMException未知错误(0x80005000) – DirectoryServices、asp.net – System.Runtime.InteropServices.COMException功能不正确. (HRESULT异常:0x80070001)等相关知识的信息别忘了在本站进行查找喔。
本文目录一览:- System.UnauthorizedAccessException:检索Word Interop的COM类工厂失败,错误80070005(检索com类工厂中clsid 8007007e)
- .net core 3.1 - 读取操作失败,参见内部异常System.Net.Http.WinHttpException (0x80004004): Operation aborted;
- ASP.NET IIS System.UnauthorizedAccessException: 对路径“C:\.....”的访问被拒绝。(转)
- asp.net – COMException未知错误(0x80005000) – DirectoryServices
- asp.net – System.Runtime.InteropServices.COMException功能不正确. (HRESULT异常:0x80070001)
System.UnauthorizedAccessException:检索Word Interop的COM类工厂失败,错误80070005(检索com类工厂中clsid 8007007e)
我在Visual Studio 2008中使用C#ASP .NET项目时遇到问题当我用Windows 7
Ultimate(x64)重新安装计算机时,便开始出现此问题。为此,我也使用Office 2007。
我收到的错误消息是:
System.UnauthorizedAccessException:由于以下错误,无法获取具有CLSID
{000209FF-0000-0000-C000-000000000046}的组件的COM类工厂:80070005。位于xxx.Utility.WordDocument..ctor(字符串filePath,HttpServerUtility
util)在c:\ xxx \ Website \ customer \ communication.aspx.cs:line
127中的customer_communication.BuCreate_click(Object sender,EventArgs e)
.net core 3.1 - 读取操作失败,参见内部异常System.Net.Http.WinHttpException (0x80004004): Operation aborted;
如何解决.net core 3.1 - 读取操作失败,参见内部异常System.Net.Http.WinHttpException (0x80004004): Operation aborted;?
以下请求到达服务器,服务器将响应返回给客户端。
response = ServiceInterfaceClient.OperationName(request);
但是客户端总是抛出这个问题。
"发生一个或多个错误。(读取操作失败,请参阅内部异常。)System.IO.IOException: 读取操作失败,请参阅内部异常。\r\n ---> System.Net.Http。 WinHttpException (0x80004004): 操作中止\r\n --- 内部异常堆栈跟踪结束 ---\r\n 在 System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult 结果)\r\n 在 System.ServiceModel .Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult 结果)\r\n 在 System.ServiceModel.Channels.Service
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
ASP.NET IIS System.UnauthorizedAccessException: 对路径“C:\.....”的访问被拒绝。(转)
解决方法:
一、在IIS中的默认应用程序池-->高级设置...-->标识改成Local System可以解决该问题。
二、在需要进行读写操作的目录下添加Network Service这个帐号。
具体过程:对该文件夹按右键--属性--安全--添加--高级--立即查找--在“搜索结果”下选“NETWORK SERVICE”--确定--确定--确定
三、在网上查询了很多信息,有下列几种解决方案:
1.可能是安装出了问题,重新安装 执行命令,aspnet_regiis -i ,记得要生启啊
2.提升everyone的权限到可修改
3.提升aspnet权限:控制面板-管理工具-计算机管理-本地用户和组 找到ASPNET 隶属于里面加上Administrators
4.将iis虚拟目录删掉后重新建
5.在web.config文件中加入<identity impersonate="true"/>
6. 若要授予 ASP.NET 对文件的写访问权,请在资源管理器中右击该文件,选择“属性”,然后选择“安全”选项卡。单击“添加”添加适当的用户或组。突出显示 ASP.NET 帐户,选中所需访问权限对应的框。
everyone加写入权限
7.用xml文件保存系统选项设置,用asp.net写入,调试运行(ctrl+F5)正常。站点配置后运行报错:“对路径xxx.xml的访问被拒绝”。资源管理器->工具->文件夹选项->查看 不选"使用简单文件共享",右击xml文件,选"属性"点"安全"添加"aspnet",选"完全控制",即可。
asp.net – COMException未知错误(0x80005000) – DirectoryServices
public DomainUser GetDomainUser(string userLoginName) { using (PrincipalContext context = new PrincipalContext(ContextType.Domain,this.DomainName)) { using (UserPrincipal user = UserPrincipal.FindByIdentity(context,userLoginName)) { // If user is null,the result is not a UserPrinciple if (user != null) { string firstName = user.Givenname; string middleName = user.MiddleName; string lastName = user.Surname; int empId = Convert.ToInt32(user.EmployeeId); string emailAddr = user.EmailAddress; string userName = user.SamAccountName; DateTime? accountExp = user.AccountExpirationDate; return new DomainUser { FirstName = firstName,MiddleName = middleName,LastName = lastName,EmployeeId = empId,Email = emailAddr,UserName = userName,AccountExpiration = accountExp }; } return null; } } }
因此,this问题密切相关,但我的权限设置正确,代码在99%的时间内正常工作,并将在应用程序池重新启动后继续运行.
堆栈跟踪看起来像这样:
System.Runtime.InteropServices.COMException (0x80005000): UnkNown error (0x80005000) at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.PropertyValueCollection.PopulateList() at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry,String propertyName) at System.DirectoryServices.PropertyCollection.get_Item(String propertyName) at System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer() at System.DirectoryServices.AccountManagement.PrincipalContext.DodomainInit() at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize() at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx() at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context,Type principalType,Nullable`1 identityType,String identityValue,DateTime refDate) at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context,String identityValue) at System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(PrincipalContext context,String identityValue) at ADWrapper.AdSearch.GetDomainUser(String userLoginName)
问题是什么?内存泄漏?常见的模式是,当第一个用户开始使用应用程序时,这首先发生在早上.
解决方法
http://blogs.msdn.com/b/jpsanders/archive/2009/05/13/iis-7-adsi-error-system-runtime-interopservices-comexception-0x80005000-unknown-error-0x80005000.aspx
http://michaelwasham.com/2011/04/25/annoying-error-using-system-directoryservices-and-iis-app-pools/
asp.net – System.Runtime.InteropServices.COMException功能不正确. (HRESULT异常:0x80070001)
Windows Server 2008 R2 Web Edition
IIS 7.5
ASP.NET
.NET 4.0运行时
在站点上运行HTTP.
谁能对这一个有所了解?谷歌列出了2008年左右的一些结果,关于.NET 2.0中关于在请求体的Read()函数期间断开HTTP的错误.
堆栈跟踪
System.Web.HttpException (0x80004005): An error occurred while communicating with the remote host. The error code is 0x80070001. ---> System.Runtime.InteropServices.COMException (0x80070001): Incorrect function. (Exception from HRESULT: 0x80070001) Server stack trace: at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result,Boolean throwOndisconnect) at System.Web.Hosting.IIS7WorkerRequest.ReadEntityCoreSync(Byte[] buffer,Int32 offset,Int32 size) at System.Web.HttpRequest.GetEntireRawContent() at System.Web.HttpRequest.get_InputStream() at MyHandler.ProcessRequest(HttpContext context) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md,Object[] args,Object server,Int32 methodPtr,Boolean fExecuteInContext,Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md,Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg,IMessageSink replySink)
解决方法
见:An error occurred while communicating with the remote host. The error code is 0x80TCP Offloading1
今天的关于System.UnauthorizedAccessException:检索Word Interop的COM类工厂失败,错误80070005和检索com类工厂中clsid 8007007e的分享已经结束,谢谢您的关注,如果想了解更多关于.net core 3.1 - 读取操作失败,参见内部异常System.Net.Http.WinHttpException (0x80004004): Operation aborted;、ASP.NET IIS System.UnauthorizedAccessException: 对路径“C:\.....”的访问被拒绝。(转)、asp.net – COMException未知错误(0x80005000) – DirectoryServices、asp.net – System.Runtime.InteropServices.COMException功能不正确. (HRESULT异常:0x80070001)的相关知识,请在本站进行查询。
本文标签: