ive been trying to get asp up and working on iis for a while now and keep coming across issues
im wondering if anyone has any step through guides or simple install packages that will work on windows server 2008.
im currently running mssql and iis7 and am trying to get asp running on it over the local network so i can do some development (local web app using sql database)
any ideas.
thanks all.
should also mention when i try a simple bit of php code on the iis i get '
An unhandled exception was generated during the execution of the current web request.
If i run it using visual web developer's built in test server it runs fine...
Instructions
This is all you should do (and why):
1.Install PHP into %SYSTEMDRIVE%\Inetpub\PHP (I want to easily inherit any IIS7-related ACLs)
2.Download and unpack PHP into %SYSTEMDRIVE%\Inetpub\PHP (For this example, I chose the
latest currently available build, PHP 5.1.2 ZIP package, from http://www.php.net/downloads.php )
3.Use the recommended PHP.INI-Recommended INI file inside the PHP directory (or whatever PHP
configuration you need)
4.Configure a Handler for *.php using %SYSTEMDRIVE%\Inetpub\PHP\PHP5ISAPI.DLL or
%SYSTEMDRIVE%\Inetpub\PHP\PHP-CGI.EXE (I prefer the ISAPI version on IIS) and order the
Handler AHEAD of the StaticFile Handler
5.Configure an ISAPI and CGI Restrictions entry to enable the added Handler for PHP
This is all you need to do. Conceptually, it is not any different than prior IIS versions, like IIS6, and the necessary data is pretty much the same. The only difference is that you are configuring a Handler instead of an Application Mapping. This is because
we have reconciled the IIS Application Mapping with the ASP.Net httpHandlers (as well as many other things, such as ISAPI Filters and httpModules) to form the new IIS7 Integrated Pipeline. The new unified section is called "handlers".
i have unstalled it all and reinstalled it now it seems to be working.. i did have some odd issues with sql authentication but i seem to have sorted that one out :P
my next question is do people develop on remote servers with visual studio? if so how? i have been just working on a mapped network drive which is in essence the wwwroot folder of the iis, is there another better way for developing asp.net with vs?
WiErD
Member
6 Points
5 Posts
Help with settings up asp and iis on local network
Apr 20, 2011 07:27 AM|LINK
Hi all,
ive been trying to get asp up and working on iis for a while now and keep coming across issues
im wondering if anyone has any step through guides or simple install packages that will work on windows server 2008.
im currently running mssql and iis7 and am trying to get asp running on it over the local network so i can do some development (local web app using sql database)
any ideas.
thanks all.
should also mention when i try a simple bit of php code on the iis i get '
If i run it using visual web developer's built in test server it runs fine...
bbcompent1
All-Star
33063 Points
8516 Posts
Moderator
Re: Help with settings up asp and iis on local network
Apr 20, 2011 01:35 PM|LINK
Take a look below and see if this helps: (from http://blogs.msdn.com/b/david.wang/archive/2006/04/04/howto-install-and-run-php-on-iis7.aspx)
This is all you need to do. Conceptually, it is not any different than prior IIS versions, like IIS6, and the necessary data is pretty much the same. The only difference is that you are configuring a Handler instead of an Application Mapping. This is because we have reconciled the IIS Application Mapping with the ASP.Net httpHandlers (as well as many other things, such as ISAPI Filters and httpModules) to form the new IIS7 Integrated Pipeline. The new unified section is called "handlers".
bbcompent1
All-Star
33063 Points
8516 Posts
Moderator
Re: Help with settings up asp and iis on local network
Apr 20, 2011 01:38 PM|LINK
Quick question - you mention ASP yet the error you get relates to PHP. Which one are you having trouble with? ASP / PHP / BOTH?
WiErD
Member
6 Points
5 Posts
Re: Help with settings up asp and iis on local network
Apr 21, 2011 01:49 AM|LINK
i dont know why i wrote php code.. i used to develop in that many moons ago.. it is just asp.net im developing in.
guess my brain went to sleep :P
bbcompent1
All-Star
33063 Points
8516 Posts
Moderator
Re: Help with settings up asp and iis on local network
Apr 21, 2011 10:48 AM|LINK
Ok, then this is something different. Generally, this error can be caused by a few known issues.
1. DLL corrupted
2. Third-Party ISAPI filter
3. possible bad memory module.
Does the event viewer from the server give you any clues? Maybe you could post the entire error message stack that gets displayed?
kctt
Contributor
5004 Points
948 Posts
Re: Help with settings up asp and iis on local network
Apr 27, 2011 08:10 AM|LINK
Please try to install PHP from web platform installer
http://www.microsoft.com/web/downloads/platform.aspx
Then test php info
http://php.net/manual/en/function.phpinfo.php
bbcompent1
All-Star
33063 Points
8516 Posts
Moderator
Re: Help with settings up asp and iis on local network
Apr 27, 2011 12:22 PM|LINK
He isn't having a PHP problem, its an ASP.NET issue. He clarified that for me a couple postings ago.
WiErD
Member
6 Points
5 Posts
Re: Help with settings up asp and iis on local network
Apr 28, 2011 01:03 AM|LINK
Thanks all,
i have unstalled it all and reinstalled it now it seems to be working.. i did have some odd issues with sql authentication but i seem to have sorted that one out :P
my next question is do people develop on remote servers with visual studio? if so how? i have been just working on a mapped network drive which is in essence the wwwroot folder of the iis, is there another better way for developing asp.net with vs?
bbcompent1
All-Star
33063 Points
8516 Posts
Moderator
Re: Help with settings up asp and iis on local network
Apr 28, 2011 10:59 AM|LINK
Being completely honest, the best practice is develop locally, test in a staging area (remote) then promote to production (remote)
bbcompent1
All-Star
33063 Points
8516 Posts
Moderator
Re: Help with settings up asp and iis on local network
Apr 29, 2011 12:58 PM|LINK
Is this one resolved? If so, mark answers to help others with similar questions. :)