How to set ASP.NET version with WebSite.Create

Mar 11, 2008 at 10:47 PM
When you manually create a Web Site, you can click on ASP.NET tab and then change ASP.NET version. We are using ASP.NET 2.0, but by default a Web Site is created with version 1.1.
Is there a property I can use with WebSite.Create to set an ASP.NET version?

Thanks
--Mike
Developer
Mar 12, 2008 at 10:23 AM
Have you registered ASPNET 2.0 on the server? Try running aspnetregiis -i or aspnet_regiis -r from a VS2005/8 Command Prompt. After you've done that, try creating the website again. As far as I know, there isn't a way to specify the version in the task.

Mike