Configuration Error related to targetFramework in web.config

后端 未结 7 882
青春惊慌失措
青春惊慌失措 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:27

    Your website project is targeting v4.6 of the .Net Framework but your hosting provider has not yet installed this version. Your options:

    1. Ask provider to install it - they are unlikely to do this.
    2. Find another provider that does support it.
    3. Change your project to target v4.5.

提交回复
热议问题