Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: .asmx/.aspx files show up in browser as text


Message #1 by "Stephen Gest" <stephen_gest@h...> on Thu, 15 Feb 2001 22:00:17
Hello,



I'm a .NET newbie, and I'd had trouble with two areas of .NET:

1) viewing .aspx and .asmx files correctly in the browser and

2) creating Web Forms.

Hopefully I can get someone to point me in the right direction as to what 

I'm doing wrong.



Thanks,



Stephen



For the first problem (1): 

    Whenever I view .aspx and .asmx files in IE, I simply see the text of 

the file, and it does not 'execute'.

*** I have Windows 2000 Server; SP1

*** I have IE 5.50.4522.1800; SP1 installed

*** I have the .NET framework SDK and Visual Studio Beta 1 installed

*** I have verified that in IIS Admin, Properties; Home Directory; 

Configuration; App Mappings that I have mappings for

     .asax, .ascx, .ashx, .asmx, .aspx, .axd, .disco, .rem, .soap, .web

and they all point to my xspisapi.dll with verbs of GET, HEAD, POST, DEBUG

(I did nothing to set this up)

*** I have restarted IIS, rebooted, unregistered the dll, etc... all 

without success.



Can someone else see what I've neglected to do?



For the next problem (2):

Here is the posting to the Microsoft .NEt newsgroup:





I've had difficulty creating a simple web form on Beta 1.



When I perform the following...

Create a New Project : Visual C# Projects : Web Application

   with a project name of Foo

   and project location of http://SGNET



I go into a dialog (that eventually times out) 

   "Creating the Web 'http://SGNET/Foo'



I tried fully qualifying the local host name with the domain name,

and then I get a dialog stating that the operation requires author

permission for 



I enter in the proper password for the user name listed, but that fails.



I have a few questions:



1) Where do I ensure that the proper permissions are set?

The user name I'm using is part of the local administrators group, and 

within IIS 5.0 the Administrators group is listed on the Operators tab for 

the Default Web Site. I also have enabled anonymous access for the web 

site.



2) Why does the Visual Studio project Foo get created in My 

Documents/Visual Studio Projects and not under inetpub/wwwroot?



Thanks,



Stephen


  Return to Index