一些aspx配置的问题.pdf
上传人:sy****28 上传时间:2024-09-14 格式:PDF 页数:2 大小:42KB 金币:16 举报 版权申诉
预览加载中,请您耐心等待几秒...

一些aspx配置的问题.pdf

一些aspx配置的问题.pdf

预览

在线预览结束,喜欢就下载吧,查找使用更方便

16 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

一般在配置ASPX环境时,要先装IIS,再装.NETFramework,如果次序颠倒的话,就很有可能会出现以下的错误:FailedtoaccessIISmetabase解决运行VisualStudio.NET2003的程序出现错误信息:ServerErrorin'程序名'ApplicationFailedtoaccessIISmetabase.Description:Anunhandledexceptionoccurredduringtheexecutionofthecurrentwebrequest.Pleasereviewthestacktraceformoreinformationabouttheerrorandwhereitoriginatedinthecode.ExceptionDetails:System.Web.Hosting.HostingEnvironmentException:FailedtoaccessIISmetabase.TheprocessaccountusedtorunASP.NETmusthavereadaccesstotheIISmetabase(e.g.IIS://servername/W3SVC).Forinformationonmodifyingmetabasepermissions,pleaseseehttp://support.microsoft.com/?kbid=267904.SourceError:Anunhandledexceptionwasgeneratedduringtheexecutionofthecurrentwebrequest.Informationregardingtheoriginandlocationoftheexceptioncanbeidentifiedusingtheexceptionstacktracebelow.StackTrace:[HostingEnvironmentException:FailedtoaccessIISmetabase.]System.Web.Configuration.MetabaseServerConfig.MapPathCaching(StringsiteID,VirtualPathpath)+3500426System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(StringsiteID,VirtualPathvpath)+9System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPathvirtualPath,BooleanpermitNull)+163System.Web.CachedPathData.GetConfigPathData(StringconfigPath)+382System.Web.CachedPathData.GetConfigPathData(StringconfigPath)+243System.Web.CachedPathData.GetApplicationPathData()+68System.Web.CachedPathData.GetVirtualPathData(VirtualPathvirtualPath,BooleanpermitPathsOutsideApp)+3393747System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPathpath)+189--------------------------------------------------------------------------------------------------------------------解决的办法是:Win2000系统:运行cmd.c:/>cd/WINNT/Microsoft.NET/Framework/v2.0.50727c:/WINNT/Microsoft.NET/Framework/v2.0.50727>aspnet_regiis.exe-iWinXP系统:运行cmd.先进入C盘cd\接下来:c:/>cdC:/WINDOWS/Microsoft.NET/Framework/v2.0.50727c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727>asp