[IIS] Asp.Net Version: how to Map IIS with good framework ? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

[IIS] Asp.Net Version: how to Map IIS with good framework ?

Hello,

I have an install for deploying Asp.Net 2 site.

Advanced Installer select 1.1.4322 version in property tab IIS (ASP.NET) don't select the good version (2.0.50727).
See IIS config: http://www.davidhayden.com/photos/aspnetversion.gif

I don't see this property in Advanced Installer, it's possible that i have a problem with my web.config, but if i use asp_iisreg command line the site map with 2.0 version !

But asp_iisreg re-map ALL the websites in IIS... It is not a good solution...

Is it possible to automatically select Asp.Net 2 through Advanced Installer ?

Thanks.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [IIS] Asp.Net Version: how to Map IIS with good framework ?

Hi,

Currently Advanced Installer can set the .NET version only for an application pool in IIS 6 or higher. However, a future version (most likely 7.1) will offer support for setting the .NET version for a specific web application. Until then, the workaround is using "aspnet_regiis", like you are doing now.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [IIS] Asp.Net Version: how to Map IIS with good framework ?

Thank you for your reply,

But I have a same problem with IIS 6: (windows 2003 r2)

- I have a dedicated pool for the two sites.
In MyPool, I have in my application pool: Asp.Net (IIS 7 Only) selected V2.0 and Managed pipeline mode: Integrated

On my sites:
In Application Pool, I selected "Use installed application pool: MyPool"

And I always have the same problem in version (v1.1 is selected instead of 2.0)


I guess it only works for the version of IIS7, so the problem of framework version is also on IIS6?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [IIS] Asp.Net Version: how to Map IIS with good framework ?

Hi,

Yes, it seems that the ASP.NET settings are applied only for IIS 7. I was thinking at the application pool availability (IIS 6 or higher). I apologize for the mistake.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [IIS] Asp.Net Version: how to Map IIS with good framework ?

No problem.

But I find qu'Advanced Installer, could solve this problem Framework ... After deploying the site is likely to not work the first time!

Aspnet_iisreg ... Not really a good solution, although I will try to get back ...

Regards
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [IIS] Asp.Net Version: how to Map IIS with good framework ?

Cosmin, I return to you about using aspnet_regiis, I have not seen how to use it on a single WebSite (without using a global mapping of all IIS).
I did that my site is not a Virtual Directory.

Are there no other automatic means to select the Framework?

Actually "aspnet_regiis.exe -r" it's a best practice for you ?



EDIT:

I try "aspnet_regiis -sn W3SVC/1/ROOT/MyWebSite" but path not found...
In iis manager, I have:
* Default Web Sites
* MyWebSite (not include in Default Web Sites)

How to get WebSite ID?? -> W3SVC/<WebSite ID>/ROOT


thanks
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [IIS] Asp.Net Version: how to Map IIS with good framework ?

Oh my god :x
In interface: "how to get website id" http://weblogs.asp.net/owscott/archive/ ... 21058.aspx

I hope qu'Advanced Installer planned how easily recover this famous ID :)
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: [IIS] Asp.Net Version: how to Map IIS with good framework ?

Hi,
Are there no other automatic means to select the Framework?
Currently this is the recommended approach for Advanced Installer. However, a future version will offer support for setting the .NET version for a specific web application.
Actually "aspnet_regiis.exe -r" it's a best practice for you ?
Please note that this is only a workaround. You can also use other workarounds (for example custom code which sets the .NET version).
How to get WebSite ID?? -> W3SVC/<WebSite ID>/ROOT
Currently Advanced Installer doesn't offer direct access to the ID of a web site. However, this feature is on our TODO list and it will be available in a future version. Until then, you can try using a custom action to get the ID of the web site. You can find some sample VBScript code here. You can modify the code to get only the ID and place it into an installer property. The property can then be used by "aspnet_regiis.exe".

Please note that these custom actions should be scheduled after the "InstallExecuteSequence" -> "InstallIIS" standard action as "Deferred".

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alavoler
Posts: 45
Joined: Thu Mar 12, 2009 4:29 pm
Location: France
Contact: Website

Re: [IIS] Asp.Net Version: how to Map IIS with good framework ?

Thanks cosmin

Return to “Common Problems”