Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 12, 2012 06:50 PM by dlchase
Dec 11, 2012 07:10 PM|LINK
I am using VS 2010 with TFS and I am trying to publish my web application project to our local webserver. I tried both to our IIS7 and our IIS6 webservers with the same results. When I click Publish I get the following error for any web page I have changed
since the last publish. This just started happening and not sure what is cause. Thanks.
------ Publish started: Project: ClinicAccounting, Configuration: Debug Any CPU ------
Connecting to R:\ClinicAccounting...
Transformed Web.config using Web.Debug.config into obj\Debug\TransformWebConfig\transformed\Web.config.
Copying all files to temporary location below for package/publish:
Publishing folder /...
Unable to add 'SearchHome.aspx' to the Web site. Unable to add file 'SearchHome.aspx'. Access is denied.
Dec 11, 2012 08:59 PM|LINK
Why dont you build your project and then manually copy all files using remote desktop connection or filezilla?
Dec 11, 2012 09:03 PM|LINK
I tried that and got the same error, even with administrator login. Doesn't the Publish do some things besides a straight copy of files? I am not sure what files do not need to be copied.
Dec 12, 2012 11:35 AM|LINK
I have my project running without every publishing through VS. I always build the project then copy the entire folder including all items in the bin folder. After that if I change a design form I just copy the form, otherwise if I change code I need
to rebuild and then copy the 3 items in the bin directory as well as the aspx item with the code change – be careful as this will drop users currently using the website.
However I think you problem is outside VS because you need to be given full permission and if you cannot copy using RDP or filezilla then you will not be able to copy using VS.
Try creating a new folder on the server in case the folder items are locked. If you can RDP you can simple copy and paste like you would to a memory stick from your PC to the new folder on the server. If this works repoint you IIS website to this new
Hope this helps you.
Dec 12, 2012 02:38 PM|LINK
Am I correct in assuming only .aspx files are copied? My project folder has .aspx and .aspx.vb and .aspx.designer.vb
If I copy everything then I may get files not needed, correct? How does someone know exactly what files get copied.
Dec 12, 2012 02:58 PM|LINK
All files need to be copied - .aspx and .aspx.vb and .aspx.designer.vb as they reference each other, they are small in size so wont take up much space on server.
Dec 12, 2012 04:20 PM|LINK
That is kind of a pain. Now I have to keep track of all pages I change and then copy them to webserver before I can test. I also assume I have to copy the application dll after every build...?
I also noticed that the file [MyApplication].dll is in both the \bin folder and also in the \obj\Debug folder.
Dec 12, 2012 06:50 PM|LINK
Turned out to be a problem with the application dll etc. files. I blew them away and did a Build and then Publish and all worked fine.