PDA

View Full Version : Configuration of IIS


svdvelde
01-07-2005, 04:59 AM
Hello,

on my notebook I installed the .NET framework after I activated the IIS, and now I have to manually add all needed file types.

I was able to add the ISAPI filter for .net but I have problems configuring the file types that shall be executed with the aspnet_isapi.dll.

When I try to add a new file type (.aspx for example) the OK Button is never active. I opened some of the existing entries in the list with Edit, and there the OK button is always active, I could manipulate them.

So my question: why am I not able to add a new extension? What can I do to add them?

I am logged on as admin on my computer. It has installed XP with SP2. The same is with my 2nd computer, I cannot add any file types there, either (tried it because of curiosity). But since I installed the framework on that computer before I added the IIS all needed file types were already in.
Since this computer has XP with SP1 it cannot be the service pack that does not allow me adding new extensions.

For adding the extensions I tried opening the IIS administration tool, right clicked on the Websites directory and clicked on Properties. I then chose the tab "Home Directory" and clicked on "Configuration". Now the list of all already known extensions is opened and I clicked on Add. The then following dialog does not let me use the OK button.
I tried it with the default website, too, not only with the general directory. Always the same: I cannot use the deactivated OK Button for adding the new file extension.

svdvelde
01-07-2005, 05:16 AM
Ok, I found it out:

Nobody need to understand it, I donīt understand it, either. It is a simple bug in the dialog with dlls. When you use the Browse button to get the path to a dll the OK Button will not be activated.
If you instead type manually the same that would be inserted after using Browse all works.

svdvelde
01-07-2005, 08:32 AM
Next issue with IIS:

Now I managed to add all needed extensions. But still the asp.net code cannot be executed. The project I set up on my 1st computer which I copied to my notebook for presenting my prototype tells me when opening it that the installed Webserver (IIS) would not be able to execute .Net 1.1 code. And a direct http request with the IE gives a default error.

I double and triple checked all needed extensions, the isapi filter is there, the .net framework 1.1 is completely installed. I see no differences between the 2 computers but the asp.net pages run on my first and not with my 2nd computer.

What did I forget when configuring the IIS?

svdvelde
01-07-2005, 08:49 AM
I followed the advice in the help to use aspnet_regiis /i to register asp.net again. The script was executed with success, but no change.

Any other advices?

svdvelde
01-10-2005, 04:07 AM
Next I tried (except from removing all and installing all again) was to register the aspnet_isapi.dll with regsrv32 again.
Still no change.

The only difference between my 2 computers I found can be seen in Visual Studio.net. The Webserver Version information for the working server is:

Name: localhost
IIS-Version: Microsoft-IIS/S.1
ASP.NET-Version: 1.1.4322
Server enhancements: Version: 4.0.2.5322


For the not working computer:

Name: localhost
IIS-Version:
ASP.NET-Version: unknown
Server enhancements: Version: 0.0.0.0


Obviously .Net is not correctly linked with the IIS. What else can I try to fix this?

svdvelde
01-13-2005, 08:08 AM
I completely deinstalled IIS, Framework and Visual Studio including MSDN Library and then installed it again in the correct order:

1. IIS + Frontpage
2. .Net Framework
3. Visual Studio.

It now works properly. I guess I made something wrong in the first place with the order of installing. Maybe the IIS would have been correctly configured by the script if I not have added all file extensions by hand. Maybe the script thought all was ok when finding the registered extensions and left out whatever it is that now makes it working.

I donīt know, but the essense is that it is working :)

Archangel
01-13-2005, 10:18 AM
That posting on this site helps you work out your problems on the screen :)

Just kidding...that's great that although no one has replied you're being able to push through it!

paxaxe
05-10-2005, 09:03 PM
Thanks for your helpfull comments.
Like you I am having troubles getting my .aspx pages to run properly.
Near the end of your posts you indicated that you observed the WebServer
Version from withing VS.
Could you please tell me how to navigate to that information from inside VS?
Thanks,
Paxaxe

cholan
05-12-2005, 09:51 AM
paxaxe


Thanks for your helpfull comments.
Like you I am having troubles getting my .aspx pages to run properly.
Near the end of your posts you indicated that you observed the WebServer
Version from withing VS.
Could you please tell me how to navigate to that information from inside VS?


In your VS, From the Project Menu, select "<Your Project Name> Properties"
In the poped up window, Under the "Common Properties" you will find the sub link called "Web Settings". Click on that to see the informations you required.

Cholan