我安装了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)