简体   繁体   中英

Publish will not push adovbs.inc to target File System destination (classic asp and IIS 7.5)

I have a classic ASP site on my Visual Studio 2012 development machine and I have noticed a strange behavior with Publish .

A file called adovbs.inc exists in a folder called debug within the root of the site. Quite a few files on the (development) site reference this without problem with this syntax:

<!--#include file="../debug/adovbs.inc" -->

After a "successful" Publish operation, I note that the adovbs.inc file did not in-fact get copied to the target location (on the production machine) and hence I get:

The include file '../debug/adovbs.inc' was
not found.

I wonder if the filetype .inc could be the problem? Most server-side include files have filetypes of .asp in my site. Is there another "knob to turn" somewhere in IIS 7.5?

After lots of frustration, I simply copied the file and pasted it with Windows Explorer and then the file was found at runtime.

对于经典的ASP网站,不要使用VS Publish website选项,因为没有要编译的内容,请使用“复制网站”选项,您可以在“网站”菜单中找到它,或者在解决方案资源管理器中右键单击该网站。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM