Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Publish Selection not publishing all files

$
0
0

I am new to Visual Studio and Publishing to a website.

I am using a File System method to publish.    I was able to get the initial web form pages and associated files published to the server.    But now that I have made changes to the code for the page in the CodeBehind file,  I cannot get that file to publish over with the changes.   I added some new controls to the page and I can see them now on the website.

I am in Release Mode.

I know that the aspx.cs file will be compiled into the DLL file that is in the bin folder.

I have tried many ways of getting the updates in the code file to work on the live server. It does work on the Local comptuer in debug mode.  But not on the live web server.

I have tried to delete the dll file on the server and manually move the dll file from the local source to the server.  And that did not work.    I tried cleaning the solution thus deleting the dll file ont he local source.  Then run in debug mode to create the dll.  then I manually moved that to the server.   That did not work either.

The next thing I tried was changing the first statement in the main aspx file.  I changed the "CODEBEHIND"  to "CODEFILE"   Then I went to the webpage and got an error saying it could not find the aspx.cs file.   This did not surprise me based on what you had said in the initial part of this thread.  But then I manually put the aspx.cs  file on the server.     And now it works.   I know this is probably not the correct way to do this.  And when I move from our staging server to the production I know I will not be allowed to do this.

it seem that the original problem is that the publishing is getting the original dll from some bin location that is initially created on the first build.   Someone suggested that I check in my User Profile and see if there was anything in MY documents.  I did see a folder for the project  but this is not where I have the project stored.  And other than the folder being created there was noting in the folder at My Documents.  

I really would like to stay in the Codebehind mode  since I will not have to manually move the aspx.cs file when I do the publishing (that file does not get published.

Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>