Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS appears to interpret .aspx files as .htm files 3

Status
Not open for further replies.

dalchri

Programmer
Apr 19, 2002
608
US
I've just started working on my first ASP.NET project. Here are the exact steps that I took to setting up my environment...

1) Installed Visual Studio.NET - Screwed around with windows apps for a few months.

2) Installed IIS on Windows 2000 Pro (not server)

3) Went back into the VS.NET setup program and installed the complete remote debugging feature (since this was disabled before I installed IIS).

4) Reinstalled the .net framework using dotnetfx.exe /t:c:\temp /c:"msiexec.exe /fvecms c:\temp\netfx.msi" as recommended by Microsoft if you installed IIS after installing the .net framework.

Here is what I see...

1) HTML pages and old .asp pages are displayed fine.

2) .aspx pages only appear to display HTML coded objects. For example, I can place a WebForm Button and an HTML button on the same .aspx form using VS.NET. I only see the HTML button. No code is executed in Global.asax or the .aspx file.

3) Something that appears stinky to me is that the Server extensions do not list .aspx files in IIS for my web application. The do list .htm, .html, .asp, etc...

Don't I need to associate these extensions (.aspx, .asax, etc...) with inetinfo.exe, aspnet_wp.exe, aspnet_isapi.dll or something like that so IIS knows what to do with them?

If so, I'm looking for either a complete list of associations (I don't mind doing it manually) or some sort of missing installation step like a setup file that I missed.

Thank you for any suggestions or links to info that I might educate myself with!
 
yes, you do. From the command line on your server, go to:

x:\winnt\programfiles\microsoft.net\framework\v1.xxx.xxx
and run the following command:

aspnet_regiis -i

this will register aspnet with iis, and all will be well again in the world.

:)
paul
penny1.gif
penny1.gif
 
I like the pennies...

How about this...

My SQL server connection string works fine in a windows application but not in ASP.NET. Does this need to be addressed with security options in IIS or with the connection string?

Many thanks!
 
In the connection string I would think. I have never had to make a special concession in IIS for a sqlServer connection:

Server=192.168.0.1;Database=myDB;UID=sa;PWD=1234

is the basic structure to use with the sqlClient

:)
paul
penny1.gif
penny1.gif
 
If you're using integrated security, u must give access to ASPNET user in SQL Server. NetAngel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top