Global.asax的作品在本地计算机上,但不是在我发布到服务器 [英] global.asax works on local computer but not after i publish to server

查看:180
本文介绍了Global.asax的作品在本地计算机上,但不是在我发布到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能让我的的Global.asax 文件发布到我们的ftp站点?

How can I get my global.asax file to publish to our ftp site?

我添加了一个的Global.asax 文件到我的项目(​​使用asp.net使用C#从VS2010),它在我的本地机器上的伟大工程。然后,当我发布到我们的FTP站点。再从FTP文件夹复制到站点文件夹覆盖旧的文件。它不工作。我使用Windows Server 2008 R2的企业。

I have added a global.asax file to my project (using asp.net with c# from vs2010) which works great on my local machine. Then when I publish to our ftp site. Then copy from the ftp folder into the site folder overwriting old files. It doesn't work. I am using Windows Server 2008 R2 Enterprise.

推荐答案

检查Global.asax文件的生成操作设置为文件属性中的内容。设置为内容的所有文件都会被部署。

Check that the "Build action" of the Global.asax file is set to "Content" in the file properties. All files set to content will be deployed.

这篇关于Global.asax的作品在本地计算机上,但不是在我发布到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆