• Register
0 votes
72 views

Problem :

I am trying to up load my site to my host but I am facing following error message:

Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

<compilation debug="true" targetFramework="4.0">

My site is working fine on my local PC but it is not at all opening whenever I am trying to view my site after uploading it to my host.

How can I resolve the issue?

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

This error typically pops up whenever there is an attribute of targetFramework="4.0you’re your web.config but on the other hand the App Pool is pointing to run ASP.NET 2.0. In the current situation the targetFramework attribute is completely unrecognized by ASP.NET 2.0 So just changing it to 2.0 will not have the desired effect.

You need to Contact your Support or the Administrator and request them the AppPool to be switched to 4.0.

Switching your App pool to 4.0

Please check in the top level of your IIS Manager, you will see the required Application Pools tree node. Just right click on the "Application Pools" and choose the "Add Application Pool".

After that give it a desired name and choose the .NET Framework 4.0 the mode as either Integrated or Classic mode.

So now when you will add or edit your web site, the new application pools will now be showing up in the list.

If you follow above procedure your issue will be resolved..

9 7 4
38,600 points

Related questions

0 votes
1 answer 200 views
200 views
Problem : I want to deploy my ASP.NET application. I have tried deploying my site to IIS, but when I visit it with the browser, it gives me following error : Server Error 500 - Internal server error. There is a problem with the resource you are looking for ... error: The page cannot be displayed because an internal server error has occurred. I want to see the actual issue behind my server error?
asked Dec 7, 2019 alecxe 7.5k points
0 votes
1 answer 5 views
5 views
Problem: I am getting the error : Maximum request length exceeded when I am trying to upload a video in my site. How do I fix this?
asked Mar 21 ummesalma 25.2k points
0 votes
1 answer 5 views
5 views
Problem: I have a web project in my solution file that is "unavailable" when I open the solution. When I right-click on the web project and reload the project, I get the following error: The Web Application Project mycompany.myapp.mywebproject is configured to use IIS. The Web Server 'http://localhost/MyWebApp could not be found.
asked Mar 20 ummesalma 25.2k points
0 votes
1 answer 147 views
147 views
Problem : I have recently installed a website on my local machine using IIS 7 successfully. But when I tried to deploy it on the live server, I got a following error: "The page cannot be displayed because an internal server error has occurred" Nothing else. Using a same IIS 7 on live and also set to have the Detailed errors in Error Pages module, but still getting a same. What can be the reason?
asked Jan 28, 2020 jwilliam 3.9k points
0 votes
1 answer 12 views
12 views
Problem: Hi, I want to take multiple employee ids in one shot from the user and need to assign them to list .in asp.net, pls help me to sort it out. What I have tried. I have created a text box and tried with validator but it didn't worked out.
asked Sep 14, 2020 boris elin 620 points
0 votes
1 answer 1 view
1 view
Problem: How can I write it for a password must be eight characters including one uppercase letter, one special character, and alphanumeric characters?
asked 4 days ago ummesalma 25.2k points
0 votes
1 answer 3 views
3 views
Problem: I am developing an ASP.NET application with C # that will need to consult the movements of legal proceedings online. Need to Search court case data on the TJSP website Any help is welcome.
asked Mar 24 ummesalma 25.2k points
0 votes
1 answer 6 views
6 views
Problem: Created a new template ASP.Net Core 3.1 MVC web app. When I attempt to debug it using IIS Express I get the following error in firefox: Error code: SSL_ERROR_UNSUPPORTED_VERSION
asked Mar 23 ummesalma 25.2k points
0 votes
1 answer 4 views
4 views
Problem: I have an issue that i am unable to launch iis express web server.
asked Mar 22 waseem memon 2.4k points
0 votes
1 answer 4 views
4 views
Problem: i have a problem that i am unable to launch iis web server can anybody solve this issue.
asked Mar 22 waseem memon 2.4k points