Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 27, 2011 06:24 AM by Azharme
Aug 26, 2011 05:26 AM|LINK
I have two web application on my production server ( windows server 2008 R2 ,iis 7 , framework 2.0,3.5,4.0)
first application built in asp.net 2.0 and secand one is built in 4.0 framework.Now problem is that only one application is running and one is giving error.
if i run aspnet_regiis.exe -i command in ver 2.0 folder than first application starts running without error.and 2nd give error
This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded
if i run aspnet_regiis.exe -i command in ver 4.0 folder than first application giving same error and 2nd start running error.
i have changed their version also from manage application menu but nothing works for me..
Aug 26, 2011 05:41 AM|LINK
You should change .NET version from the application pool settings. Right click on the application pool and click on Basic Settings, then choose the desired .NET framework. You sites should use different application pools, because they have different ASP.NET
Aug 26, 2011 05:59 AM|LINK
I have done it earlier but then it gives another error
Aug 26, 2011 02:04 PM|LINK
Where do you host your asp.net? Your own server or with hosting provider? It should work if you run this command:
Aug 27, 2011 12:43 AM|LINK
Have you tried to host in classic mode application pool to see if it's working?
Aug 30, 2011 06:02 AM|LINK
Hi that is what i am trying to say when i run this command
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i. when first application starts running and second get stopped
and when i run this comnad
%windir%\Microsoft.NET\Framework\v2.0...\aspnet_regiis.exe -i. my second application strats ruuning and first got stoped.
this is my own server , i can login into as administrator
Aug 30, 2011 06:46 AM|LINK
You don't run aspnet_regiis.exe -i to configure ASP.NET version for a website on IIS.
Check 2 websites hosted on the server. They must be use different application pools.
Each application pool should be configured with correct asp.net version and classic/integrated mode.
Sep 27, 2011 06:24 AM|LINK
i have both 2.0 and 4.0 framework installed and then i installed 3.5 sp 1 on the same windows server 2008 R2 but 3.5 sp1 is not appearing in the option list when i create application pool for a website in iis 7.5. Also i have tried to register it through
aspnet_regiis.exe -i this command but still i am unable to see it the iis default pool list no entry for .netframe 3.5 how i do this any idea as you all know that aspnet_regiis.exe tool doesnot exist in the folder of 3.5 sp1
you may check this link but its not working for me do i have to restart the server ? iis? i can't afford this caz this is our live server.
the information in the above link did not help me in any way to get .netframe 3.5 there in iis. then how we do this ????? kindly helpout