having issues with publishing my site - using ftp method in visual studio.
i deleted an aspx file from the project and when i try publishing it - i get error. it is trying to copy the deleted file from:
Error 8 Copying file obj\Debug\Package\PackageTmp\comments.aspx to obj\Debug\Package\PackageTmp\obj\Debug\Package\PackageTmp\comments.aspx failed. Could not find file 'obj\Debug\Package\PackageTmp\comments.aspx'. 0 0
think i found the problem. there are references left in the csproj file. it's annoying because i have deleted lots of things.
also - i added a new page called contactus, which i have to manually add to the \obj\Debug\Package\PackageTmp each time i do rebuild. surely i'm doing something wrong as it can;t be a manual job?
on publishing it seems VS is taking all my porject files and dumps them into a directory like this: \obj\Debug\Package\PackageTmp
and from there it is taking those files to my hosting location.
because i deleted and added new items i get publishing error because upon building the project, VS makes reference to everything in the project file. then while publishing if those files are not found in the PackageTmp it moans.
so my question is: how can i publish it in a way that it simply takes my files and puts them in the PackageTmp only...and not from PackageTmp to hosting.
hope i made sense - thanks
ps: i am using the publish method of File System and my location is set to \obj\Debug\Package\PackageTmp - but it never gets published there.
have you managed to resolve this issue? I would suggest you to do the followings:
1. Open your Visual Studio tool and open your project
2. On your Solution Explorer window, right click your project and select "publish"
3. Please publish your project to your local folder (e.g. C:\project)
4. Next, you just need to upload all the files on this C:\project via FTP to your server and everything should be working instantly.
Should there be any problem, please advise the error message and I am happy to help you out.
Please mark this response as an "answer" if it helps you.
ginger_asp
Member
255 Points
329 Posts
publishing issues with deleted files
Jul 15, 2011 11:14 AM|LINK
having issues with publishing my site - using ftp method in visual studio.
i deleted an aspx file from the project and when i try publishing it - i get error. it is trying to copy the deleted file from:
Error 8 Copying file obj\Debug\Package\PackageTmp\comments.aspx to obj\Debug\Package\PackageTmp\obj\Debug\Package\PackageTmp\comments.aspx failed. Could not find file 'obj\Debug\Package\PackageTmp\comments.aspx'. 0 0
any ideas how to resolve this issuse? thanks
bhavik.y.sha...
Participant
1610 Points
449 Posts
Re: publishing issues with deleted files
Jul 15, 2011 11:20 AM|LINK
Hello,
You take backup of whole project.
And try to publish from scratch.
And Try to delete that dll of that aspx page from bin folder.
Thanks & Regards.
Skype ID : bhavik.shah2004
ginger_asp
Member
255 Points
329 Posts
Re: publishing issues with deleted files
Jul 15, 2011 11:29 AM|LINK
hey,
i deleted the dll from bin folder. did a clean/rebuild. it's still looking for the deleted file. anythign else i can try?
bhavik.y.sha...
Participant
1610 Points
449 Posts
Re: publishing issues with deleted files
Jul 15, 2011 11:33 AM|LINK
Ya try to rebulid code and then make publish file of that code and thru ftp transfer that files.
Thanks & Regards.
Skype ID : bhavik.shah2004
ginger_asp
Member
255 Points
329 Posts
Re: publishing issues with deleted files
Jul 15, 2011 11:51 AM|LINK
ok. how do i publish without using ftp? there is the publish methods, but they all seem to point towards my hosting company
ginger_asp
Member
255 Points
329 Posts
Re: publishing issues with deleted files
Jul 15, 2011 12:01 PM|LINK
think i found the problem. there are references left in the csproj file. it's annoying because i have deleted lots of things.
also - i added a new page called contactus, which i have to manually add to the \obj\Debug\Package\PackageTmp each time i do rebuild. surely i'm doing something wrong as it can;t be a manual job?
ginger_asp
Member
255 Points
329 Posts
Re: publishing issues with deleted files
Jul 15, 2011 01:36 PM|LINK
hi...
on publishing it seems VS is taking all my porject files and dumps them into a directory like this: \obj\Debug\Package\PackageTmp
and from there it is taking those files to my hosting location.
because i deleted and added new items i get publishing error because upon building the project, VS makes reference to everything in the project file. then while publishing if those files are not found in the PackageTmp it moans.
so my question is: how can i publish it in a way that it simply takes my files and puts them in the PackageTmp only...and not from PackageTmp to hosting.
hope i made sense - thanks
ps: i am using the publish method of File System and my location is set to \obj\Debug\Package\PackageTmp - but it never gets published there.
Topspy
Contributor
3785 Points
806 Posts
Re: publishing issues with deleted files
Jul 16, 2011 06:46 AM|LINK
I would suggest you publish everything to your local then upload it directly to hosting space.
Asp.net Hosting | Windows Hosting | SQL Server Hosting
necro_mancer
Star
8023 Points
1577 Posts
Re: publishing issues with deleted files
Jul 17, 2011 04:22 AM|LINK
Hi ginger_ASP,
have you managed to resolve this issue? I would suggest you to do the followings:
1. Open your Visual Studio tool and open your project
2. On your Solution Explorer window, right click your project and select "publish"
3. Please publish your project to your local folder (e.g. C:\project)
4. Next, you just need to upload all the files on this C:\project via FTP to your server and everything should be working instantly.
Should there be any problem, please advise the error message and I am happy to help you out.
Please mark this response as an "answer" if it helps you.
Thanks heaps!
Professional SQL 2008 R2 Service