Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / January 2005

Tip: Looking for answers? Try searching our database.

Publishing ASP.NET 2.0 Projects from VS 2005  to IIS Running on XP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
news.microsoft.com - 28 Jan 2005 18:33 GMT
Hello VS 2005 World:

I am making my way through VS 2005 Beta 1 and I'm having a problem getting
ASP.NET project to start in IIS running on an XP development machine.

I build a sample project in VS 2005 and it runs fine through the debugger.
Then I try using the new Publish Web Site feature to publish the application
to IIS at C:\Inetpub\wwwroot\my_project.

It looks like everything gets published correctly to a virtual directory.
But when I go into IIS and configure the startup file to look for
Default.aspx then try and access the application in Exporer using this
address:   http://localhost/my_project/default.aspx.

I get this message:
----------------------------------------------------------------------------
---------------------------------------------------------
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then
click the Refresh button, or try again later.

Invalid at the top level of the document. Error processing resource
'http://localhost/OneToMany2/default.aspx'. Line 1, Po...
This is a marker file generated by the precompilation tool, and should not
be deleted!
^
----------------------------------------------------------------------------
--------------------------------------------------------

What the heck does that mean?

Can anyone give me a clue as to what I'm doing wrong here?

The virtual directory looks right, I see the code there and I don't see
anything unusual in IIS.  The application works fine through the debugger.
One note is that the machine I installed Yukon and VS 2005 already had .NET
Framework 1.1 installed.  Does this have anything to do with it?  I don't
think so because the new VS 2005 Web Configuration App runs fine...

Thanks

Confused and bewildered...
Steven Cheng[MSFT] - 29 Jan 2005 10:26 GMT
Hi bcox,

As for the problem you mentioned, it seems that I've also seen a former
thread in the dotnet.framework.aspnet newsgroup discuss this. Not sure
whether that one is also yours,
as I've also replied there, it is likely that the asp.net runtime hasn't
been correctly installed
(or register ) in the IIS.

The error mesage:

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

Invalid at the top level of the document. Error processing resource
'http://localhost/OneToMany2/default.aspx'. Line 1, Po...
This is a marker file generated by the precompilation tool, and should not
be deleted!
^
-------------------------------------------------------------------
===========================

indicate that the IIS server treat the aspx page as a xml file. I think you
can have a look in the IIS's site to see whether the asp.net is correctly
registered.  Try putting a simple aspx page in the site's root application
to see whether it can work. Also, if you've also .net 1.1 installed, try
checking whether asp.net 1.1 page can be serviced correctly.

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.