首页 新闻 会员 周边 捐助

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

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

1 REGEDIT进入注册表

2 给指定项加上Network Service(WIN2003)或者ASPNET(WinXP)的访问权限

收获园豆:50
查尔斯 | 老鸟四级 |园豆:3832 | 2010-03-14 16:23
谢谢了,我用的WIN7,不过一样,打开注册表直接在节点上添加权限就OK了。
别惹蚂蚁 | 园豆:75 (初学一级) | 2010-03-14 17:59
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册