• Register
0 votes

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

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 59 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 70 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 jwilliam 3.9k points
0 votes
1 answer 5 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 boris elin 620 points
0 votes
1 answer 48 views
Problem : I have my newly created website. First time I was able to succesfully login. The default address: www.abc.com I typed above address on browser and it redirected me to my login page: www.abc.com/pages/landingpage.aspx When I entered my login credential and tried to log ... open my site number of tabs and the browsers but as soon as I am logged in to my site, I am getting the above error.
asked Jan 31 jwilliam 3.9k points
0 votes
1 answer 7 views
I am newbie to C# I am confused by .Net Garbage Collection logic. When does GC free memory?
asked Oct 8 alexh 280 points