为了账号安全,请及时绑定邮箱和手机立即绑定

对注册表项 的访问被拒绝,在线求解!~

对注册表项 的访问被拒绝,在线求解!~

撒科打诨 2018-12-07 02:43:28
对注册表项“HKEY_CLASSES_ROOT\JESoft.GoodsAgent.JEComponent.SystemMaintenance.UserMgt.UserInfoDS”的访问被拒绝。 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.UnauthorizedAccessException: 对注册表项“HKEY_CLASSES_ROOT\JESoft.GoodsAgent.JEComponent.SystemMaintenance.UserMgt.UserInfoDS”的访问被拒绝。 ASP.NET 未被授权访问所请求的资源。请考虑授予 ASP.NET 请求标识访问此资源的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常,在 IIS 5 上为 {MACHINE}\ASPNET,在 IIS 6 上为网络服务)。如果应用程序正在通过 <identity impersonate="true"/> 模拟,则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。 要将 ASP.NET 访问权限授予某个文件,请在资源管理器中右击该文件,选择“属性”,然后选择“安全”选项卡。单击“添加”添加适当的用户或组。突出显示 ASP.NET 帐户,选中所需访问权限对应的框。源错误:   行 33: protected override JESoft.LibBase.ComponentBase.Bussiness.Common.BrowsePageMgtInterFace BrowseMgt行 34: {行 35: get { return new PrintFormMgt(); }行 36: }行 37: 源文件: C:\inetpub\wwwroot\JEGoodsAgent\JEClient\PrintFormManagement\PrintFormBrowse.aspx.cs    行: 35 堆栈跟踪:     [UnauthorizedAccessException: 对注册表项“HKEY_CLASSES_ROOT\JESoft.GoodsAgent.JEComponent.SystemMaintenance.UserMgt.UserInfoDS”的访问被拒绝。] Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) +2738109 Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity) +7716503 Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) +10 System.Runtime.InteropServices.RegistrationServices.RegisterManagedType(Type type, String strAsmName, String strAsmVersion, String strAsmCodeBase, String strRuntimeVersion) +247 System.Runtime.InteropServices.RegistrationServices.RegisterAssembly(Assembly assembly, AssemblyRegistrationFlags flags) +293 System.EnterpriseServices.RegistrationDriver.ClassicRegistration(Assembly asm) +116   [RegistrationException: 注册程序集“JESoft.GoodsAgent.JEComponent, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b3ccda43b2da8274”失败。] System.EnterpriseServices.RegistrationDriver.ClassicRegistration(Assembly asm) +180 System.EnterpriseServices.RegistrationDriver.InstallAssembly(RegistrationConfig regConfig, Object obSync) +367   [RegistrationException: 要执行此任务,您必须具有管理凭据。请与您的系统管理员联系以获得帮助。] System.EnterpriseServices.RegistrationDriver.InstallAssembly(RegistrationConfig regConfig, Object obSync) +995 System.EnterpriseServices.RegistrationHelper.InstallAssemblyFromConfig(RegistrationConfig& regConfig) +453 System.EnterpriseServices.RegistrationHelper.InstallAssembly(String assembly, String& application, String partition, String& tlb, InstallationFlags installFlags) +104 System.EnterpriseServices.RegistrationHelper.System.EnterpriseServices.Thunk.IThunkInstallation.DefaultInstall(String asm) +39 System.EnterpriseServices.Thunk.Proxy.RegisterAssembly(Assembly assembly) +91 System.EnterpriseServices.Thunk.Proxy.LazyRegister(Guid id, Type serverType, Boolean checkCache) +194 System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri) +205 System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType) +159 System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type serverType, Object[] props, Boolean bNewObj) +7556164   JESoft.GoodsAgent.JEClient.PrintFormManagement.PrintFormBrowse.get_BrowseMgt() in C:\inetpub\wwwroot\JEGoodsAgent\JEClient\PrintFormManagement\PrintFormBrowse.aspx.cs:35 JESoft.LibBase.WebUIBase.Page.Browse.BrowseBasePage..ctor() in C:\Inetpub\wwwroot\JESoftBase\JESoft.LibBase.WebUIBase\Page\Browse\BrowseBasePage.cs:334 JESoft.GoodsAgent.JEClient.PrintFormManagement.PrintFormBrowse..ctor() +29 ASP.printformmanagement_printformbrowse_aspx..ctor() in c:\Users\lulu\AppData\Local\Temp\Temporary ASP.NET Files\root\92011846\614f98ad\App_Web_2opjpmdp.0.cs:0 __ASP.FastObjectFactory_app_web_2opjpmdp.Create_ASP_printformmanagement_printformbrowse_aspx() in c:\Users\lulu\AppData\Local\Temp\Temporary ASP.NET Files\root\92011846\614f98ad\App_Web_2opjpmdp.4.cs:0 System.Web.Compilation.BuildResultCompiledType.CreateInstance() +32 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +119 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33 System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155            
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 2633 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信