Geekpedia Tutorials Home

Building a C# Chat Client and Server

Building a C# Chat Client and ServerA step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.

in C# Programming Tutorials

Getting Hard Drive Information

Getting Hard Drive InformationA C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.

in C# Programming Tutorials

UPS Shipping Calculator

UPS Shipping CalculatorThis tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.

in PHP Programming Tutorials

Create Your Own Rich Text Editor

Create Your Own Rich Text EditorCreating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.

in JavaScript Programming Tutorials
Search
Tutorials
Programming Tutorials
IT Jobs
From CareerBuilder

Setting up your ASP.NET server (IIS)

A guide that shows you how to install IIS server and configure it to work with ASP.NET, not just with ASP.

On Sunday, March 28th 2004 at 11:46 AM
By Andrew Pociu (View Profile)
*****   (Rated 4.6 with 132 votes)
Contextual Ads
More ASP.NET Resources
Advertisement

Before starting, be sure you have .NET Framework installed. If not, you can install it using Windows Update or download the package and install manually.

ASP runs inside IIS (Internet Information Services). Therefore first you should install IIS (under Windows 2000, Windows XP or Windows 2003), of course if it isn't already installed.
Usually, you can install it from Control Panel / Add or Remove Programs / Add/Remove Windows Components.

Go to Start Menu / All Programs / Administrative Tools / Internet Information Services.
Choose your computer name (local computer) / Web Sites / Default Web Site.
Right click 'Default Web Site' and select 'Properties'. Choose the 'Home Directory' tab and type in the 'Local Path' the path to where you want your files to be stored. For example 'D:\Server\iis'. This is the root of your webserver, this folder will open when you type http://localhost in your web broswer.
Below, check the 'Script source access', 'Read', 'Write' and 'Directory browsing' values. Click OK and now let's start the server.

Click on the 'Start item' button to start the service. Be sure you don't have any other server running on localhost, Apache for example.

After the server is up and running you can open http://localhost in your web browser. It should show you an empty list if you don't have any files in the folder specified on the 'Local Path'.

You should now be able to open any .asp file and parse it correclty with your browser. Still, you don't have installed ASP.NET, that means you can't run any .ASPX files.
To install ASP.NET follow the steps:

Go to the place where you installed the .NET Framework:
'C:\WINDOWS\Microsoft.NET\Framework'
there should be a folder similar to 'v1.1.4322' (your version of .NET). Note it and let's continue:

Open the MSDOS Command Prompt (Start Menu / Start / Run and type 'cmd').
At the command prompt type (replace 'vxxxxxx' with your version):

%windir%\Microsoft.NET\Framework\vxxxxxx\aspnet_regiis.exe -i


After it finishes, you have one more step:

Open 'Run' from 'Start Menu' and type:


regsvr32 %windir%\Microsoft.NET\Framework\vxxxxxx\aspnet_isapi.dll


Again, by replacing 'vxxxxxx' with your version.
Press OK, wait, and you should receive a confirmation message.

To test it, make a test.aspx file in the folder that you typed in the 'Local Path' ('D:\Server\iis' for example) with the following code:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Hello world</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<% 
response.write("Hello World")
%>
</body>
</html>


Open the page with your web broswer using 'http://localhost/test.aspx'.

Further you need a database to work with ASP.NET. Consequently, there is also a guide for installing the Microsoft SQL server available here.
Digg Digg It!     Del.icio.us Del.icio.us     Reddit Reddit     StumbleUpon StumbleIt     Newsvine Newsvine     Furl Furl     BlinkList BlinkList

Rate Rate this tutorial
Comment Current Comments
by TwMadCow on Saturday, April 24th 2004 at 10:56 PM

Wow, this is VERY VERY VERY good! I finally can test my asp.net applications on my computer rather than connection to internet(i have dialup)
thanks ALOT

by yaya on Monday, April 26th 2004 at 08:21 AM

searched for hours on microsoft.com, couldn't find a simple how-to like this. quick and simple. i

by thekillerbean on Monday, May 10th 2004 at 10:05 AM

this was so damn helpful! you just don't know how long i've been trying to get my testing server up and running!

It's a shame that microsoft could not be bothered to elaborate on this for noobies like myself, but i do understand they have to make sure that certified professionals can earn an extra dollar!

by Biff Stephens on Friday, June 18th 2004 at 07:42 AM

When I get to this part I seem to have trouble....Have can you run a DLL. When I do the below step it asks me to choose an app to run the DLL. I am trying to install it on 2000 Server.


>After it finishes, you have one more step:
>
>Open 'Run' from 'Start Menu' and type:


>regsvr32 %windir%>\Microsoft.NET\Framework\vxxxxxx\aspnet_isapi.dll


>Again, by replacing 'vxxxxxx' with your version.
>Press OK, wait, and you should receive a confirmation >message.

by ryan on Monday, July 19th 2004 at 06:06 AM

wow..thanks so much! this was very damn helpful indeed. after I ran those two commands it worked. thanks again..

by Mukkaram Jameel Khan on Friday, August 6th 2004 at 03:40 AM

Hi all,

This guide is excellent.

With this guide one can solves the issues like "Unable to run ASP.net appllication"

when we have 2 versions of dot net on a machine we can use the above command to set the new environment.

good keep it up..

by bbwa on Saturday, August 7th 2004 at 09:33 AM

Finally the stuff i needed !!!!!
It took me only 10 minutes.
If only I had known.... 2 days ago

Thanks a lot

by peter agbamuche on Monday, August 9th 2004 at 01:27 AM

cool stuff
thanx for this tips.

by mark on Monday, September 6th 2004 at 11:27 PM

thank you... looked around the net for quite a while before i found this.

by Mark on Monday, September 13th 2004 at 08:32 PM

I have done as said and everything great for asp.

However when installing ASP.Net even after been told that it was sucessful, my test.aspx file does not work. It should be noted that i did create a test.aspx file before asp.net was installed and now any changes to this original file do not appear in the browser in localhost. any new aspx files created and tested cause the browser to throw up the following error page:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Server cannot access application directory 'C:\Documents and Settings\pc\My Documents\WebRoot\'. The directory does not exist or is not accessible because of security settings.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Server cannot access application directory 'C:\Documents and Settings\pc\My Documents\WebRoot\'. The directory does not exist or is not accessible because of security settings.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): Server cannot access application directory 'C:\Documents and Settings\pc\My Documents\WebRoot\'. The directory does not exist or is not accessible because of security settings.]
System.Web.HttpRuntime.EnsureAccessToApplicationDirectory() +72
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +263

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +965
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573





---------
any ideas?

any comments would be welcomed,
Mark.

by Andrei Pociu on Tuesday, September 14th 2004 at 02:18 AM

As the error says, either the directory doesn't exist (but I don't think that's the case) or IIS doesn't have enough privileges to use it.

The best way to fix it is to simply change your IIS folder to another folder like C:\Inetpub (as it is by default) or C:\IIS.

You can do this by opening Computer Management from the start menu. Inside navigate to Internet Information Services -> Web Sites and right click Default Web Site. In the Home Directory tab change 'Local Path' to a path similar to one I mentioned above (mine is 'D:\Servers\iis' for example).

If not, you can also take a look over: http://support.microsoft.com/?id=316721.

Good luck!

by Megan on Monday, November 8th 2004 at 10:46 PM

super easy! exactly what I needed.

Thanks!!!!!!!!!

by Danilo on Friday, February 25th 2005 at 04:17 PM

Thanks!!!

by Goose on Thursday, March 24th 2005 at 10:18 PM

Great guide, thanks.

by VitalNat on Friday, April 22nd 2005 at 04:24 PM

This is a very helpfull information. It is an easy and excellent guide for the starters in ASP.NET

by VitalNat on Friday, April 22nd 2005 at 04:24 PM

This is a very helpfull information. It is an easy and excellent guide for the starters in ASP.NET.
Thanx a lot and keep it up!!

by Manish on Saturday, April 30th 2005 at 03:16 AM

Super Cool !!
Thanks

by DotNetUser on Thursday, June 30th 2005 at 11:00 AM

Cool dude!!
I was able to set up my engine and learnt how to do it also.

Thanks man...

by Scott on Monday, August 1st 2005 at 01:45 PM

Sweet! Easy to follow and it works! Way to go, geek!!

by Joe on Friday, August 12th 2005 at 03:21 PM

One more thing...you may need to enable the .net web service extension in IIS...thanks for the great info!

by Kris on Friday, August 12th 2005 at 05:14 PM

When I run regsvr32 %windir%\Microsoft.NET\Framework\vxxxxxx\aspnet_isapi.dll

I get the error message

Unable to open the Internet Shortcut. The protocol "regsrvc" does not have a registered program.

Help?

by Dan on Wednesday, August 31st 2005 at 09:36 PM

THANK YOU SO MUCH! YOUR THE MAN!

by Larry on Wednesday, September 7th 2005 at 12:52 PM

Awesome instructions - I got my DELL box set up as I followed your instructions. Waaaay easy unlike MS's site.

by Larry on Wednesday, September 7th 2005 at 01:04 PM

Kris - in regards to your 'Unable to open' error message make sure that the 'vxxxxxx' is the version of your .NET. e.g.: regsvr32 %windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll and you should be good to go.

by Agent42 on Saturday, September 17th 2005 at 02:57 AM

I could hug you for this!
Thank you.

by rwlawrie on Wednesday, October 26th 2005 at 05:53 AM

Great guide!

One thing i'd like to add, on server 2003 I had to 'allow' asp.net in IIS Manager.

To do this open IIS Manager, expand local computer, click 'web extensions', select asp.net on the right and click 'allow'.

thanks

by bob on Wednesday, October 26th 2005 at 04:16 PM

I like poking myself in the eye with a sharp stick... And this tutorial ruined that pleasure!

by BW on Friday, October 28th 2005 at 10:01 PM

the instructions say "...'C:\WINDOWS\Microsoft.NET\Framework'
there should be a folder similar to 'v1.1.4322' (your version of .NET)." I have this folder exactly. Is this the one I run in the command prompt???? I also have another folder named "v1.0.3705" (is this the "similar" one I should use????

by BW on Friday, October 28th 2005 at 10:55 PM

...I should also say that I have followed the instuctions above precisely (except for the part I questioned above) and nothing happened when I display the example web page--just regular htmp without the aspx part. If any steps were left out in the instruictions with the assumption that we should know--that may be the problem. Are there additional hidden steps I need to do?

by Andrei Pociu on Saturday, October 29th 2005 at 02:42 AM

Use v1.1.4322. v1.0.3705 is there because you also have an older version of .NET (1.0).

There are no additional steps. I'm not sure what you mean about a regular "html without the aspx part", but aspx is an html page itself after being run through the compiler. If ASP.NET works on your server, the page should display "Hello World".

by BW on Saturday, October 29th 2005 at 10:09 AM

there is no "hello world" displayed... I have a feeling it will work when I can figure out what that "similar" file name is--But I dont want to make any guesses when it comes to messing around with the registry. Do I use v1.0.3705 or v1.1.4322?

by Andrei Pociu on Saturday, October 29th 2005 at 12:00 PM

As I said, since you have both of them v1.1.4322 is the one you should use. You could also use v1.0.3705 but then you'd be running ASP.NET 1.0 (older version) instead of 1.1, and I don't see why you would want that.

by BW on Saturday, October 29th 2005 at 01:06 PM

I missed the top part of your previous post-- after doing as you said, all's well now. (I've had an aspx book on my desk for 6 months that I couldnt do anything with until now-- Thank you very much!) btw I had same problem as Mark did in my alias directory--so I took your advise and used the default dir.)

by Manoj Santhi on Thursday, November 3rd 2005 at 03:25 PM

A very Simple Tutorial. As simple as it gets !!
Worked for me !
Thanks!

by Arun Samuel on Wednesday, November 9th 2005 at 11:34 AM

Andrei,

Great job!
It works. Thanks.

by john harter on Monday, December 19th 2005 at 06:27 PM

I wish I could share everyone else's enthusiasm. I have followed these instructions to the T and it will not load an asp or aspx file. "Server Application Error." I have .NET installed, ran the aspnet_regiis -1 command and registered the dll. I received the successful message after registration.

Is the problem my UMI (Universal Malevolent Influence)? I would be grateful for any comments. I can't think of anything else to try or how to debug it.

Thanks,

johnh

by Andrei Pociu on Tuesday, December 20th 2005 at 01:08 AM

Hello John,

There can be so many reasons, since that's a generic error. First make sure your website is created as an application in IIS. Right click the folder where the aspx files are located and click Properties. In the Directory tab click Create, and then OK.

If it still doesn't work, have a look at the Event Log.

by john harter on Tuesday, December 20th 2005 at 04:07 PM

Thanks Andrei for your comments. Unfortunately the Event log is almost useless, too. Thanks again for your help. Looks like I will do jsp, instead. Much easier.

by asp newbee on Wednesday, February 1st 2006 at 11:29 PM

Great article there. Helped a lot.

by Will on Monday, February 6th 2006 at 12:56 PM

Did the trick, thanks for the help.

by .NET novice on Monday, April 3rd 2006 at 01:47 PM

Excellent tutorial, didn't think I could run .NET without Visual Studio, duh?? - Nice one dude!!! Top article.

by asp beginner on Friday, April 7th 2006 at 05:51 PM

I have tried the instructions up to test.aspx but can't seem to get it to work, but get HTTP 500 - Internal server error
Internet Explorer how can this be resolved?

by eZo on Saturday, April 22nd 2006 at 06:25 PM

Superb, absolutely superb. MS could learn a thing or two... and i dont just mean about how to make webservers :)

by Ken on Friday, May 5th 2006 at 07:33 AM

I have a unique problem - I can type in http:\\MyIPAddress\MySite and it works.
I type http://localhost/MySite and I get page cannot be found.
I Ping LocalHost and it returns my IP Address. So I know the machine recognizes localhost.

I have WinXP - anyhelp is appreciated.
I reregistered my asp with regsrvr32

by eyal on Tuesday, May 9th 2006 at 05:32 PM

I have a bizare problem. I'm running asp.net (framework 2) on IIS and for some reason when I open the page in the browser the IIS only displays texts, no graphics or styles what so ever.
I dont seem to have this problem with regular asp applications.
any ideas would be greatly appreciated.

by Andrei Pociu on Tuesday, May 9th 2006 at 05:47 PM

If you look at the source code of the page, do you see the tags for the styles and the graphics?

by Eyal on Wednesday, May 10th 2006 at 02:43 AM

yes, they are well defined both in the asp and are clearly visible in the source code itself when opened from the browser.

by Andrei Pociu on Wednesday, May 10th 2006 at 05:27 AM

So you see the entire content of the website without formatting, or do you see the tags as plain text when you open the .aspx file in the browser? This happens only with CSS styles or also with tags (bold, italic, etc.)?

If the tags are visible but you see the broken-image graphic instead of the actual graphics, then the server is probably serving everything correctly and you have the wrong paths, but that's unlikely if you used the same code with ASP. Anyhow, make sure you try a different browser.

Otherwise make sure that you have the correct mappings for the website in IIS, and the correct MIME types are defined.

by Tigrito on Wednesday, June 7th 2006 at 07:42 PM

Excelente ayuda, muchas gracias por su experiencia.

by Harvey on Friday, July 21st 2006 at 01:08 PM

I�ve created a C# web application that uses an older DLL written in unmanaged C++.
When I try to access the DLL I get �Unable to load DLL \'myold.dll\': The specified module could not be found.� error. I�ve put the DLL in every directory related the web application and I�ve also placed it in the system32 directory. Still can�t locate it. Then if I fully qualify the DLL in the DllImport it works. I can then remove the full path and it still works, I assume it works because it�s cached.

What do I have to do so .NET will locate it without fully qualifying the DLL name?

I get this same behavior whether running from Visual Studio 2005 debug or running it from IIS.

Thanks!

by aiyong on Wednesday, August 16th 2006 at 10:09 PM

At the very first time, i didnt hav such problem \"unable to start debugging on the web server\". The next time i run it.. this message keep poping out. I had tried the solution, all had installed successfully with version V1.1.4322. The regsvr32 ... also no problem.

After i ran my program still pop out same error message.. anyone have any idea regard this?

thanks

by kishor on Tuesday, August 22nd 2006 at 05:23 AM

I have problem
I am working on ASP.NET web application.On My Home PC, one error is
occur.
when i am open my project
- First error is VS.NET has detected that the specified web server
is not running ASP.NET 1.1.Wel i also restarted my IIS Server from
inetmanager window.But still its show error.
- Second ,When i am run or debugg my poject its show Server does not
support debuging of ASP.NET.
Friends I also installed IIS Server again from Control Panel(Add Or
Remove). But still it is showing an error. Windows Applications are
running properly.
Plz send me the answar ASAP.





by Narsing on Tuesday, August 29th 2006 at 03:05 AM

Thnks a Ton .....
At last there is one site that helps us!!!
I\'ve been trying to run the iis server from many days...at last i\'ve got it....

Once again thanks buddy....

by Gulin on Monday, September 11th 2006 at 09:06 AM

first thank you but i have a problem and want you help please.
I did all what yo said bu when run the aspnet_isapi.dll &#305; took an error message like that:
..\\aspnet_isapi.dd was found but DLLRegisterServer entry point was not found
DLLregisterServer may not be exported or a corrupt of version of
.....\\aspnet_isapi.dll may be in memory.Condiser using Pview to detect and remove it.

What can I do?

by yogesh on Thursday, September 21st 2006 at 07:38 AM

Nice one man. but im having both 2.0 and 1.1 framework and when i changed from 2.0 to 1.1 due to debugging problem as im using windows 2003 the application ran fine. but now if i create a new project im getting error " http:/1.1 internal server error".
Can you help me out?

by joe lee on Wednesday, October 25th 2006 at 06:51 PM

I'm getting same problem as Gulin(sep11th 06 post).
I have managed to install asp.net thru the cmd prompt but having trouble registering the dll.

I run:
regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

I get the same error msg:
....dllregisterserver entry point was not found

only thing im doing diff to tutorial is that im using asp.net 2 not 1.1.

anyone any suggestions? I knew I shoulda stuck with apache and php :)

by Dekieon on Wednesday, November 29th 2006 at 03:57 PM

I am having the same problem...I too am using .net 2.0 and getting the message...
C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_isapi.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered.

by Leena on Friday, December 29th 2006 at 02:46 AM

I have a unique problem - I can type in http:\\\\\\\\MyIPAddress\\\\MySite and it not works.
I type http://localhost/MySite and it works
MySite is a asp.net 1.1 application.
I have WinXP - anyhelp is appreciated by u.

by Balu on Tuesday, January 16th 2007 at 01:48 PM

Thanx.........
Very simple tutorial to install asp.net
At last i got it thank u once again....

by Fuoran on Thursday, July 5th 2007 at 12:24 AM

thanx thanx thanx thanx thanx

I was searching and try 24*7 to find solution for this problem

thanx

by on Tuesday, August 28th 2007 at 04:58 PM

hy

by Suchita on Friday, September 21st 2007 at 02:08 AM

I am having the same problem...I too am using .net 2.0 and getting the message...
C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_isapi.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered.

by Suchita on Friday, September 21st 2007 at 03:13 AM

Do we compulsarily have to install Microsoft SQL server 2000A to run the application with database ? Isn't the version i have installed i.e sql server 2005 is sufficient to run the application ??

by Andrei Pociu on Friday, September 21st 2007 at 10:34 AM

SQL Server 2005 will work just fine. At the time that this tutorial was written, SQL Server 2000 was the latest release.

by sam hk on Sunday, September 23rd 2007 at 12:50 AM

it is great for me. I just have problem to run asp.net
Now, solved. thanks.

by Mike J on Wednesday, September 26th 2007 at 01:50 PM

I\'m currently working with 3.5 beta framework but noticed that the framework folders for 3.0 and 3.5 do not contain the aspnet_regiis.exe -i program. I can\'t successfully get a 3.5 asp.net simply app up and running. The app runs fine in the VStudio test browser; however, once published to IIS chokes! I\'m not sure if it is because IIS does not recognize that the 3.5 framework is installed. Any advice would be great.

Thanks

by Somth on Friday, October 12th 2007 at 11:46 AM

I have problem (using framework 2)
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered\"
And i can\t to open http://localhost/test.aspx ,it display Error
" The XML page cannot be displayed "

by Somth on Tuesday, October 16th 2007 at 10:44 AM

The problem of
"C:WINDOWSMicrosoft.NETFrameworkv2.0.50727aspnet_isapi.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered"
Result = you must dowload .net framework 2 form microsoft web site (not use your current .net framework 2 because it error in some file)
before install .net framework form microsoft website you must uninstall visual studio .net and old .net framework 2 then install new .net framework and visual studio .net

by Carla on Friday, December 21st 2007 at 06:24 AM

Thank you for the guide, really useful and fast.

by Patrick on Tuesday, January 8th 2008 at 04:25 PM

Thank goodness I found your guide. Keep up the good work!

by gopal on Sunday, January 27th 2008 at 04:03 AM

Thanks for giving information about IIS, it helps to the peoples a lot.

by devi on Friday, February 1st 2008 at 03:06 AM

I got the error(Server Error in '/' Application.). I have chekched out through turning off the mode( ). and it shows some errors in the code but the same code is running on the LOCALHOST successfully but NOT ON THE WEB SERVER. Can you please reply me? I will be really appreciate for the same. Please any one help me to rectify this error soon

by bhavin on Thursday, March 6th 2008 at 08:51 PM

i search for this for a week really
i appreciate your work

by Michael Phang on Monday, March 10th 2008 at 12:11 PM

I learned something. That's cool!. Thanks my friend who recommended me this website. Thanks again who supply this sources.

"It's fun when learned something and learning is fun"

by .NETnuubeee on Monday, April 7th 2008 at 11:12 AM

"Go to Start Menu / All Programs / Administrative Tools / Internet Information Services.
Choose your computer name (local computer) / Web Sites / Default Web Site"

There is nothing when I open up IIS from my Administrative tools..I tried to "connect" to my my computer but got a message that my computer is not running IIS 4 or higher.

Can any one help me please? I am sooo eager to start learning .NET!!!

by Wing Chan on Sunday, June 1st 2008 at 10:34 PM

Thank you for the tutorial! I was doing a web server migration at work, and I have no ideas why that the c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net files\ doesn't contain the compile folders... and I was pretty much stuck. Thank heaven that I found this site, and I realized that I haven't install the .NET framework and register the .DLL as I needed to do. Now the site is working! Thanks a million!!!

by Tonmoy on Wednesday, August 6th 2008 at 07:13 AM

Hi all,
I am facing problem with my IIS server. In my IIS server, in any asp page if i made some changes i restart the total IIS server ... undo is occured in my asp page code. So i am nt getting the chagning effect as when IIS server is restarting, it undo all chnages made. Can aneone tell what is the problem here? plz its help me out

by M. Mamo on Saturday, August 23rd 2008 at 12:01 PM

I'm Having a problem my ASP.NET server setup. I have installed DOT NET 2003 (whole package). I installed IIS too. But i got an error massage when i try to create ASP page on DOT NET window. It says
" Visual Stuido has detected that the specified web server is not running ASP.NET version 1.1. you will be unable to run ASP.NET web applications or servers."

My OS is windows XP.
please email the solution.
I ll be thankful who' ll help me.
Regards

by kunal kumar b on Tuesday, September 9th 2008 at 02:21 AM

I am having problem of configuring file system type website in asp.net i am using VS2005.while dubugging its giving error as webserver not configured correctly....

by Mark on Wednesday, October 29th 2008 at 04:35 PM

I followed the instructions and am having the same problem as some others:...I am using .net 2.0 and getting the message...
C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_isapi.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered.

I also downloaded .net framework 2.0 using windows update, and also downloaded the service pack for .net 2.0 using microsoft update. I don't know if there are any hotfixes for .net 2.0 that were created after the latest service pack for .net 2.0. Is downloading .net 2.0 from microsoft's website any different than using microsoft update? What else can we try?

by ngagyit on Friday, November 7th 2008 at 03:17 AM

i like u very much
but can u tell me with windows vista

by amol on Saturday, December 20th 2008 at 11:40 AM

really cool guide hope i had found it earlier :)

by vijaygiri on Wednesday, January 21st 2009 at 09:21 PM

thanks

by ravi on Wednesday, February 4th 2009 at 05:20 AM

This is very good. I solved my problem. Thank you.

by Adi Gunawan on Friday, February 27th 2009 at 03:51 AM

Thanks a lot man... u r my Angel :)

by revathi on Tuesday, March 10th 2009 at 01:28 PM

hi this is revathi
i have followed the steps as given above
but the local path option in the home directory is not active for me, but i checked the options 'Script source access', 'Read', 'Write' and 'Directory browsing' values but the local path option is still now active for me. I'm using visual studio20008. when i give the command in the run mode. i'm getting the below error:

C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_isapi.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered.

please provide me with a solution. thank you.


by revathi on Tuesday, March 10th 2009 at 01:30 PM

hi this is revathi
i have followed the steps as given above
but the local path option in the home directory is not active for me, but i checked the options 'Script source access', 'Read', 'Write' and 'Directory browsing' values but the local path option is still now active for me. I'm using visual studio20008. when i give the command in the run mode. i'm getting the below error:

C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_isapi.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered.

please provide me with a solution. thank you.


by revathi on Tuesday, March 10th 2009 at 01:31 PM

hi this is revathi
i have followed the steps as given above
but the local path option in the home directory is not active for me, but i checked the options 'Script source access', 'Read', 'Write' and 'Directory browsing' values but the local path option is still now active for me. I'm using visual studio20008. when i give the command in the run mode. i'm getting the below error:

C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_isapi.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered.

please provide me with a solution. thank you.


by Lokesh Sharma on Tuesday, May 19th 2009 at 05:22 AM

My web application developed on
O.S. ====Windows Server 2003
IIS ------- IIS 6.0
Dot.net framwork 2.0
AjaxControlToolkit----ASPAJAXExtSetup.msi

But when i access that application and do some of task on web page like add,modify or delete that time below given error occured. please do the needful

"sys.webforms.pagerequestmanagerservererrorexception: an unknown error
occured while processing the request on the server. The status code
returned from the server was: 404"

Regards

LK

by Lokesh Sharma on Tuesday, May 19th 2009 at 05:24 AM

My web application developed on
O.S. ====Windows Server 2003
IIS ------- IIS 6.0
Dot.net framwork 2.0
AjaxControlToolkit----ASPAJAXExtSetup.msi

But when i access that application and do some of task on web page like add,modify or delete that time below given error occured. please do the needful if you have any solussion please mail me at "lokesh_sharma51@yahoo.com"

"sys.webforms.pagerequestmanagerservererrorexception: an unknown error
occured while processing the request on the server. The status code
returned from the server was: 404"

Regards

LK

by Abhishek on Tuesday, August 25th 2009 at 09:59 PM

Lokesh

I am also getting the same error

Thanks
Abhishek

by veerachandra on Tuesday, September 29th 2009 at 08:31 AM

hai guys (:)

by Willow Wright on Sunday, November 15th 2009 at 04:42 PM

It seems so straightforward....but when I run the commands given in the command prompt, staring with:


(replace 'vxxxxxx' with your version):

%windir%\Microsoft.NET\Framework\vxxxxxx\aspnet_regiis.exe -i

And I'm replacing with v2.0.50727, the response is that it can't find the path. What's up with that? Please help. My version number is exact..The path I'm typing is correct. Any ideas? WCW

by buscoacho on Wednesday, November 25th 2009 at 10:44 AM

Willow Wright,

try to find directly by Explorer the file 'aspnet_regiis.exe' into te folder ..\Framework\v2.0.50727. Copy complete path to command line in the COMMAND Window.


In my case:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727, aspnet_regiis.exe is present.

If not found, maybe some was wrong with the Framework instalation.

by Gaurav Manandhar on Sunday, January 31st 2010 at 01:40 AM

Hi i could not understand the replace action here

At the command prompt type (replace 'vxxxxxx' with your version):

%windir%\Microsoft.NET\Framework\vxxxxxx\aspnet_regiis.exe -i


After it finishes, you have one more step:

Open 'Run' from 'Start Menu' and type:


regsvr32 %windir%\Microsoft.NET\Framework\vxxxxxx\aspnet_isapi.dll


Again, by replacing 'vxxxxxx' with your version.
Press OK, wait, and you should receive a confirmation message.

why should we require to make changes on version

i m bit confuse..

by anand on Saturday, March 13th 2010 at 06:26 AM

Hai,it is very useful to me.But i want to run batch files via iis.IIS does not run it.Then how can i run it?plz tell

by Jayshree on Friday, March 19th 2010 at 10:21 AM

thanks,before this i tried a lot of methods,but finally
this helped me.

by Per on Tuesday, March 23rd 2010 at 04:14 AM

Almost 6 years later, your post still helps :-)
I noted that even if I have .NET 3.5 installed, the dlls in 3.5 are not registerable. I had to use the dlls in 1.1 folder. But still. As everyone else has stated. You saved me a few hours or days. Thanx!

by Josh on Monday, March 29th 2010 at 05:41 PM

My ISS server is not displaying .html files. It tries to download them instead. Can someone tell me where the setting is on the IIS server to display html files instead of download them? I am on Windows Server 2008 R2. Thanks.

by Harry on Wednesday, March 31st 2010 at 02:39 AM

Perfect !! Thanks a lot for the tutorial ... got really frustrated searching Microsoft website ...thanks a lot again ...

by Rashid on Monday, April 5th 2010 at 06:20 AM

Hi friend.
i know all these step.
but still i am facing problem in windows7.
i cannot registered IIS with asp.net3.5
could you please tell me is there any other way in windows7?
i checked iis install successfully but
when ever i try this command line
c:\windows\microsoft.net\framework\v2.0.50727\
aspnet_regiis -i
a popup appears Asp.net setup custom action has
stopped working
could you please tell me where is the problem and how to solve it?
thanks in advance
Regards
Rashid

by Rashid on Monday, April 5th 2010 at 06:21 AM

Hi friend.
i know all these step.
but still i am facing problem in windows7.
i cannot registered IIS with asp.net3.5
could you please tell me is there any other way in windows7?
i checked iis install successfully but
when ever i try this command line
c:\windows\microsoft.net\framework\v2.0.50727\
aspnet_regiis -i
a popup appears Asp.net setup custom action has
stopped working
could you please tell me where is the problem and how to solve it?
thanks in advance
Regards
Rashid

by christo on Thursday, April 8th 2010 at 02:10 AM

hi people i am also getting the version error changed the version in the website still doesn't run
and is there a way to deploy a web service ?

can anyone please help me

by Rashid on Thursday, April 8th 2010 at 03:13 PM

Thanks for reply but still facing problem
i done all these steps. my IIS installed successfully, and framework3.5 also, i checked my iis. but when i open visual studio 2005, there i cannot access my database, cause my VS nd iis not reg, i m trying to reg, with the same path
C:\windows\microsoft.net\framework\v2.0.50727\aspnet_regiss -i
but error comes,i cannot identitfy the problem area i hope this make u clear what exactly i want to say.
thanx

by mustafa on Saturday, April 24th 2010 at 09:44 AM

hey i am having the same problem as many others.. The asp_isapi.dll file does nt run only, it still gives me an error tht it cannot be registered.. Plss help

by mustafa on Saturday, April 24th 2010 at 09:44 AM

hey i am having the same problem as many others.. The asp_isapi.dll file does nt run only, it still gives me an error tht it cannot be registered.. Plss help

by dsfdf on Thursday, May 20th 2010 at 11:10 AM

poop

by dsfdf on Thursday, May 20th 2010 at 11:10 AM

poop

by dsfdf on Thursday, May 20th 2010 at 11:10 AM

poop

by mj12 on Friday, May 21st 2010 at 06:55 PM

Thanks! :)

by manasa on Sunday, June 6th 2010 at 03:55 PM

When I open up IIS from my Administrative tools..I tried to "connect" by giving my computer's name, but getting a message that my computer is not running IIS 4 or higher version.


Can anyone tell me where and what is the problem?

by Sachet on Monday, June 28th 2010 at 06:09 AM

hey ny plz help..
i m making an web application dat keeps a track of the computers on a network..i.e..who is using wich pc for internet...in dis..for ny person who wants to use internet has to first login into my apllication den he/she can use internet..so i want dat..my should run every time ny browser is opend..so he/she has to first login..and he can't use internet without logging in..and wen its logged in..den the browser is opened with its home page.

by Gav C on Monday, July 26th 2010 at 02:23 AM

Hi Sachet,

What you want to do is setup a proxy server to handle all of that. A proxy can track what was downloaded and from where and also force people to login to with a username and password.

Gav

by mahesh saini on Sunday, August 15th 2010 at 09:45 AM

sir, my Question is - how to run asp.net project on localhost,or iis,and server????????
pls help me...

by mahesh saini on Sunday, August 15th 2010 at 09:46 AM

sir, my Question is - how to run asp.net project on localhost,or iis,and server????????
pls help me...

by Julius on Wednesday, September 22nd 2010 at 04:55 PM

Hi,

I have windows 7, this procedure is perfect, works for me, but I didn't have to add last two steps:
1.%windir%\Microsoft.NET\Framework\vxxxxxx\aspnet_regiis.exe -i


and

2. regsvr32 %windir%\Microsoft.NET\Framework\vxxxxxx\aspnet_isapi.dll

I also have Apache/MySQL/PHP configured on my machine. My question is, can I used IIS server with MySQL/PHP?

Can I connect this setup IIS/ASP.NET to MySQL database?

Many thanks for your help

by seema on Monday, September 27th 2010 at 05:05 PM

hi,this is really very helpful tutorial. but i am facing some error msg.
i have window 7 and .net frame work v4.0.30319
when i run
regsvr32%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
the error message is showing
entry opint DllRegisterServer was not found.
Pl help.
Thanks

by Tom on Wednesday, September 29th 2010 at 12:11 PM

Hi,

As others have stated, great work! Obviously still relevant.

Seema, and others, I had the same error when registering my dll (all versions, current and past, none would register).

Try it anyway - it works for me. I'm new at this, so I don't claim that there will be any consequences of not having your dll "registered" - anyone know what they may be?

I did have to allow asp.net permissions in the IIS manager - check the start page of that app.

Cheers
Tom

by Shafiq on Wednesday, February 9th 2011 at 12:31 PM

Hi Andre, great post. Thanks a lot!
Would you please provide another post where I can find the way to configure URL with port number to browse different websites.

Say, http://192.168.1.1:3368/ -> will show contents from one directory where http://192.168.1.1:3369/ -> will show contents from other directory.

Thanks in advance.

by manoj on Wednesday, March 16th 2011 at 04:17 PM

you can see also whether the Asp.net vX.XXXX is enabled or not. If it is not enabled then also you will get error page not fount 404

by manoj on Wednesday, March 16th 2011 at 04:19 PM

you can see also whether the Asp.net vX.XXXX is enabled or not in "web service extension folder under IIS. If it is not enabled then also you will get error page not fount 404

by 77777 on Saturday, June 11th 2011 at 10:10 PM

shhshhs

by http://www.wishes7.com/category/wedding-wishes/ on Sunday, August 14th 2011 at 06:31 AM

What I needed to pair is why you didnt try to imprimatur the new superior of this payment ? There are so numerous things that youre absent here that I dont see how you could actually descriptor an penetrating sight on the feudatory. Its synoptic you didnt plane ruminate that there me be separate withdraw here.

by kids stories on Sunday, August 14th 2011 at 01:39 PM

Pretty informal substance. I pianoforte stumbled upon your ledger and hot to say that I possess arts enjoyed substance your book posts. Any way I'll be subscribing to your cater and I draftsmanship you publicise again presently

by kids stories on Sunday, August 14th 2011 at 01:39 PM

Pretty informal substance. I pianoforte stumbled upon your ledger and hot to say that I possess arts enjoyed substance your book posts. Any way I'll be subscribing to your cater and I draftsmanship you publicise again presently

by love sms on Tuesday, August 16th 2011 at 12:11 AM

What I requisite to merge is why you didnt try to imprimatur the new tiptop of this commercialism ? There are so numerous things that youre scatty here that I dont see how you could actually descriptor an penetrating exteroception on the feudatory. Its synoptic you didnt sailing ruminate that there me be differentiate pall here.

by heartburn diet on Friday, August 19th 2011 at 09:30 PM

Succeed you for writer nonsynthetic article. Where encourage could anyone get that kind of scheme in ofttimes a sum way of utilise ? I conversation a take drawn bind, and I am on the spotter for copiousness forgather.

by asset management on Saturday, October 8th 2011 at 02:42 AM

Lionel Andrés Messi is an Argentinian contestant who currently plays for Act and the Argentinian lie grouping. Thermostated one of the top contestant players of his gentility.
asset management

by Pedro Ayala on Tuesday, November 8th 2011 at 09:51 AM

I have spent weeks searching in the internet for a simple way to start learning asp.net from scrach up until I found this page. There are too much garbage or heavy stuf in the internet and rarelly you found something so simple clear a practical like this tutorial. Microsoft must take notice of this, after all, they are the people who get the millions of dallar in venefice. They have many publiser and instructor without any talent to teach. You have to spend a lot of time trying to undertand what they say. And at the end you learn by yourself. Thanks to the person who wrote this page.

by Simon Iddings on Monday, December 12th 2011 at 01:50 AM

ASP runs inside IIS (Internet Information Services). Thus one should install IIS under Windows 2000, Windows XP or Windows 2003. A printer is easy to be installed. http://www.idpro.co.uk

by GD Poker on Sunday, January 22nd 2012 at 11:01 AM

I've been absent for some time, but now I remember why I used to love this website. Thank you, I will try and check back more frequently. How frequently you update your web site?

by on Tuesday, January 24th 2012 at 05:41 AM

Once you have recreated the problem and captured these steps, you can save them to a file and send it to your support person, who can then open it up and view

by Jan Baptysta on Tuesday, January 24th 2012 at 05:48 AM

Once you have recreated the problem and captured these steps, you can save them to a file and send it to your support person, who can then open it up and view

by tents for sale on Thursday, April 12th 2012 at 03:53 AM

Hi, this is a great post! Thanks..

by cheap Louis Vuitton handbags on Monday, May 21st 2012 at 10:02 PM

Good post!I was very pleased to find this site.I wanted to thank you for this great read!

by on Monday, June 11th 2012 at 06:21 PM

asdads

by Margahayuland on Sunday, June 9th 2013 at 07:22 AM

still common for me
http://sooboos.com/margahayuland/margahayuland-42-tahun-membangun-ruang-hidup.php
http://sooboos.com/situs-berita/penting-panas-perlu-dan-seruu.php
http://sooboos.com
http://wadahpromoindonesia.blogspot.com/2013/05/margahayuland-42-tahun-membangun.html
http://tech-kinodeon.blogspot.com/2013/02/agen-bola-ligabet88-promo-bonus-100.html
http://tech-kinodeon.blogspot.com/2013/04/penting-panas-perlu-dan-seruu.html
http://tech-kinodeon.blogspot.com/2013/05/korek-api-gas-fighter-indonesia.html


Comment Comment on this tutorial
Name: Email:
Message:
Comment Related Tutorials
There are no related tutorials.

Comment Related Source Code
There is no related source code.

Jobs ASP.NET Job Search
My skills include:
Enter a City:

Select a State:


Advanced Search >>
Ads

From the creators of Geekpedia, a revolutionary new coupon website!

BargainEZ has coupons codes, printable coupons, bargains and it is the leading source of Passbook coupons for iPhone and iPod touch devices.

Coupons
Discover Geekpedia
Other Resources