加载MVC模板时出错“文件或目录已损坏”

问题描述 投票:1回答:1

How do we deploy the application

  1. 使用Visual Studio发布到本地文件系统。
  2. 在生产服务器(IIS)上创建应用程序
  3. 将文件复制到app目录

There is an error in our production server.

Server Error in '/' Application.

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: The disk structure is corrupted and unreadable.


Source Error: 

Line 1:  <div class="row-fluid">Line 2:    <div id="graph" class="span24">Line 3:    </div>

Source File: /Views/ProductionOrder/ProductionOrderFlow.cshtml    Line: 1 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

我检查了文件系统,没有发现错误。

使用记事本可以成功打开模板文件。

还有其他可能的原因?

asp.net-mvc
1个回答
1
投票

如果您使用共享文件夹来复制文件,您可以从超级用户检查此答案:link。出于安全原因,您的文件可能会被阻止。右键单击和根文件夹的属性以检查此情况。

第二个选项可能是更换服务器的硬盘驱动器。

第三个选项可能是您的计算机和实时计算机之间的不同文件编码

© www.soinside.com 2019 - 2024. All rights reserved.