更新已发布的ASP.NET网站(aspx.cs文件) [英] Updating published ASP.NET website (aspx.cs file)

查看:102
本文介绍了更新已发布的ASP.NET网站(aspx.cs文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发布了一个asp.net网站&然后我在其aspx.cs文件中进行了更改。但我没有看到输出有任何变化。问题是我需要让这些更改在我的网站上生效。我在aspx.cs文件中添加了三行脚本。我用记事本打开了它保存并重新启动了网站。但是没有发生任何变化。

如何修改它?我是否需要从VisualStudio再次发布项目?



我尝试过:



我试图更改iis的wwwroot文件夹目录中的aspx.cs中的脚本,但是我没有看到任何更改。

I published an asp.net website & then I made changes in its aspx.cs file. But I don't see any changes in the output. The question is what I need to make this changes take effect on my website. I added three lines of script in the aspx.cs file. I opened it using notepad & saved it and restarted the website. But no changes take place.
How can i modify it? Do i need to release project again from VisualStudio?

What I have tried:

I tried to change the script in aspx.cs in wwwroot folder directory of iis, but i don't see any change.

推荐答案

你好,



您只想重建网站。成功构建后,您必须使用iis部署.Dll文件替换新构建的bin文件夹.Dll文件。



之后从iis重新设置您的网站。



希望对你有所帮助。



如果以上工作,请不要忘记标记为已解决。



谢谢
Hello,

You just want to Rebuild the Website. After successful build you have to replace newly build bin folder .Dll file with iis deployed .Dll file.

After that Restrart your website from iis.

Hope it's help you.

Don't forget to mark as Solved if above works.

Thank you


这篇关于更新已发布的ASP.NET网站(aspx.cs文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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