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!

Antarctica
Posts: 110
Joined: Tue Jul 08, 2014 9:24 am

ASP.NET 4 installed automatically - or not?

My installer's IIS configuration:
Application Pools
-> My Application Pool
--> ASP.NET Framework version v4.0, Pipeline integrated
-> Default Web Site
--> myapp
---> pooled, AppPool "My Application Pool"
---> .NET Registration: ASP.NET 4.0.30319
and then authentication and some custom properties, and that's it,

Now my problem:

-> On Windows 2012 server, the shipped ASP.NET 4.5 is installed automatically and everything runs smoothly out of the box.
-> On Windows 2008R2, with .NET Framework 4 downloaded from web and installed, ASP.NET 4 is NOT installed automatically, I have to do it manually ("aspnet_regiis -i" in the .NET framework folder...).

Is this intended behaviour or some OS limitation?

Now I would like to automate that "aspnet_regiis".
How can I find out where the folder of the .NET framework is?
I guess it isn't always "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\"?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ASP.NET 4 installed automatically - or not?

Hello,

First of all I apologize for my delayed reply.
-> On Windows 2012 server, the shipped ASP.NET 4.5 is installed automatically and everything runs smoothly out of the box.
-> On Windows 2008R2, with .NET Framework 4 downloaded from web and installed, ASP.NET 4 is NOT installed automatically, I have to do it manually ("aspnet_regiis -i" in the .NET framework folder...).
I'm not sure why this happens. I've tested your scenario, but I cannot replicate the behavior. The "ASP.NET" server role service (belonging to the "Web Server (IIS)" role) is automatically installed by the setup package when the installed web application is configured to use the ASP.NET v4. Can you replicate the behavior on multiple Windows Server 2008 R2 machines? If so, can you please please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?
Now I would like to automate that "aspnet_regiis".
How can I find out where the folder of the .NET framework is?
I guess it isn't always "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\"?
There is no need to use a custom action for this. In order to install the "ASP.NET" feature under IIS on target machines you can use our "Windows Features" predefined support. Just go to "Prerequisites" page, add a new Windows feature bundle, select the desired target operating systems and in the "Available Windows Features" section check the "Internet Information Services -> World Wide Web Services -> Application Development Features -> ASP".

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”