Chr*_*low 5 c# asp.net iis-7.5 asp.net-mvc-3
我正在尝试将我的第一个MVC3应用程序部署到运行IIS-7.5的服务器上.我已经启动并运行了,但是我的调试方法遇到了一些问题.我使用专有的调试构造,当我在本地运行应用程序(使用内置的"IIS Express"模块和Visual Studio)时工作正常 - 但是当我部署到服务器时,我甚至没有创建我的调试文件,印刷得少得多.
调试文件是在Application_Start事件中创建的,因此我在Application_Start事件中添加了一个事件日志标记,并在本地和服务器上运行应用程序,以查看事件是否被触发.我在本地的事件日志已按预期标记,但服务器上的事件日志没有任何新标记.这里发生了什么?
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
//This is just some code that calls to another module I wrote to easily stamp to the Event logs - it works, trust me
EventLogging.Initialize();
EventLogging.WriteEventLog("Application Start Called Successfully");
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1458 次 |
| 最近记录: |