Last post Sep 06, 2012 08:58 AM by koistya
Mar 27, 2012 02:01 PM|mbnewmedia|LINK
In VS2010, when I Build Deployment Package, I am getting the error:
Copying file obj\Release\CSAutoParameterize\original\Web.config to obj\Release\CSAutoParameterize\original\obj\Release\CSAutoParameterize\original\Web.config failed. Could not find file 'obj\Release\CSAutoParameterize\original\Web.config'.
The Output says:
Transformed Web.config using Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(1295,5): Error : Copying file obj\Release\CSAutoParameterize\original\Web.config
to obj\Release\CSAutoParameterize\original\obj\Release\CSAutoParameterize\original\Web.config failed. Could not find file 'obj\Release\CSAutoParameterize\original\Web.config'.
Because in the 'obj\Release\CSAutoParameterize\original\' folder the process has created 'obj/Release/CSAutoParameterize/original/' empty folder path.
I have tried to remove the web.config transform files, and readded them to no avail. Meantime I cannot build my deploy package. Any idea what might be wrong? Thanks.
Mar 27, 2012 03:36 PM|mbnewmedia|LINK
I managed to get this fixed. I had to exclude /obj/Release/CSAutoParameterize/ and /obj/Release/Package/ and /obj/Release/TransformWebConfig/ from the project.
Then reset some permissions on some folders, and it started working again, built the deployment package. Yea!
Sep 02, 2012 09:22 AM|koistya|LINK
I have the same issue. Can you please explain how you fixed it? Where exactly you excluded some of /obj/.. folders?
Sep 05, 2012 04:51 PM|mbnewmedia|LINK
I excluded the obj/Release folder (and everything under it) from the project, and then the build started working again.
Sep 05, 2012 04:54 PM|koistya|LINK
For me.. it helps, but only once - before each build I need to delete obj/Release directory alone with all it's contents in order to make Web Publish work and don't complain about errors in .config file (<form /> element)
Sep 06, 2012 08:22 AM|mbnewmedia|LINK
You shouldn't have to delete it. In VS right click on the obj/Release folder and select 'Exclude from project'.
Sep 06, 2012 08:58 AM|koistya|LINK
@mbnewmedia, It was never included into the project at the first place. Nothing to exclude.