Publishing web sites with IIS 6.0

  • Thread starter Thread starter Dumb Luck
  • Start date Start date
D

Dumb Luck

I created a web site with Visual Studio, and now I would like to
publish it. When I click on publish it creates 3 files and a bin
directory. When I try to open the .aspx file with internet explorer I
get this error:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later.

A name was started with an invalid character. Error processing resource
'file:///C:/Documents and Settings/christiansent/My...

<%@ page language="VB" autoeventwireup="false" inherits="_Default,
App_Web_7dcby_wv" %>
-^

What could be wrong?
 
DumbLuck,
What's wrong is we need to understand the difference between an HTTP Request
(the right way- e.g., Http://localhost/christiansent/MyPage.aspx" where
christiansent IS AN IIS APPLICATION and Virtual Directory) and
a request for a FILE based resource which is what you show.
Hope it helps,
Peter
 
Thank you very much for your help. That problem is fixed now. I do
have another question if you don't mind.

The page I have made uses VB to perform some administrator tasks. How
do I set the page up so that it uses the credentials of the logged in
user to perform the visual basic actions? (i.e. reset user password)
 
Do you want the page to run under an account that has administrator
privileges, or under the account of the logged in user?

Logged in user, just use Windows Authentication (check Integrated in IIS and
UNCHECK Allow Anonymous).

Set <identity impersonate="true" userName="AdminUser' password = "pass" />
in webl.config to have app run under admin user.

Be advised, there are security implications.
Peter
 
Back
Top