Visual Basic .NET » Web Forms
iis problem -- mahdiasadi --

I have problem with iis (internet information service ) when i create virtual directory

To browse my site this error appears
Although my site work In vs 2005 properly with filesystem

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 '
http://localhost/mahdi/default 
aspx'. Line 1, Posit...*

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>

-^

Thanks in advanced mahdi asadi

-- alex --


It seems that you are trying to dynamically write xml to an aspx page.
In that case you need to make sure the xml is well formatted try, and should add contentType="text/XML" to the @ page directive for example

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master"
Title="Untitled Page" contentType="text/XML" %>

Then make sure your xml is well formatted.

IF you are not trying to write xml to an aspx and are getting this error message, it would seem that you have bad file assocition in IIS.
Check your MIME associations in IIS. Open up the IIS snapin and right click on your server and choose properties. The click on MIME types and verify that .xml is set to text/xml and .aspx is not listed.

Next Navigate to the virtual server or website you are having your problem with and verify the that .aspx is mapped to you your version of the aspnet_isapi.dll. To do this right click the site choose properties and click the home directory tab. Then click configuration and verify that .aspx is listed in the mappings tab as an exectable using C:\WINDOWS\Microsoft.NET\Framework\%your .net version%\aspnet_isapi.dll
Let me know if this help
Alexander Higgins
Http://www.signcreationsllc.com 


[Submit Comment]Home