为什么会出现runtime错误呢?

rocksnow 2003-12-12 04:37:06
为什么会出现runtime错误呢?
是因为框架没装好吗??
...全文
264 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
rocksnow 2003-12-15
  • 打赏
  • 举报
回复
以上是错误信息
请高手赐教啦!
rocksnow 2003-12-15
  • 打赏
  • 举报
回复
Server Error in '/CommunityStarterKit' Application.
--------------------------------------------------------------------------------

Access denied to 'D:\greenweb'. Failed to start monitoring file changes.
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.HttpException: Access denied to 'D:\greenweb'. Failed to start monitoring file changes.

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:


[HttpException (0x80004005): Access denied to 'D:\greenweb'. Failed to start monitoring file changes.]
System.Web.FileChangesMonitor.StartMonitoringFile(String fileName, FileChangeEventHandler callback) +182
System.Web.Caching.CacheDependency.Init(String[] filenames, String[] cachekeys, CacheDependency dependency, DateTime start) +1478
System.Web.Caching.CacheDependency..ctor(String[] filenames, DateTime start) +38
System.Web.Configuration.HttpConfigurationSystem.GetCacheDependencies(Hashtable cachedeps, DateTime start) +150
System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap) +738
System.Web.HttpContext.GetCompleteConfigRecord(String reqpath, IHttpMapPath configmap) +208
System.Web.HttpContext.GetCompleteConfig() +50
System.Web.HttpContext.GetConfig(String name) +42
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow) +40
System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) +370




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0
rocksnow 2003-12-14
  • 打赏
  • 举报
回复
可是我把web.config文件改了还是不能看错误

郁闷ING
Programmersheaven 2003-12-12
  • 打赏
  • 举报
回复
程序的可能出现的方面很多嘛```不看错误怎知道
Programmersheaven 2003-12-12
  • 打赏
  • 举报
回复
不允许查看错误信息如何得知呢??
如果可以的话,可以用远程桌面打开服务器上的浏览器看一下就OK
rocksnow 2003-12-12
  • 打赏
  • 举报
回复
这个偶当然知道啦
现在偶想知道的是
什么情况下会出现runtime错误??
出现runtime错误代表什么方面出现了问题呢?
Programmersheaven 2003-12-12
  • 打赏
  • 举报
回复
这是因为你的程序出了问题,而web.config又不允许远程客户端查看错误的信息。
Programmersheaven 2003-12-12
  • 打赏
  • 举报
回复
你安装的英文版的.net framework, 应该下个中文,这说要查看错误请将web.config中的<customErrors> 的mode 改成off你就可以看到服务器的错误原因了(远程的机子看不到错误详细信息的,除非在服务器打开浏览器,若要远程查看错误,就必须把mode的值设为off)
rocksnow 2003-12-12
  • 打赏
  • 举报
回复
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

这是页面中显示的东东

到底是为什么呢???
???2008 2003-12-12
  • 打赏
  • 举报
回复
出现什么错误?
一般原因就是没装好。

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧