7 Ocak 2010 Perşembe

A problem with publishing web applications in .NET ?

When I tried to publish my web application I saw the following exception:

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://server-name/f$/Intranet/Web/Project
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Project"%> -^ 
 Solution:  
When multiple versions of ASP.NET are installed on a computer, ASP.NET is said to be running side-by-side. In this setup, Internet Information Services (IIS) needs to know which version of the ASP.NET ISAPI (aspnet_isapi.dll) should process a page in an ASP.NET application. ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows an administrator or installation program to easily update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool.

How to use the tool?

---Open command prompt , go to the following path: 
%windir%\Microsoft.NET\Framework\v2.0.50727
 ---run aspnet_regiis -ua 
---when that finishes run aspnet_regiis -i

---and browse your application. :) 
Yours Sincerely...

Hiç yorum yok:

Yorum Gönder