About Dotnet FrameWork

Dotnet framework is a framework from microsoft that is needed by the .net application to run correctly and load all of their libraries.

Microsoft DotNet FrameWork 4 Installation with Plesk

One of My customers that has his account hosted on on one of our windows Plesk control panel servers came into live chat for asking to install microsoft .net FrameWork to Enable ASP.net4 on that Plesk Control panel Hosting machine.

I thought myself that it wold be easy  that it is just some download and installation of Dotnet FrameWork and after the installation every thing would be setup and ready to use asp.net 4.

I went ahead and downloaded dot net framework 4 installer from here

Downlaod Dotnet FrameWork4 Here

After that I ran the setup that actually will download and install all of the core apckages automaticly.

Error After Instalation<compilation debug=”false” targetFramework=”4.0″>

Then I pointed my browser to that page containing the ASP.NET 4 script to test if every thing is working correctly

but unfortunately I endup errors showing in that page.I have pasted That error I received below:


plesk quata and traffic are 0

Server Error in ‘/’ Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive.

Source Error:

Line 22: <error statusCode=”404″ redirect=”filenotfound.htm”/>

Line 23: <a/customErrors>

Line 24: <compilation debug=”false” targetFramework=”4.0″>

Line 25: <expressionBuilders>

Line 26: <add expressionPrefix=”NopResources” type=”NopSolutions.NopCommerce.BusinessLogic.Localization.NopResourceExpressionBuilder, Nop.BusinessLogic”/>


Source File: C:\inetpub\vhosts\parsehhamrah.com\httpdocs\web.config Line: 24


Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4205

As it will be understood from the last lines of error it shows that the web server IIS is still using the outdated ASP.NET 2 that is the old one version.

I went to the server manager then  IIS manger Role to restart it maybe that was that the IIS needed a restart for the changes to take effect.But again it didn’t fix the issue and I was still receiving that error.

I went into the IIS manger application pool to see whether the ASP.NET4 has been registered in it or not.I noticed that ASP.NET4 has been registered in aplication pool.you can see it in the image below,Click that to Enlarge the image:

plesk quata and traffic are 0

I found out that all of the websites are suing the plesk(default)(2.0)(pool) so I double clicked on that and changed the .net version it was using to version4 but unfortunately it didn’t help and all of the other websites even those that are using ASP.NET4 went into errors.I restored its .net version back inot 2.0.

then I thought myself that why ASP.NET is not working as it is registered.why I can not change the plesk(default)(2.0)(pool) .net version into 2 to have both .net 2 and 4 running.by playing with aplication pool I finally found out the solution that the theory I thought was to have plesk(default)(2.0)(pool) on .net 2 and having asp.net4 connected into that to enable serving asp.net4 scripts.

I clicked on ASP.net4 and then chose the advanced option on the right hand side,Clicked on Identity option on the page that opened,then changed its from Network Service To LocalSystem ,After that I opened that ASP.net 4 script and it was running without any problems,Also I checked those ASP.net2 scripts pages and those also had no issues on them.

I Hope this Article could be useful for you that I didn’t found any solutions in any of sites or forums that I encountered in that situation,So I made up my mind to write it to help You that encountered the same issue that I did.

Thanks

voshka

Server Error in ‘/’ Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive.

Source Error:

Line 22: <error statusCode=”404″ redirect=”filenotfound.htm”/>

Line 23: <a/customErrors>

Line 24: <compilation debug=”false” targetFramework=”4.0″>

Line 25: <expressionBuilders>

Line 26: <add expressionPrefix=”NopResources” type=”NopSolutions.NopCommerce.BusinessLogic.Localization.NopResourceExpressionBuilder, Nop.BusinessLogic”/>

11 COMMENTS

  1. Hi,Arturo

    It was my Pleasure that i could be any of Help.

    I hope i could get some extra spare time to write more of my experiences with plesk and other IT Related things.

    THanks

  2. Én vagyok nyűgözve! Igazán tanulságos blogbejegyzést itt a barátom. Csak azt akartam mondani, Megjegyzés és lépést tartani a minőségi munkát.

  3. Hi Arturo,

    Thanks for well written article.

    After following your insturctions, I’m still stuck as I receive “The requested content appears to be script and will not be served by the static file handler” error. I’m using “ASP.NET 4.0” appliction pool in Integrated mode (have also tried classic mode) and also tried all available identities, but no luck.

    I’ve tried re-registering ASP.net 4.0 in IIS but couldn’t fix this issue.

    Any ideas here?

    Thanks in advance,
    Raj

  4. Great submit, very informative. I wonder why the other experts of this sector do not understand this. You should proceed your writing. I’m confident, you’ve a great readers’ base already!|What’s Going down i’m new to this, I stumbled upon this I have discovered It positively useful and it has aided me out loads. I hope to contribute & assist different customers like its helped me. Good job.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.