Thread: Help getting started
Brought to you by:
wrowe
From: Robert P. <ro...@st...> - 2007-04-22 15:06:23
|
Hi there, First let me say how great I think it that you've picked up this module and developed it, I was very disappointed to see that apache had retired support for it and so I'm really pleased to see someone's running with it. However I'm having a few problems getting it going: I'm running windows vista (I'm guessing this probably isn't helping) I installed apache via apache_2.2.4-win32-x86-no_ssl.msi - I installed the console single user version since I only indented to use it for testing I copied /conf/default/httpd-win.conf to /conf/httpd.conf and /conf/default/mime.types to /conf/mime.types - adjusted some port and ip settings ran the console and could browse to the "it worked" test page I installed mod-aspdotnet via mod_aspdotnet-2.2.0.2006-setup-r2.msi I added the following to the bottom of httpd.conf: #asp.net # Load the Apache mod_aspdotnet.so module # - which in turn loads the .NET / ASP.NET Framework # - which in turn loads the Apache.Web.dll provider # LoadModule aspdotnet_module "modules/mod_aspdotnet.so" <IfModule mod_aspdotnet.cpp> # A specific version of the .NET Common Language Runtime may be forced # with the AspNetVersion directive; uncomment one of the lines below # for the v1.0 or v1.1 general release versions, and refer to the # C:/WINDOWS/Microsoft.NET/Framework directory for installed versions. # The default is the most recent installed .NET CLR version. # #AspNetVersion v1.0.3705 #AspNetVersion v1.1.4322 # Appear consistent with other ASP.NET hosts to the client. # This is optional, unaware of client applications expecting it. # #Header Add X-Powered-By ASP.NET # Process these file types with the asp.net handler # (provided they fall within an AspNetMount'ed location) # AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj \ licx rem resources resx soap vb vbproj vsdisco webinfo # Serve the /aspnet_client files to the web browser, to handle # JavaScript controls integrated into ASP.NET applications. # AliasMatch "^/(?i)aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*)" \ "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4" # Permit the /aspnet_client files to be served to web clients. # Change C:/Windows above in the AliasMatch, and below in the <Directory > # line to reflect the root of Windows (echo %windir% from the cmd prompt.) # <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles"> Options FollowSymlinks Order allow,deny Allow from all </Directory> # This <IfDefine > prevents Apache from processing this example # template, duplicate the contents (adjusting for your desired # /app-uri and C:/path/to/app) as many times as necessary, but # not within the <IfDefine > ... </IfDefine> section # <IfDefine ASP.NET-template> # Create an ASP.NET host for Requests to /app-uri to be processed # by c:/path/to/app - see the Alias below for actually serving # /app-uri from Apache. # This is usually the path of the web.config file for the app. # AspNetMount /app-uri "C:/path/to/app" # Have Apache serve /app-uri requests with c:/path/to/app mounted hosted # Some form of Alias is required, AspNetMount does not expose /app-uri # itself, through Apache. # Alias /app-uri "C:/path/to/app" # Permit content in C:/path/to/app to be served (and use ASP.NET # conventions for the default pages.) # <Directory "C:/path/to/app"> # Add 'Indexes' to Options below for autoindex file listings # Add 'Includes' to Options below for SSI reparsing Options FollowSymlinks # Add 'Virtual' to AspNet below for non-file resources AspNet Files Order allow,deny Allow from all DirectoryIndex default.htm default.aspx </Directory> </IfDefine> </IfModule> #asp.net I create the appropriate directories and created a test ASP.NET web page I restarted the console. Here were it gets a bit weird, when I run the console a normal user I can still browse to the "it worked!" page but the asp.net application gives a 404 error. In this case nothing at all is written to error.log When I run the console as administrator I get some very positive looking messages in error.log: [Sun Apr 22 16:55:42 2007] [notice] mod_aspdotnet: CorBindToRuntimeEx has loaded version v2.0.50727 of the .NET CLR engine. [Sun Apr 22 16:55:42 2007] [notice] Apache/2.2.4 (Win32) mod_aspdotnet/2.2 configured -- resuming normal operations [Sun Apr 22 16:55:42 2007] [notice] Server built: Jan 9 2007 23:17:20 [Sun Apr 22 16:55:42 2007] [notice] Parent: Created child process 3912 [Sun Apr 22 16:55:42 2007] [notice] mod_aspdotnet: CorBindToRuntimeEx has loaded version v2.0.50727 of the .NET CLR engine. [Sun Apr 22 16:55:43 2007] [notice] Child 3912: Child process is running [Sun Apr 22 16:55:43 2007] [notice] Child 3912: Acquired the start mutex. [Sun Apr 22 16:55:43 2007] [notice] Child 3912: Starting 250 worker threads. [Sun Apr 22 16:55:43 2007] [notice] Child 3912: Starting thread to listen on port 8080. However I cannot connect to the server at all. The "it worked!" page doesn't responded neither does the ASP.NET app. It doesn't appear to be return a 404 or anything it's just like the web browser can make a connection to the server. Any help or tips on how to debug this would be greatly appreciated. Thanks, Rob |
From: Trent N. <tn...@on...> - 2007-04-24 08:12:42
|
> mod_aspdotnet: CorBindToRuntimeEx has loaded version v2.0.50727 of the .NET CLR engine. Only .NET 1.0 and 1.1 are supported at the moment. You'll need to uncomment one of the 'AspNetVersion' directives to force the correct CLR engine: # A specific version of the .NET Common Language Runtime may be forced # with the AspNetVersion directive; uncomment one of the lines below # for the v1.0 or v1.1 general release versions, and refer to the # C:/WINDOWS/Microsoft.NET/Framework directory for installed versions. # The default is the most recent installed .NET CLR version. # #AspNetVersion v1.0.3705 #AspNetVersion v1.1.4322 Regards, Trent. |