PDA

View Full Version : Failed to access IIS metabase.



hmm
شنبه 27 آبان 1385, 10:23 صبح
سلام
Error زیر رو چطوری میتونم رفع کنم؟

Server Error in '/dnn' Application.

Failed to access IIS metabase.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[HostingEnvironmentException: Failed to access IIS metabase.]
System.Web.Configuration.MetabaseServerConfig.MapP athCaching(String siteID, VirtualPath path) +3492154
System.Web.Configuration.MetabaseServerConfig.Syst em.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActua l(VirtualPath virtualPath, Boolean permitNull) +163
System.Web.CachedPathData.GetConfigPathData(String configPath) +382
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetApplicationPathData() +68
System.Web.CachedPathData.GetVirtualPathData(Virtu alPath virtualPath, Boolean permitPathsOutsideApp) +3385663
System.Web.Configuration.RuntimeConfig.GetLKGRunti meConfig(VirtualPath path) +189

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Behrouz_Rad
شنبه 27 آبان 1385, 12:11 عصر
این خطا معمولا زمانی به وجو میاد که IIS رو بعد از VS.NET نصب کرده باشی.
دز این حالت، کاربر ASPNET (که تمامی پروسه های برنامه های WebApp تحت مجوز این کاربر اجرا میشن)، مجوزهای دسترسی لازم رو پیدا نمی کنه.
معمولا با Map کردن IIS و VS.NET به شکل زیر مشکل حل میشه:


D:\Windows\Microsoft.NET\Framework\v2.0.50727\aspn et_regiis -i

hmm
شنبه 27 آبان 1385, 13:24 عصر
همینه !
مرسی بهروز جان مشکلم حل شد

Mavix19
جمعه 28 فروردین 1388, 21:20 عصر
ممنون بهروز خان. منم مشکلم همین بود.

راستی بهروز خان شما نبودین من چیکار می کردم؟!!! :گیج: متشکرم :بوس:

fathollah
چهارشنبه 29 دی 1389, 12:35 عصر
مشكل من حل نشد باز همان پيغام مياد اعصابمو خورد كرده اين ارور