Error when using ASP module

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Error when using ASP module

Postby zvach » 24. March 2010 15:25

Hi All,

I'm Zacharias, a new user of XAMPP. Thank you first for the developers of XAMPP.

Second, I'm trying to use ASP module to run .asp or.aspx pages on XAMPP.

Here is the 3rd party module and how I'm referring to it in the Apache http.conf file. Apache does not start with these changes. What am I doing wrong and how can I fix it? An example project structure to launch a HelloWorld.aspx would also be great. Thanks in advance.

#asp.net
LoadModule aspdotnet_module "modules/mod_aspdotnet.so"

AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb

vbproj vsdisco webinfo

# Mount the ASP.NET /asp application
AspNetMount /myasp "C:/xampp/htdocs/myasp"
#/myasp is the alias name for asp.net to execute
#"c:/myasp" is the actual execution of files/folders in that location

# Map all requests for /asp to the application files
Alias /myasp "C:/xampp/htdocs/myasp/"
#maps /myasp request to "c:/myasp"
#now to get to the /myasp type http://localhost/myasp
#It'll redirect http://localhost/myasp to "c:/myasp"

# Allow asp.net scripts to be executed in the /myasp example
<Directory "C:/myasp">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex Default.htm Default.aspx
#default the index page to .htm and .aspx
</Directory>

# For all virtual ASP.NET webs, we need the aspnet_client files
# to serve the client-side helper scripts.
AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*)

"C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
<Directory \
"C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
#asp.net
zvach
 
Posts: 4
Joined: 23. March 2010 20:37

Re: Error when using ASP module

Postby zvach » 24. March 2010 19:15

Hi All,

I found at another website, exactly how to configure Apache in WAMMP and use it correctly. See the exchange at this site:

http://mschat.net/forum/index.php?topic=574.0. Follow the entire thread.

Zach
zvach
 
Posts: 4
Joined: 23. March 2010 20:37

Re: Error when using ASP module

Postby BigWetDog » 24. March 2010 19:19

Change your <Directory> configuration:

Code: Select all
<Directory "myasp">        #using the alias makes it easier to read
Options FollowSymlinks     #don't need ExecCGI because you need
AspNet Files               #this to tell the module to handle files
Order allow,deny
Allow from all
DirectoryIndex Default.htm Default.aspx
#default the index page to .htm and .aspx
</Directory>

Everything else looks good.

I use mod_aspdotnet extensively and have it configured to support AJAX and MVC applications.
User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: Error when using ASP module

Postby zvach » 24. March 2010 21:35

Thanks for your post. I made those tweaks. Could you also tell me how I could run AJAX and MVC? What changes do I need to make or install any additional modules?

Zach
zvach
 
Posts: 4
Joined: 23. March 2010 20:37

Re: Error when using ASP module

Postby BigWetDog » 25. March 2010 01:13

Getting AJAX working is a matter of letting Apache know that mod_aspdotnet should handle request for the asp.net httpHandlers listed in your web.config, principaly ScriptResource.axd.
You can either do this globally or per <Directory>/<Location> by adding the following:

Code: Select all
# Allow virtual resources, such as HTTP Handlers, to be executed
   <Files ~ "\.(axd|asmx|ashx)$">
    AspNet Virtual
   </Files>

I specify it globally because all of my asp.net applications are AJAX enabled.

As for MVC support, I'm currently communicating with the developer of the module with the hopes of coming up with a better solution than what I have developed. What I have could create a configuration nightmare, so I'd rather wait until we've determined the optimal configuration. :oops: Keep working with the module for now and I'll get back to you when we've got the final implementation.
How are you using mod_aspdotnet, and more generally Xampp? Line of business applications, development, prototyping?
User avatar
BigWetDog
 
Posts: 148
Joined: 25. February 2010 15:54

Re: Error when using ASP module

Postby zvach » 25. March 2010 14:45

Hi,

I'm a newbie to the world of web programming. I dabble in VBA quite a bit. I'm a statistician by trade and want to develop a site where interested folks can learn statistics. I decided to do the programming of the site myself. I had some exposure to php-Dev and I found XAMMP through Wikipedia.

I'm identifying necessary tools prior to starting.

Zach
zvach
 
Posts: 4
Joined: 23. March 2010 20:37


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 218 guests