加载在GoDaddy上托管的C#ASP.NET网站时的Paerser错误

时间:2017-03-01 20:55:31

标签: c# asp.net

我正在使用GoDaddy托管一个网站,最近我在尝试加载网站时遇到了错误。 我将网站发布到文件系统,然后将网站加载到我的主机帐户中的正确文件夹。该网站以前工作但我不得不更新以及我是如何得到此错误的,该网站在我用于测试网站的IIS设置中正常工作。

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Cannot execute a program. The command being executed was "D:\Hosting\13634184\html\{domain-name}.com\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig  /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\{domain-name}.com\748bda03\4edc4877\ux22cjxn.cmdline".

Source Error:


Line 1:  <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="{project-name}._Default" %>
Line 2:  
Line 3:  <asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">


Source File: /{domain-name}.com/default.aspx    Line: 1 

每次加载网站时,解析器错误消息“\ ux22cjxn.cmdline”的最后一部分都会发生变化

1 个答案:

答案 0 :(得分:0)

感谢您指点我正确的方向。我有信任级别设置,但问题是

    <system.codedom>
       <!-- All is removed between the 2 tags-->
    </system.codedom>

从此处删除代码解决了问题。