Configuration Error related to targetFramework in web.config

后端 未结 7 852
青春惊慌失措
青春惊慌失措 2021-02-02 06:54

I have made an MVC website in Visual Studio 2015 and it works in my localhost. But when I published my website and put into my host, it doesn\'t work. It gives me this error not

相关标签:
7条回答
  • 2021-02-02 07:45

    I tried replacing the targetFramework 4.5.2 to targetFramework 4.0 directly in config file. Then it and all the functions work correctly.

    Before:

    <compilation targetFramework="4.5.2">
    

    After:

    <compilation targetFramework="4.0">
    
    0 讨论(0)
提交回复
热议问题