相关疑难解决方法(0)

确保HttpConfiguration.EnsureInitialized()

我安装了Visual Studio 2013,当我运行我的应用程序时,我收到以下错误.

我不知道我要在哪里初始化这个对象.

该怎么办?

    Server Error in '/' Application.

The object has not yet been initialized. Ensure that HttpConfiguration.EnsureInitialized() is called in the application's startup code after all other initialization code.

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.InvalidOperationException: The object has not yet been initialized. Ensure that HttpConfiguration.EnsureInitialized() is called in the …
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net-mvc-routing

139
推荐指数
8
解决办法
7万
查看次数

标签 统计

.net ×1

asp.net-mvc-routing ×1

c# ×1