I have just made my first asp.net app in Visual Web Developer Express 2008. I now try to move to another folder and run it throug the iis. I have configured a virtual folder in iis and copied my app (web.config, .aspx and .asp.cs files) to that. When trying to open my default.aspx i get this error in the browser (sorry for bad translation from danish): 'Serverprogram not available. The webprogram you try to acces on this server is not available at the moment. Click the Refresh button , if you would send your request again'. I can open a .htm page from same folder without problems. It seems as iis don't run with asp.net 3.5. I have tried reinstalling the iis by running 'c:\windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i' which didn't help. My virtual folder asp.net properties is set to run 2.0.50727. 3.5 is not available in the dropdown. My iis is version 5.1. I see nothing in the eventlog regarding this error. Anyone has any ideas how top solve this?
No, it's a virtual folder, and I wondered, when I should create it in the iis, that I didn't have an option for creating an application. My iis only allows me to create virtual folders running under 'Standard webserver (or how it's called in english). I think this leads us in the right direction. How can it be I can't create an app. in the iis? Is this not possible in XP Proff?
Virtual folders is correct, you can create the application by clicking properties on your web, go to Directory and click Create next to Application Name.
I didn't got a solution for my problem but thankyou very much for the help anyway. I think part of the solution will be to investigate the danish contra english terms for the iis setup, to be sure that's done correct. When I've found the solution I'll be back again :-)
Ok, I found a solution for my problem. First: In XP Professional I can only have one web site (out of the box), the defauilt one.
So instead of trying to get my webapp to run as vitual directory under this default website, which I did in first place and didn't get to work, i moved my code to the folder for the default website (c:\inetpub\wwwroot). That did the trick.
I thought it would be possible to run an app. in a virtual folder, but it seems not to be...?
It would be nice if someone could give me a short explanation on this.