• Register
0 votes
50 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 91 views
91 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 114 views
114 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 58 views
58 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, 2020 jwilliam 3.9k points
0 votes
1 answer 17 views
17 views
Problem I am newbie to C# I am confused by .Net Garbage Collection logic. When does GC free memory?
asked Oct 8, 2020 alexh 2.2k points
1 vote
1 answer 30 views
30 views
What does CultureInfo.InvariantCulture mean? How to Convert String to DateTime?How to 2020-09-22 12:57:52,531Class string converted to DateTime ?
asked Sep 21, 2020 Aliza313 720 points
0 votes
1 answer 11 views
11 views
Problem: Hello. I am using visual studio 2019 and doing a project WPF using Telerik UI. I trying to change the cell color of gridview with conditions. please help me. What I have tried: radGridView1.ItemsSource = getdetails_ds.DefaultView; this.radGridView1.Rows[0].Cells[1].Style.ForeColor = System.Drawing.Color.Red;
asked Sep 14, 2020 boris elin 620 points
0 votes
1 answer 13 views
13 views
Problem: Using Javascript in C# var txtElecType = $("#txtElecType_" + RowID + ""); txtElecType.css("border", "1px solid red"); var txtElecType = $("#txtElecType_" + RowID + ""); txtElecType.css("border", "1px solid red"); var txtElecType = $("#txtElecType_" + RowID + "" ... ("border", "1px solid red"); var txtElecType = $("#txtElecType_" + RowID + ""); txtElecType.css("border", "1px solid red");
asked Sep 14, 2020 boris elin 620 points
0 votes
1 answer 6 views
6 views
For what reason i am obtaining "Unable to find the requested .Net Framework Data Provider" at the time attempting to setup a fresh datasource in Visual Studio 2010 Professional?
asked Sep 14, 2020 Daniel Anderson 4k points
0 votes
1 answer 21 views