全球主机交流论坛

标题: 配置aspx环境,出现Server Error in '/' Application. Runtime Error 是怎 [打印本页]

作者: jkfd139    时间: 2012-2-27 10:53
标题: 配置aspx环境,出现Server Error in '/' Application. Runtime Error 是怎
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".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>



已经能正常运行php。asp 求解决aspx
作者: wdlth    时间: 2012-2-27 10:59
开显错,再看错误。
作者: jkfd139    时间: 2012-2-27 13:35
Server Error in '/' Application.
--------------------------------------------------------------------------------

The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.
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: The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

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): The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
   System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +8918190
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +152

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259




作者: cnweb    时间: 2012-2-27 13:38
微软的东西就是让人蛋疼
作者: lqtest    时间: 2012-2-27 13:52
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\   给予user权限
作者: jkfd139    时间: 2012-2-27 14:08
已解决,谢谢了!!!~
作者: sowahkhoo    时间: 2012-2-27 14:09
提示: 作者被禁止或删除 内容自动屏蔽
作者: 用户名    时间: 2012-2-27 14:18
本帖最后由 用户名 于 2012-2-27 14:18 编辑

好吧




欢迎光临 全球主机交流论坛 (https://hostloc.gdisk.cf/) Powered by Discuz! X3.4