Sunil
Sunil

Reputation: 83

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.

Upvotes: 0

Views: 192

Answers (3)

Abhishek Pandey
Abhishek Pandey

Reputation: 346

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.

Upvotes: 1

Simon Price
Simon Price

Reputation: 3261

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.

Upvotes: 1

Supraj V
Supraj V

Reputation: 977

In server it executes only compiled code, if you upload .cs files, it will affect nothing, so you need to upload compiled code(.dll) to see the changes.

Upvotes: 2

Related Questions