IIS - Target frameword - Asked By prateek on 03-Feb-12 03:07 AM

Hello

i create a application in visual studio framework 4.0 and i purchase web space for my application when i host my application and type url in browser then it give me error

Configuration Error


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


how can i configure my application
dipa ahuja replied to prateek on 03-Feb-12 03:27 AM

Solution

image

Source

prateek replied to dipa ahuja on 03-Feb-12 03:30 AM
but i dont have permission of IIS...i have only control panel of my hosting application
kalpana aparnathi replied to prateek on 03-Feb-12 03:35 AM
For your solution try this :

managedRuntimeVersion attribute of <add> element under <applicationPools>


hope will works,

Thanks,
D Company replied to prateek on 03-Feb-12 03:40 AM
Hello Prateek,


first check the version from IIS for your app,

IIS >  Right click on WebSite > Properties > ASP.NET > Version and if it is the same version than no problem, else change it.

Second Set the Application Pool to ASP.NET v4.0(your version) in the IIS. how to do this here MSDN will help you.


Regards
D