Click here to Skip to main content
15,889,403 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
asp.net application run properly while trying to publish its showing this error
Copying file obj\Release\Package\PackageTmp\Default.aspx to obj\Debug\AspnetCompileMerge\Source\obj\Release\Package\PackageTmp\Default.aspx failed. Could not find file 'obj\Release\Package\PackageTmp\Default.aspx'.

i copied one form from out side, it is only design nothing else. try to delete bin folder,rebuild. Anyone face this issue? Help me to solve this problem.
Posted
Comments
Afzaal Ahmad Zeeshan 11-Jun-15 7:06am    
Isn't that pretty much clear that your file system is messed up right now. You need to make sure that all of the required assemblies are present at the correct location.
tastini 11-Jun-15 7:08am    
everything is there, i check one by one. but Package\PackageTmp\Default.aspx not exist. Not sure even its creating when publishing.

1 solution

You must be using subversion for your application ,

what you need to do is , just remove obj folder from your solution , take a update again from your subversions,

clean the solution ,build in both release and debug mode , and then try to republish ,

this time it should work hopefully

just give a try for this.

This happens sometimes , as some file gets failed to copy during publish.
 
Share this answer
 
Comments
tastini 11-Jun-15 7:54am    
remove the obj folder(keep the obj folder only inside files remove). but no luck plus now cant build or rebuild the application. showing the same error.
Sreekanth Mothukuru 12-Jun-15 9:37am    
I hope you copied that design file like "add existing file.." to the project and its path is from within the same solution. Try to clean the solution once and rebuild.
tastini 13-Jun-15 2:33am    
not that way, copied only design. problem is now cant go back to old running application. showing the error even remove the form that i copied.

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