mbcizmar
Posts: 7
Joined: Mon Aug 28, 2006 8:02 pm

Change WebSite to ASP.NET 2.0 Instead of 1.1

I have an installation where I'm installing a ASP.NET 2.0 web application.

By default, it sets up my application as 1.1 Any ideas on how to change that?

TIA.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I don't think that this can be controlled by Advanced Installer. I think this is related on how you create that web application. But please give me more details about how your web application is integrated with AI.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mbcizmar
Posts: 7
Joined: Mon Aug 28, 2006 8:02 pm

With AI, I can create an MSI that installs web application. Sometimes, ASP.NET 1.1 is the default runtime used and so the site attempts to execute in ASP.NET 1.1.

My web application is written for ASP.NET 2.0 and therefor fails.

gigi wrote:Hi,

I don't think that this can be controlled by Advanced Installer. I think this is related on how you create that web application. But please give me more details about how your web application is integrated with AI.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

If you application requires .NET 2.0 in order to work then you need to put .NET Framework 2.0 as prerequisites. For more details about how to use prerequisites please see:
http://www.advancedinstaller.com/user-g ... tware.html

To install prerequisites check "Prerequisites" page "software" tab in AI. You can find the .Net Framework in the common prerequisites list.

Also check this link, can be helpful:
http://www.advancedinstaller.com/forums ... +framework

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mbcizmar
Posts: 7
Joined: Mon Aug 28, 2006 8:02 pm

Thanks for the reply Gigi...

I am creating a .NET 2.0 website. I am using the enterprise application to do this. In the enterprise version of advancedinstaller. In this version you can create an IIS website. When I create the IIS website, it sets it up to the default .net version. I would like to switch this.

(I have setup a .NET 2.0 prerequest)
gigi wrote:Hi,

If you application requires .NET 2.0 in order to work then you need to put .NET Framework 2.0 as prerequisites. For more details about how to use prerequisites please see:
http://www.advancedinstaller.com/user-g ... tware.html

To install prerequisites check "Prerequisites" page "software" tab in AI. You can find the .Net Framework in the common prerequisites list.

Also check this link, can be helpful:
http://www.advancedinstaller.com/forums ... +framework

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The default the .Net version is taken from the system. For now this can not be controlled from Advanced Installer. But we shall consider to implement this is a future release. Thank you for your suggestion.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Phobos
Posts: 85
Joined: Fri Sep 08, 2006 11:52 am
Location: Germany

Hi,

If I understood the situation correctly you should be able to do this using a custom action that executes following commandline:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -sn w3svc/1/root/<nameofapplication>

Change <nameofapplication> to the name of the web application you are installing.

Return to “Common Problems”