Deploying .NET through Plesk

Need:
To deploy a .NET 4.0 web application


Problem:
Plesk is used to manage sites and application pools :(
Plesk is old and only supports .NET 2.0 :( :(


Solution:
create new subdomain in plesk. By default the site will use ASP.NET 2.0
cd c:\...\framework\v4.0.xxxxx
aspnet_regiis.exe -lk
# now go find the identifier of the site/subdomain in IIS, should be a number
# now update .NET version of that site/subdomain using identifier
aspnet_regiis -sn W3SVC//ROOT/
# verify that it worked
aspnet_regiis.exe -lk


Site now served using .NET 4.0 application pool even though Plesk doesn't support it.

No comments: