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

huowuji 2010-03-14 02:49:42
对注册表项“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


...全文
996 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
renloveyang1314 2010-10-26
  • 打赏
  • 举报
回复
一楼回答真给力!谢谢了
wuyq11 2010-03-14
  • 打赏
  • 举报
回复
权限问题,解决就好
huowuji 2010-03-14
  • 打赏
  • 举报
回复
问题解决了,直接打开注册表,在相应的节点上添加权限就OK了。

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧