Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a asp.net website which will be published and hosted via IIS. The website has many aspx pages and .cs .... My need is to just update code in one class file of the website on weekly basis.. For this, instead of updating one class and re publishing the entire website, i thought of simply creating a sample file containing the code of class file that is to be updated. That class code is changed and only that class is published and then appended to current published location on web server.

However, published apps only shows client side code, not server side code(.cs code). So my thoughts failed here.

The code contained in class to be updated is if condition with two lines of code inside it.

How can i do this in a common practice.

Please do not refer weekly trigger or similar option for me .

Any help??
Thanks in advance...
Posted
Comments
DamithSL 21-Sep-15 13:04pm    
can you provide more details on what is the change you doing weekly?

1 solution

Sounds like you only need to compile and copy the site.dll file to the server. You'll find that in the appropriate bin sub-folder. If you build as Debug then bin/debug/mysite.dll. Substitute release for debug if required.
 
Share this answer
 
Comments
Codes DeCodes 22-Sep-15 11:39am    
I set the configuration to release mode, then i updated my code and rebuild the solution. After that, I pasted the solution dll file into server. Here updated code is not showing when i browse apps from server.
R. Giskard Reventlov 22-Sep-15 11:43am    
Have you tested it locally. Does it work? Are there any other files that require updating to ensure this process (whatever it is) works? You may need to ctrl-F5 to force it to use any changed items or restart the application pool to refresh the binary.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900