directoryvirtualpath问题,怎么解决

directoryvirtualpath问题,怎么解决,第1张

目录不存在.参数名:directoryVirtualPath

我只是发表我的项目我的Arvixe主机和得到这个错误(工程优良地方):

Server Error in '/' Application.

Directory does not exist.

Parameter name: directoryVirtualPath

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.ArgumentException: Directory does not exist.

Parameter name: directoryVirtualPath

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:

[ArgumentException: Directory does not exist.

Parameter name: directoryVirtualPath]

System.Web.Optimization.Bundle.IncludeDirectory(String directoryVirtualPath, String searchPattern, Boolean searchSubdirectories) +357

System.Web.Optimization.Bundle.Include(String[] virtualPaths) +287

IconBench.BundleConfig.RegisterBundles(BundleCollection bundles) +75

IconBench.MvcApplication.Application_Start() +128

[HttpException (0x80004005): Directory does not exist.

Parameter name: directoryVirtualPath]

System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9160125

System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +131

System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +194

System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339

System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +253

[HttpException (0x80004005): Directory does not exist.

Parameter name: directoryVirtualPath]

System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228

System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256

Version Information: Microsoft .NET Framework Version:4.0.30319ASP.NET Version:4.0.30319.237

PlayboyHost,优秀美国西海岸洛杉矶主机供应商

PlayboyHost-PlayboyHost简介

PlayboyHost成立于2009年,是一家新兴的美国主机供应商,位于美国西海岸洛杉矶。提供共享主机(shared hosting)和VPS主机(virtual private hosting),在洛杉矶,达拉斯和宾夕法尼亚均有服务器。其中达拉斯和洛杉矶机房到中国的速度不错,机器性能优异,全部采用litespeed服务 器。   PlayboyHost主机非常稳定,选择位于德克萨斯州达拉斯的Planet作为其数据交换 中心。 Planet拥有超过35,000平方尺的面积,最先进的安全、保障和冷却系统。同时系统具有多个TXU电网,投入4800伏特的电力。软件 Datatrax监测中心的基础设施,并装有一个完全冗余思科网络连接10个骨干网。所以PlayboyHost的客户对他们网站的安全性和可靠性十分的 放心。   服务也不错。因为严格限制空间大小和流量,所以基本没有图片站,采集站,下载站,X人网站,非常适合博客,企业站,正规网站的朋友使用。

在默认的管理界面是找不到设置默认文档的地方的,例如你的主页从default.asp开始,或者从index.asp那么应该如何设置呢?Arvixe空间的IIS7使用了新的分布式web.config配置系统。IIS7不再拥有单一的metabase 配置储存,而将使用和ASP.NET支持的同样的web.config文件模型。在你新建每个站点的时候,系统都会默认生成3个文件夹(data, logs, wwwroot),在wwwroot下会自动生成一个web.config的目录,而我们需要设置的默认文档便可以在这里进行。默认的配置文件如下:<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><directoryBrowse enabled="true" /><defaultDocument><files><clear /><add value="Default.htm" /><add value="Default.asp" /><add value="index.htm" /><add value="Default.aspx" /><add value="index.php" /><add value="index.html" /><add value="index.pl" /><add value="default.html" /></files></defaultDocument></system.webServer></configuration>很明显这是一个XML文件,其中system.webServer目录为当前服务器的配置目录,如果您选择的是asp.net程序,那么请注意不要用你的web.config覆盖掉这个web.config,而是应该将这个文件改写。directoryBrowse 是否允许目录浏览defaultDocument 默认文档访问顺序,可以自行修改如果你对这款如此稳定高效的美国ASP/ASP.NET主机感兴趣,或者你正在选找一款好用,高速,方便的美国主机,可以直接购买,Arvixe支持Paypal和Google Check支付,如果你不方便购买,蓝游科技可以代购,具体价格可以折算为人民币通过支付宝或者转账的形式支付给蓝游科技。


欢迎分享,转载请注明来源:夏雨云

原文地址:https://www.xiayuyun.com/zonghe/164286.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-03-24
下一篇2023-03-24

发表评论

登录后才能评论

评论列表(0条)

    保存