MVC5项目怎么部署在服务器上,一个MVC项目的IIS部署问题

该博客记录了一次应用程序启动时遇到的错误,具体表现为一个未处理的异常事件,错误代码3005。异常类型为InvalidOperationException,错误消息指出在预应用启动初始化方法RunOnType CTripOSS.SessionService.Client.AutoRun中抛出了一个异常,错误信息为'Object reference not set to an instance of an object'。此异常发生在尝试从Eureka服务获取服务信息时。博客中还包含了详细的堆栈跟踪信息和请求信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

详细错误信息

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 2016-2-15 13:58:27

Event time (UTC): 2016-2-15 5:58:27

Event ID: 207b5753cf5142bda3eb7398d9a06c9f

Event sequence: 1

Event occurrence: 1

Event detail code: 0

Application information:

Application domain: /LM/W3SVC/2/ROOT/Test-10-130999891980058972

Trust level: Full

Application Virtual Path: /Test

Application Path: D:\port\New\

Machine name: VMS12014

Process information:

Process ID: 27912

Process name: w3wp.exe

Account name: IIS APPPOOL\DefaultSite

Exception information:

Exception type: InvalidOperationException

Exception message: The pre-application start initialization method Run on type CTOSS.SessionService.Client.AutoRun threw an exception with the following error message: Object reference not set to an instance of an object.

-------------------------------------------------

eurekaServiceUrl:http://10.2.6.240:8080/eureka/v2

serviceInfo:10.2.6.239@9090   10.2.6.238@9090   10.2.6.236@9090   10.2.6.239@9090   10.2.6.238@9090   10.2.6.236@9090   10.2.6.239@9090   10.2.6.238@9090   10.2.6.236@9090   10.2.6.239@9090   .

at System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures)

at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods)

at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)

at System.Web.Compilation.BuildManager.ExecutePreAppStart()

at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

Object reference not set to an instance of an object.

-------------------------------------------------

eurekaServiceUrl:http://10.2.6.240:8080/eureka/v2

serviceInfo:10.2.6.239@9090   10.2.6.238@9090   10.2.6.236@9090   10.2.6.239@9090   10.2.6.238@9090   10.2.6.236@9090   10.2.6.239@9090   10.2.6.238@9090   10.2.6.236@9090   10.2.6.239@9090

at CTripOSS.SessionService.Client.AutoRun.Run()

Request information:

Request URL: http://localhost/Test

Request path: /Test

User host address: 127.0.0.1

User:

Is authenticated: False

Authentication Type:

Thread account name: IIS APPPOOL\DefaultSite

Thread information:

Thread ID: 226

Thread account name: IIS APPPOOL\DefaultSite

Is impersonating: False

Stack trace:    at System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures)

at System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods)

at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)

at System.Web.Compilation.BuildManager.ExecutePreAppStart()

at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

Custom event details:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值