asp.netµÄ´íÎó Failed to access IIS metabase
asp.netµÄ´íÎó--Failed to access IIS metabase ÊÕ²Ø
Server Error in '/sdxx' 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.MapPathCaching(String siteID, VirtualPath path) +3492154
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +163
System.Web.CachedPathData.GetConfigPathData(String configPath) +382
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.C
Ïà¹ØÎĵµ£º
1¡¢VSS¿Í»§¶Ë´ò¿ª¹¤³ÌʱÌáʾ Access to file"\\***\rights.dat" denied
¸ÃÌáʾÊÇָûÓÐÍøÂç·ÃÎʵÄȨÏÞ£¬Óû§ÒªÔÚ¹²ÏíÎļþ¼ÐÓпÉдµÄȨÏ޲ſÉÒÔ¡£ÎÒÃÇÔÚÉèÖù²ÏíÎļþµÄʱºòÓ¦¸ÃÔÊÐíдÈë¡£
2¡¢ÎªVSSÉèÖû·¾³±äÁ¿
ĬÈÏÇé¿öÏÂÎÒÃÇÿ´Î´ò¿ªVSS¿Í»§¶ËÌî³äµÄÓû§Ãû¶¼Êǵ±Ç°ÏµÍ³µÇ½µÄÓû§£¬ÕâÑùʹÓÃÆðÀ´ºÜ²»·½±ã¡£Î ......
ÐÂÊÖ£¬ÉÏÍøGOOGLEÁË°ëÌ죬Ҳû·¢ÏÖÒ»¸ö×î¼òµ¥µÄ½â¾ö·½°¸£¬¸÷ÍøÕ¾¶¼ÊÇÔÚ³À´³È¥¡£
¸Õ¸ÕÅäÖÃÁËһ̨еÄasp.netµÄÍøÕ¾£¬Ð´Ò»Ï·½Ê½£¬¸ø×Ô¼º×ö¸ö×ܽᡣ
1.°²×°iis 6.0,¾ÍÓÃwindows 2003 ×Ô´ø¹âÅ̾ͿÉÒÔ¡£
2.´ò¿ªiis£¬ Ñ¡ÔñÍøÕ¾->н¨-> ÍøÕ¾£¬È»ºóÑ¡ÔñĿ¼°¡£¬ÆðÃû°¡Ê²Ã´µÄ£¬ºÜÕý³£µÄ²½Öè¡£×¢Òâ°Ñ½Å±¾×ÊÔ´ÄǸö¸øÑ¡ÖÐ
......
ÔÚÄãµÄPage_LoadÖÐÌí¼ÓÕâÑùµÄ´úÂë:
Page.Response.Clear();
bool success = ResponseFile(Page.Request, Page.Response, "Ä¿µÄÎļþÃû³Æ", @"Ô´Îļþ·¾¶", 1024000);
if (!success)
Response.Write("ÏÂÔØÎļþ³ö´í£¡");
Page.Response.End();
ÎļþÏÂÔغ¯Êý´úÂëΪ:
public static bo ......
using System;
using System.Web;
namespace pub.mo
{
public class js
{
private js() { }
private static string scr_j1 = "<mce:script type=\"text/javascript\"><!--
";
private static string scr_j2 = "
// --></mce:script>";
/// <summa ......