JLBN – Setup ASP.net on WAMP
ASP.net is a web application framework, developed and marketed by Microsoft, that programmers can use to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft’s Active Server Pages (ASP) technology. ASP.net is built on the Common Language Runtime, allowing programmers to write ASP.net code using any supported .NET language.
In this instruction guide for WAMP, we will show you how to install and setup ASP.net for WAMPSERVER in Windows Server 2008. Fortunately, the procedure to install ASP.net is about the same in Windows Vista and XP, so you can use this guide to setup ASP.net in either Windows Vista or XP.
Note: Even this guide is used for Wampserver, you can apply this method on other wamp package such as Xampp, EasyPHP, so on. Just make sure to select correct file(s) in proper location(s) š
Hi, as you guess i have a problem lol! this problem is, when i start WAMP with
# ASP.net
Include conf/extra/httpd-aspdotnet.conf
in the “httpd.conf” of wamp, the program doesnt start correctly (the systray icon stays yellow and localhost doesnt show up), and when i take it off it then start to work. It’s just a little bug i think. Thanks for your help. Flo
Flo, did you create the file httpd-aspdotnet.conf as mentioned in step 19?
Hi, cool site, good writing š
Hi,
Firstly, thx for your help..i resolve my problem.
I got another question.
How can i consume a webservice (.asmx) created with visual c#. I would like to put my webservice file in the apache server and creat a web client ( winform) with visual studio 2008. I tried to add a web reference to the client (http://localhost/htdoc/test.asmx where asmx is my webservice)
Can you tell me please what i have to do( step by step ) to consume a web service with apache and with visual studio client. For exemple, my webservice contain a web methode “HELLO WORLD” and my web client contain a winform where is a button “OK”. When i clik ok, i would like to print Hello world .
Thank you
Save your files or project folder in the folder you setup for asp.net and run from there; for example
http://localhost/asp/file.asmx
Or:
http://localhost/asp/project/file.asmx
hello,
I have a project where I have to connect to a Web server with an application developed in Visual C # (winform). On the server I installed Windows 2003 Server. I also have the appache server for asp.net installed as shown in this tutorial. My question is how can i connect on the web server where is .asmx file with my client application developed in Visual Studio 2008?
Sorry for my english, iām french š and thank you for your answer.
Mehdi
hello,
I have a project where I have to connect to a Web server with an application developed in Visual C # (winform). On the server I installed Windows 2003 Server. I also have the appache server for asp.net installed as shown in this tutorial. My question is how can i connect on the web server where is .asmx file with my client application developed in Visual Studio 2008?
Sorry for my english, i’m french š and thank you for your answer.
Mehdi
@ Sean
Sorry to hear that; as far as we know, different server has different setups and depends on your script, you might need some addtional settings which you might google around for it š
@ Arny
asp.net is not asp and if it works in IE but not in Firefox, check your Firefox extensions or firewall
@ Ginasuit
you saved file as phpinfo.html and open in the browser as php.html and of course you won’t get anything out from there š
In addition .aspx works in IE, but not in Firefox
I have Windows Vista Home Premiuim, and Wampserver 2.0c installed on it, I tried your guide to instlall ASP.NET to test mostly my old classic ASPs. but non of them is working. is there any further step I should take? thanks
Sorry it cut off the error. Well line 11 says authentication mode=”Windows”
Thnx JL, but that wasn’t the problem. Turns out I didn’t set up the httpd-vhosts.conf file correctly. It was pointing to folders that didn’t exist on my server. Anyway I now have a different problem. I can run simple ASP scripts with no problems, but when I try to run a complex ASP script I get the error below on line 11. Everything I read tells me this setting is correct for IIS, but I cant find anything on it for WAMP.
Configuration Error
Parser Error Message: It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 9:
Line 10:
->Line 11:
Line 12:
Line 13:
Thanks for the ASP Link š
Hey i tried configuring asp.net for wamp using your tutorial but it doesnt work . when i host the try to open the page using localhost it gives me the markup html code not the aspx.page i am using .NET Framwork 3.5 .
could you please point out any errors in this??
Thank you for the WAMP ASP.NET guide! Bonus to have this working as I think IIS sux big time!
Hmmm, that sounds a bit difficult.
But I’ve been thinking of using the asp2php converter to convert my clients site to PHP so that I can host it on my hosting account because we need to be able to disable directory listing (which .htaccess can do) and it would be a lot easier to edit the existing site in PHP than it would be in ASP (I only have basic knowledge of coding ASP). The only problem with doing this is that it isn’t 100% perfect, but it shouldn’t be too hard to fix the few problems that will happen in the conversion (if the previous webmaster’s code isn’t too bad).
Rowno, you have to install apache:asp mod for it, but it might not simple if you have no idea about it at all. The easiest way is to enable IIS, and setup either IIS or Apache to use different ports so both can run the same time š
Ok, thanks. I’m a PHP developer and our new client needs us to fix up the security of his site (the creator of the site did a terrible job of it, I sql injected through their login system easily), but the site is coded in ASP so I need to learn basic ASP and find a localhost to test my code on š
I guess I’ll have to hope that ASP.Net is mostly backward compatible with ASP š
Rowno, that guide is for ASP.net and if need ASP only, you might have to install another mod and it’s beyond the aspect of this guide š
I used your ASP.Net guide to install ASP to WAMP but I’ve got a problem. It loads ASP pages fine if the file extension is .aspx, but if the file extension is .asp, I get this error:
Server Error in ‘/ASP’ Application.
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension ‘.asp’ may be incorrect. Please review the URL below and make sure that it is spelled correctly.
Requested Url: /ASP/index.asp
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407
Do you idea what the problem might be?
Thank you for the WAMP ASP.NET guide! Yours is the only one that worked! Great Job!