VS2012 Publish to new server cutting off files
Posted on 2014-04-24
My client has setup a new web server. The current production server is windows server 2008 R2 enterprise, with IIS7.
the new one is Windows Server 2008 R2 DataCenter, with IIS7.
When I publish the exact same code to the new server and look at the resulting files, it has cut off in the file before it completes! My source is fine. I've double and triple checked that. But the destination files are cut off and only part of the content is published.
Compiler Error Message: BC30481: 'Class' statement must end with a matching 'End Class'.
Warning: BC42105: Function 'LoadCertificate' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.
Warning: BC42024: Unused local variable: 'UnitI'.
And it displays this:
Line 255: Dim UnitI
But when I check the local file, the actual code line reads:
Dim UnitId As Integer = INVALID_ID
When I check the remote file, sure enough the code ends at:
For some reason it is not publishing the entire files I am sending!