Silverfrost Gotham

Breathing life back into ASP
Welcome to Silverfrost Gotham Sign in | Join | Help
in Search

Getting started with ASP

Last post 03-30-2007, 3:12 AM by MostlyPHP. 9 replies.
Sort Posts: Previous Next
  •  03-11-2007, 3:20 PM 10

    Getting started with ASP

    What software do I need on a PC to develop ASP scripts with Gotham?

    I have experience of PHP, and I can set up a useful development environment for that using EasyPHP.  What do I need to get a server running on a PC that can serve ASP pages so I can try it out?

    Also, can you recommend any beginners guides sites for ASP programming?

  •  03-12-2007, 2:09 AM 11 in reply to 10

    Re: Getting started with ASP

    To use ASP on a Windows 200, XP, 2003 or Vista machine you only need IIS. If not already installed you can find it in the 'add remove system components' part of control panel. To use Gotham you will need the .NET 2.0 framework installing. There is a good chance this already installed as its part of Windows update. If not you can download the framework and its SDK from here:

    Framework
    http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en


    Framework and SDK
    http://www.microsoft.com/downloads/details.aspx?familyid=fe6f2099-b7b4-4f47-a244-c96d69c35dec&displaylang=en

    The SDK includes DbgCLR, the .NET debugger.

    There are some nice 'How Do I?' examples here:

    http://www.w3schools.com/asp/asp_examples.asp

  •  03-12-2007, 6:40 PM 14 in reply to 11

    Re: Getting started with ASP

    Thanks,

    I only just realised I'd had a reply. It seems my profile had email notification disabled. Maybe that's the default?

    Apparently, I had .NET 1.1 installed. I foolishly tried to uninstall it and got a blue screen. I've started downloading 2.0 with the SDK. I'll check on it tomorrow, and just install that over the top of the other one, I suppose.

    Andy
  •  03-13-2007, 1:51 AM 15 in reply to 14

    Re: Getting started with ASP

    A blue screen from uninstalling .NET 1.1 - Ouch, that should not happen.

    .NET 2.0 can be installed on the same machine and they will coexist quite happily.
  •  03-15-2007, 11:52 PM 17 in reply to 15

    Re: Getting started with ASP

    I decided to put .NET 2.0 on a different PC. This one's a bit faster and has less software installed on it. I was about to add the IIS component but it seems I need to dig out my win2k SP4 CD to do that so I'll come back to it later.

    Having downloaded the ZIP, I assume I just create a Program Files folder for it, and make my own shortcut?

    Do I need to run it from the command prompt? If so, are there any command line options / switches I should know about?

    Sorry if this has been covered elsewhere. I had a quick look but I couldn't see anything that said how to actually compile and run a file with it.
  •  03-16-2007, 2:25 AM 21 in reply to 17

    Re: Getting started with ASP

  •  03-26-2007, 1:30 AM 22 in reply to 21

    Re: Getting started with ASP

    Okay, good.

    I had some trouble installing IIS - the Windows components installer kept asking me to insert my CD in a drive the didn't exist, insisted files were missing even when I told it where they were, that kind of thing. Eventually I realised I needed to edit the registry to tell it which CD drive to use. After that, it went well.

    So, I've read through the documentation on installing Gotham and configuring IIS and got as far as the walk through. I compiled a "hello world" example from http://www.w3schools.com/asp/showasp.asp?filename=demo_text. I used that to make hello.asp, compiled it, then tried http://localhost/hello.asp

    I got an error message that says

    "Server Application Unavailable

    The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

    Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur."

    I think I've followed all the steps in the installation docs - configured IIS to use C:\WINNT\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll and copied web.config from c:\gotham to C:\Inetpub\wwwroot. What am I missing?
  •  03-27-2007, 12:45 AM 23 in reply to 22

    Re: Getting started with ASP

    Hi

    A few things to check:

    1. IISInterface.dll, Gothamdll.dll and Gotham RTL are in the c:\inetpub\wwwroot\bin directory

    2. The aspnet Windows user account has read access to c:\inetpub\wwwroot and read/write access to c:\inetpub\wwwroot\bin

    3. Create a console version of your program with gotham hellp.asp /console and check the .exe runs

    4. Look in your event log for the real error message (that IIS is hiding).

  •  03-30-2007, 2:53 AM 24 in reply to 23

    Re: Getting started with ASP

    Okay, I went through those in no particular order:-

    3) I decided to try the console version first, and that worked fine.

    1) All those files are present.

    4) I looked at the event log next and saw one warning and one error:-


    Event Type: Warning
    Event Source: ASP.NET 2.0.50727.0
    Event Category: None
    Event ID: 1073
    Date: 30/03/2007
    Time: 10:30:46
    User: N/A
    Computer: P4-2800
    Description:
    Failed to initialize the AppDomain:/LM/W3SVC/1/ROOT

    Exception: System.Configuration.ConfigurationErrorsException
    Message: Exception of type 'System.Configuration.ConfigurationErrorsException' was thrown.
    StackTrace: at System.Web.Configuration.ErrorRuntimeConfig.ErrorConfigRecord.System.Configuration.Internal.IInternalConfigRecord.GetLkgSection(String configKey)
    at System.Web.Configuration.RuntimeConfigLKG.GetSectionObject(String sectionName)
    at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
    at System.Web.Configuration.RuntimeConfig.get_HostingEnvironment()
    at System.Web.Hosting.HostingEnvironment.StartMonitoringForIdleTimeout()
    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
    at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)


    Event Type: Error
    Event Source: ASP.NET 2.0.50727.0
    Event Category: None
    Event ID: 1088
    Date: 30/03/2007
    Time: 10:30:47
    User: N/A
    Computer: P4-2800
    Description:
    Failed to execute request because the App-Domain could not be created. Error: 0x80131902


    2) There is no specific read or write access set up for the aspnet user account. On checking the user accounts, I discovered there isn't an aspnet user account at all, so that might be why :)

    It seems my installation of IIS hasn't worked properly... though the Windows Components Wizard now shows it as installed, with all subcomponents ticked.

    It has created two new accounts; an anonymous guest account called IUSR_P4-2800 and a "Built in account for Internet Information Services to start out of process applications" called IWAM_P4-2800. No aspnet account though. I'm guessing just creating one manually isn't going to help.
  •  03-30-2007, 3:12 AM 25 in reply to 23

    Re: Getting started with ASP

    Update:

    Having found this page:
    http://msdn2.microsoft.com/en-us/library/aa719564(VS.71).aspx

    I tried giving those permissions to the IWAM_P4-2800 account. That page referred to .NET 1.1 (which this PC has never had) and Windows 2000 domain controllers (which this isn't) but it was the closest I've found so far that seemed relevant.

    On Windows 2000 domain controller servers, ASP.NET applications run under the IWAM_machinename identity


    I still get the same errors in the application event log and I still get the same error message in my browser when I try to look at http://localhost/hello.asp :-

    Server Application Unavailable

    The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

    Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.


    I even tried making the IWAM_P4-2800 account an administrator, temporarily, but that didn't help.

    It seems my problems are all IIS related, not Gotham related so far. Any advice on getting IIS working with ASP.NET would be welcome, but there's no rush. I might even find the information myself eventually...
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems