Installing asp.net state service

As some how I got my AspNet State service failed to run, its deleted automatically. So there was not such service in my service listing. To get it running again we need it install it.

Following are the commend to install it back:

1. Open you command prompt:

        • a) Go to the .net Framework directory [Form me its .NET 4 and 64 bit Win 7]: X:\Windows\Microsoft.NET\Framework64\v4.0.30319>
      • b) Run the following commands:
                      •              aspnet_regiis.exe –u
                                     aspnet_regiis.exe –i
                                     aspnet_regiis.exe –c

                        You should now get the service running and can view the list of service services.msc.

                        StateService

Running IIS and Apache in Same Box

I was facing problem to run IIS and Apache simultaneously. After a few tricks here is a way I have found to make it work.

IIS7 Apache

To confirm my box is running on Windows 7 and IIS 7.

Assuming that you have IIS installed and trying to work with Apache and MySql. To do that I downloaded XAMPP. Install it XAMPP.

Now if we follow the following instruction then it should work fine:

1. Open C:\xampp\apache\conf\httpd.conf

a) Look for “Listen 80″, change to “Listen 8080″.

b) Look for “ServerName localhost:80″, change to “ServerName localhost:8080″

There is only one instance of both the search item.

2. Now Open C:\xampp\apache\conf\extra\httpd-ssl.conf

a) Look for “Listen 443″, change to “Listen 4499″

b) Look for “<VirtualHost _default_:443>”, change to “<VirtualHost _default_:4499>”

c) Look for "“ServerName localhost:443″, change to “ServerName localhost:4499″.

Then both IIS and Apache could run on the same box.

Test by following Urls;

1) For IIS : http://localhost/

2) For Apache: http://localhost:8080/xampp/ or http://localhost:8080/phpmyadmin/ 

Please remember to put port 8080 for Apache running pages.

Cheers. Please let me know if it works for you.

Also you can see: http://blog.wolffmyren.com/2008/07/30/making-xampp-apache-work-with-iis-on-windows-xpvista/

Follow

Get every new post delivered to your Inbox.

Join 46 other followers