vb.net ASP.net 这是预编译工具生成的标记文件,不应删除

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26342708/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 18:20:25  来源:igfitidea点击:

ASP.net This is a marker file generated by the precompilation tool, and should not be deleted

asp.netvb.netiis.net-4.0pre-compilation

提问by StealthRT

I am currently getting this when visiting my http:// websitehere.com/excelData.aspx page:

我目前在访问我的 http:// websitehere.com/excelData.aspx 页面时得到这个:

This is a marker file generated by the precompilation tool, and should not be deleted!

这是预编译工具生成的marker文件,不能删除!

The file system directory on the serverlooks like this:

服务器上的文件系统目录如下:

--mainDir
 |--excelData.aspx
 |--PrecompiledApp.config
 |--Web.config
 |--bin
   |--App_Web_cuydkh1j.dll
   |--exceldata.aspx.cdcab7d2.compiled

Not sure what I need to add/remove in order for it to display my page without that precompilation tool texton it.

不确定我需要添加/删除什么才能在没有预编译工具文本的情况下显示我的页面。

The IIS server is version 6.1

IIS 服务器版本为 6.1

回答by Tareq

One of the reasons for this problem is the file PrecompiledApp.config is missing from the root of your site (this file is generated by the publishing wizard).

此问题的原因之一是站点根目录中缺少文件 PrecompiledApp.config(该文件由发布向导生成)。

Hope this help others.

希望这对其他人有帮助。

回答by Reagan

Problem:
When you upload the web application, sometimes the most important files in the binfolder (e.g., the .dll files) will not upload correctly.

问题:
当您上传 Web 应用程序时,有时文件bin夹中最重要的文件(例如 .dll 文件)无法正确上传。

Solution:
Re-upload the bin folder. Remember to overwrite.

解决方法:
重新上传bin文件夹。记得覆盖。

回答by David

Make sure the site is configured as an application on IIS

确保将站点配置为 IIS 上的应用程序