简体   繁体   中英

asp.net c# .net framework 2.0 and 3.5

We have a asp.net application built in .net framework 2.0. I need to edit a web report and add few columns to the report. I updated the aspx.cs file and uploaded it to the server but there is no change in the report. If I change aspx file it works but aspx.cs file changes are not reflecting on the server. And I dont have local setup of the application to check. Is it necessary to compile the file, but same thing I have done with framework 4.5 without compiling and it worked. How can I update the report without compiling the file.

在服务器中,它仅执行编译的代码,如果您上载.cs文件,则不会产生任何影响,因此您需要上载编译的代码(.dll)才能查看更改。

you need to publish the new .dll file found in the bin directory to the remote locations bin folder.

If youre publishing through VS which I suspect your not, this would do this automatically on publish.

If youre doing what I think your doing and copying and pasting you need to copy the bin directory up too.

There are a number of files \\ folders that you need but the aspx.cs files are not any of them.

In ASP.NET when you place the aspx and aspx.cs file the files get complied automatically before the execution by ASP.NET engine. Please check the updated code does it contain any reference from 4.5 library.Additionally you can try to referesh the IIS cache sometimes ASP.Net engine unable to refresh/replce the existing files in the cache folder.

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