Publishing web sites with IIS 6.0

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?
 
G

Guest

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
 
D

Dumb Luck

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)
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top