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..
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
versions.
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.
harminder si...
Participant
1021 Points
571 Posts
how to register 2.0 and 4.0 framwork on windows server 2008 R2
Aug 26, 2011 05:26 AM|LINK
Dear All,
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..
HostingASPNe...
All-Star
15876 Points
2974 Posts
Re: how to register 2.0 and 4.0 framwork on windows server 2008 R2
Aug 26, 2011 05:41 AM|LINK
Hello,
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 versions.
Regards
Free ASP.NET Examples and source code.
harminder si...
Participant
1021 Points
571 Posts
Re: how to register 2.0 and 4.0 framwork on windows server 2008 R2
Aug 26, 2011 05:59 AM|LINK
I have done it earlier but then it gives another error
HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
dotnetnerd
Contributor
2396 Points
547 Posts
Re: how to register 2.0 and 4.0 framwork on windows server 2008 R2
Aug 26, 2011 02:04 PM|LINK
Hi harminder,
Where do you host your asp.net? Your own server or with hosting provider? It should work if you run this command:
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i.
Windows ASP.NET Hosting | Reseller Hosting | Cloud Hosting
Topspy
Contributor
3775 Points
806 Posts
Re: how to register 2.0 and 4.0 framwork on windows server 2008 R2
Aug 27, 2011 12:43 AM|LINK
Have you tried to host in classic mode application pool to see if it's working?
Asp.net Hosting | Windows Hosting | SQL Server Hosting
harminder si...
Participant
1021 Points
571 Posts
Re: how to register 2.0 and 4.0 framwork on windows server 2008 R2
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
kctt
Contributor
5004 Points
948 Posts
Re: how to register 2.0 and 4.0 framwork on windows server 2008 R2
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.
Azharme
Member
2 Points
1 Post
Re: how to register 2.0 and 4.0 framwork on windows server 2008 R2
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.
http://msdn.microsoft.com/en-us/library/k6h9cz8h(v=VS.90).aspx
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
Azhar Mehmood
www.parachatech.com
www.nimblegeeks.com
azhar.mehmood@nimblegeeks.com
regards