Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Wednesday, August 18, 2010

Asp.Net Website: The XML page cannot be displayed.

When I run a web application through Visual Studio, the application was working fine. Later to access the Web application through IP Address, we installed IIS on the machine. Later when we tried to access the URL, the following erros is shown.

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 'http://localhost/xxx.aspx. Line 1, ...


ReSolution: The fix is we just need to reinstall .NET framework

In Command Prompt Execute: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Aspnet_regiis.exe -i

Resource: http://support.microsoft.com/?id=306005
http://msmvps.com/blogs/bernard/archive/2006/03/30/88491.aspx

Hope it helpz...

Ramadhan Kareem :)

Fauzi

Wednesday, May 13, 2009

Unable to start debugging on the web server. The web server is not configured correctly...

Hey all:

When you build a web solution in Visual studio, if the following error message is shown:

"Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information."

There can be two reasons...

A) The directory where the web application stays may not be configured as web application.

Steps to Solve:
1. Right click the project folder & Click properties.
2. Select "Web Sharing" tab.
3. Choose the option "Share this folder" radio button & Edit Alias window will pop-up, Press OK and build the application.

B) The Frame work version may not be the appropriate one.
Steps to Solve:
1. Right click the project folder from IIS (Run>inetmgr), Click properties
2. Select ASP.NET tab & select the appropriate ASP.NET Version from combo box.
3. Press OK & build the application again.

Hope it is helpful...

Regards
Fauzi

Sunday, August 31, 2008

http://Localhost - No web site is configured at this address

Hi,

When you trying browse http://localhost, do you see the message, "No web site is configured at this address". I also saw the same message today and was trying all tricks to solve it for 20 - 30 mins untill i found this helpful blog. Here are points mentioned and I made sure all are done as mentioned below(updated with my attempt);

I am using OS: XP pro & IIS V5.1.

Note: Y= checked on, N= not checked.

Website Identification: Running, Host header name: blank,IP Address (SELECT All Unassigned) port: 80

WEB SITE
HTTP keep alive enabled : Y
Enable logging: Y

ISAPI FILTERS: blank

HOME DIRECTORY:
content should come from: A Directory on this computer :Y
Local path: c:\inetpub\wwwroot (which I have shared through explorer: share folder on network:Y, Allow users to change files: Y)

Script source access: N
Read: Y
Write: N
Dir browsing: N
Log Visits: Y
Index resource: Y

application setting:
Application name: Default Application
Execute Permissions: Scripts Only
Application protection: Medium(pooled)

DOCUMENTS:
enable default document: Y
(I have added my Login.aspx here(and all other website files) to the inetpub/wwwroot directory)
enable document folder: N

HTTP HEADERS:
enable content expiration: N

DIRECTORY SECURITY:
ANONYMOUS ACCESS & AUTHENTICATION CONTROL: (EDIT)
anonymous access: Y
User name: SOMESTATION\IUSR_SOMESTATION (SOMESTATION being my computer name)
allow IIS to control password: Y
basic authentication: N
Integrated Windows Authentication : N

I Believe after making highlighted change (Select: All Unassigned) only it worked fine for me.

Regards
Fauzi

Failed to access IIS metabase.

Hi,

Here is the solution for the error "Failed to access IIS metabase." which occurred in my case when i was trying to access a web application first time after installation of IIS (Version 5.1) in my XP pro.

In command prompt, go to the location:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

Run, aspnet_regiis -i

This will install asp.net 2.0. & web application works for me now :)

[Update]
At times ASPNET account may not have permission to access IIS metabase.
The following command has to be executed;

aspnet_regiis -ga ASPNET

Hope this should be helpful :)

Regards
Fauzi