CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_web_deployment_projects Tags:
Item Type: NewsGroup Date Entered: 4/22/2006 7:53:21 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 9 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
10 Items, 1 Pages 1 |< << Go >> >|
ianinspain
Asp.Net User
Web deply proj giving copy error for dll's (references)4/22/2006 7:53:21 AM

0/0

Hi there,

Well almost there and it works locally but when i try to web deploy it using Build Solutionn i get a access denied error when trying to copying the dll references i have included in the project.

Can you help? Is this a rights problem?? Is so - why?

----
Error    11    Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\IanGregson.elBlog.Util\bin\Release\IanGregson.elBlog.Util.dll" to "bin\IanGregson.elBlog.Util.dll". Access to the path 'bin\IanGregson.elBlog.Util.dll' is denied.    iangregsondotcom

Error    12    Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\IanGregson.elBlog.Util\bin\Release\IanGregson.elBlog.Util.pdb" to "bin\IanGregson.elBlog.Util.pdb". Access to the path 'bin\IanGregson.elBlog.Util.pdb' is denied.    iangregsondotcom
---

and here is the output

Compile complete -- 0 errors, 0 warnings
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2403,9): error MSB3021: Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\IanGregson.elBlog.Util\bin\Release\IanGregson.elBlog.Util.dll" to "bin\IanGregson.elBlog.Util.dll". Access to the path 'bin\IanGregson.elBlog.Util.dll' is denied.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2403,9): error MSB3021: Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\IanGregson.elBlog.Util\bin\Release\IanGregson.elBlog.Util.pdb" to "bin\IanGregson.elBlog.Util.pdb". Access to the path 'bin\IanGregson.elBlog.Util.pdb' is denied.
Done building project "iangregsondotcom.csproj" -- FAILED.

Actually the reference does exist in my web project added as project reference.....

Anybody know what is going on???

I had a similar problem with urlRewriting.dll which i use but removing the reference and adding it back again seemed to sort that...

Thanks in advance

Ian


ianinspain
Asp.Net User
Re: Web deply proj giving copy error for dll's (references)4/22/2006 11:09:46 AM

0/0

More info, : I am using a solution with one class library (dll that causes problem), Web application project (the new one) and web deployment project.

Anybody else receive anything like this?

I also converted my VS 2005 web site project to a VS 2005 (no version change) web application project as per the tutorial online at Scott's blog.. everything went according to plan and i can run locally without building...

Thanks again

ian
ianinspain
Asp.Net User
Re: Web deply proj giving copy error for dll's (references)4/22/2006 11:44:05 AM

0/0

And just to be complete here is the complete output of the build...  and i am using visual source safe 2005 although i don't think this should matter

------ Build started: Project: IanGregson.elBlog.Util, Configuration: Release Any CPU ------
IanGregson.elBlog.Util -> C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\IanGregson.elBlog.Util\bin\Release\IanGregson.elBlog.Util.dll
------ Build started: Project: iangregsondotcom, Configuration: Release Any CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:TRACE /reference:bin\FreetextBox.dll /reference:"C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\IanGregson.elBlog.Util\bin\Release\IanGregson.elBlog.Util.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.Mobile.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.Services.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:bin\UrlRewritingNet.UrlRewriter.dll /debug:pdbonly /optimize+ /out:obj\Release\iangregsondotcom.dll /target:library Administration\ChangePassword.aspx.cs Administration\ChangePassword.aspx.designer.cs Administration\Default.aspx.cs Administration\Default.aspx.designer.cs Administration\EditItem.aspx.cs Administration\EditItem.aspx.designer.cs Administration\EditItem1.aspx.cs Administration\EditItem1.aspx.designer.cs BlogCategories.ascx.cs BlogCategories.ascx.designer.cs CreateUser.aspx.cs CreateUser.aspx.designer.cs Default.aspx.cs Default.aspx.designer.cs ForgotPassword.aspx.cs ForgotPassword.aspx.designer.cs Login.aspx.cs Login.aspx.designer.cs Logout.aspx.cs Logout.aspx.designer.cs MasterPage.master.cs MasterPage.master.designer.cs myTest.aspx.cs myTest.aspx.designer.cs PermaLink.aspx.cs PermaLink.aspx.designer.cs Properties\AssemblyInfo.cs Tempy.aspx.cs Tempy.aspx.designer.cs

Compile complete -- 0 errors, 0 warnings
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2403,9): error MSB3021: Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\IanGregson.elBlog.Util\bin\Release\IanGregson.elBlog.Util.dll" to "bin\IanGregson.elBlog.Util.dll". Access to the path 'bin\IanGregson.elBlog.Util.dll' is denied.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2403,9): error MSB3021: Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\IanGregson.elBlog.Util\bin\Release\IanGregson.elBlog.Util.pdb" to "bin\IanGregson.elBlog.Util.pdb". Access to the path 'bin\IanGregson.elBlog.Util.pdb' is denied.
Done building project "iangregsondotcom.csproj" -- FAILED.
------ Build started: Project: iangregsondotcom.csproj_deploy, Configuration: Release Any CPU ------
MSBUILD : warning MSB3021: Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\.net Url Rewriting\Release\UrlRewritingNet.UrlRewriter.dll" to "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\iangregsondotcom\Bin\UrlRewritingNet.UrlRewriter.dll". Could not find a part of the path 'C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\.net Url Rewriting\Release\UrlRewritingNet.UrlRewriter.dll'.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /iangregsondotcom.csproj -p "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\iangregsondotcom" -u -f "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\iangregsondotcom.csproj_deploy\Release\\"
c:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\iangregsondotcom\Global.asax(21): warning CS0162: Unreachable code detected
Running aspnet_merge.exe ...
C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\iangregsondotcom.csproj_deploy\Release" -o iangregsondotcom.csproj_deploy -copyattrs
Successfully merged 'C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\iangregsondotcom.csproj_deploy\Release'.
Updating web.config: RootPath = C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\iangregsondotcom.csproj_deploy\Release\, ValidateSections = False, UseExternalConfigSource = False
Update of web.config Succeeded.
Done building project "iangregsondotcom.csproj_deploy.wdproj".
========== Build: 2 succeeded or up-to-date, 1 failed, 0 skipped ==========

ianinspain
Asp.Net User
Re: Web deply proj giving copy error for dll's (references)4/22/2006 12:54:04 PM

0/0

argggh! I wish i had never started this now!!!

Basically on RELEASE or DEBUG builds there are 3 errors including

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2403,9): error MSB3021: Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\IanGregson.elBlog.Util\bin\Release\IanGregson.elBlog.Util.dll" to "bin\IanGregson.elBlog.Util.dll". Access to the path 'bin\IanGregson.elBlog.Util.dll' is denied.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2403,9): error MSB3021: Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\IanGregson.elBlog.Util\bin\Release\IanGregson.elBlog.Util.pdb" to "bin\IanGregson.elBlog.Util.pdb". Access to the path 'bin\IanGregson.elBlog.Util.pdb' is denied.
MSBUILD : warning MSB3021: Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\.net Url Rewriting\Release\UrlRewritingNet.UrlRewriter.dll" to "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\iangregsondotcom\Bin\UrlRewritingNet.UrlRewriter.dll". Could not find a part of the path 'C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\.net Url Rewriting\Release\UrlRewritingNet.UrlRewriter.dll'.

But on a DEBUG build the problem with IanGregson.elBlog.Util.pdb and bin\IanGregson.elBlog.Util.dll go away!!! Which is not bad but who knows WHY the problem happens on RELEASE?

Anyway on both RELEASE and DEBUG this problem is always displayed :

MSBUILD : warning MSB3021: Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\.net Url Rewriting\Release\UrlRewritingNet.UrlRewriter.dll" to "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\iangregsondotcom\Bin\UrlRewritingNet.UrlRewriter.dll". Could not find a part of the path 'C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\.net Url Rewriting\Release\UrlRewritingNet.UrlRewriter.dll'.

Now i see why, this path is not valid! C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\.net Url Rewriting\Release\UrlRewritingNet.UrlRewriter.dll'

but why is it looking there i added it from c:\dotNet Components\.net URL writing 

Signed a very confused Ian

ianinspain
Asp.Net User
Re: Web deply proj giving copy error for dll's (references)4/22/2006 2:18:02 PM

0/0

Ok ... found a work around for the Project based web reference... As soon as i removed it from SOURCE SAFE control.... the errors disappeared on both RELEASE and DEBUG.

Scott do we have an issue with VSS??

BUT!

This one is still present.. I don't understand why it is using "\Visual Studio 2005\.net Url Rewriting\" that directory doesn't exist and never has done. ermmmm if this a bug related to using a . (dot).... is there a work around??????? help ---- here is the only error i have now below....

MSBUILD : warning MSB3021: Unable to copy file "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\.net Url Rewriting\Release\UrlRewritingNet.UrlRewriter.dll" to "C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\Projects\iangregsondotcom\iangregsondotcom\Bin\UrlRewritingNet.UrlRewriter.dll". Could not find a part of the path 'C:\Documents and Settings\Ian.IANGREGSON\My Documents\Visual Studio 2005\.net Url Rewriting\Release\UrlRewritingNet.UrlRewriter.dll'.

ianinspain
Asp.Net User
Re: Web deply proj giving copy error for dll's (references)4/22/2006 9:20:33 PM

0/0

OK I have fixed it, this is what i did but i don't understand why!

After removing the urlrewriting dll i checked the bin directory of my webapp and there was a file left over called

urlrewritingnet.urlrewriting.dll.refresh

and it contained

..\..\..\.net Url Rewriting\Release\UrlRewritingNet.UrlRewriter.dll

this is that silly directory that never existed!!

So i deleted this manually... then i readded the reference to the dll back in and just done a build solution on DEBUG and RELEASE and both function correctly... well certainly no errors anyway...

I have no idea what the refresh is and why it was there, i can only think that either with web deployment adding put it there or it was put there when i did an upgrade from web site project (vs 2005) and web app project

This is probably going to be very silly now, but i am about to try and add all projects in the solution back into Source Safe to see if it breaks it again!

Regards

Ian




ianinspain
Asp.Net User
Re: Web deply proj giving copy error for dll's (references)4/22/2006 9:54:42 PM

0/0

Ok adding back into source control using VSS 2005... the problem comes back...  although not the urlrewriting problem.. but all the others...

So i am removing out of source control  as its a nightmare and impossible to work with....

It would be nice to be able to use source control though..

If anybody has any ideas, i would appreciated the help.

ian
m4h4r4
Asp.Net User
Re: Web deply proj giving copy error for dll's (references)5/9/2006 4:43:34 PM

0/0

ianinspain:
More info, : I am using a solution with one class library (dll that causes problem), Web application project (the new one) and web deployment project.

Anybody else receive anything like this?

I also converted my VS 2005 web site project to a VS 2005 (no version change) web application project as per the tutorial online at Scott's blog.. everything went according to plan and i can run locally without building...

Hi,

though I've installed Web Deployment Project BETA (WDP), I've still not used it.

Issue I want to share with you is about Web Application Project (WAP) and SourceSafe 2005 (SS).

Today, I've just installed WAP 1.0; the RTM one. It was just released yesterday (8 May 2006). When I used WAP for the first time, everything just worked so fine until I was trying to use SS as my source control. In my case, I have a solution with one project. Formerly, it was a Web Site Project (WSP) and then I converted it to WAP. I can successfully build it.

I dragged and dropped the solution file and the project folder from the Windows Explorer (WE) directly to SS. Suddenly, it can NOT be built with the error message saying that unable to copy the assembly, as you have encountered.

I tried googling and then found this thread, but unfortunately with no solution nor workarounds. I thought there's a bug with WAP but still found nothing about it.

Left in confusing situation, I decided to remove it from SS; removing any SS related files including bin and obj folders. Next step, I tried to add it back to SS using Visual Studio 2005 (VS) menu. Note that this time, I didn't drag and drop it from WE.

I tried to build it and, eventually, I could build it without any problem at all.

Then, I come into the occlusion that I think it's better (and recommended) to add source files to source controls using menu provided by VS; not using drag and drop directly from WE.

So, did you have the similar experience as I did?


Regards,

Maximilian Haru Raditya
ianinspain
Asp.Net User
Re: Web deply proj giving copy error for dll's (references)5/10/2006 11:29:54 PM

0/0

Hi..

Yes i used the project explorer and tried right clicking and adding to source control..

Its very strange i get the problem... i must admit ... i lost patience with it... so i decided to wait and i notice now its got a full release so i will try again..

But your problem was the same as mine.

I am glad i wasn't alone :-)

Thanks

Ian
Pravin Saindane
Asp.Net User
Re: Web deply proj giving copy error for dll's (references)7/19/2007 2:32:26 PM

0/0

Even i got the same problem.

What I Did: Delete Debug/Relese folder form project which is refered, and build the project again.

Or U may need to delete .pdb files in Main project reference OR bin dir. And build again... That's it...Yes

 

Cheers!

Saindu

 

10 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
15 Seconds : Deploying DLLs Using Web Services It will copy the DLLs to the client machine to execute locally. .... (Right Click on the Project | Select "Add Web Reference" to our "WSAppDeploy" Web ...
MSDN Windows Communication Foundation WCF Web Application - Where ... WCF Web Application - Where to deploy a dll's config file. ... I deployed the service site to the web server. Get an error complaining can not connect to ...
Bitwise Magazine :: Delphi programming - Bob Swart The final error message we then get is about a missing Borland.Eco.Ocl.ParseCore .dll, which we also should add to our reference list, with Copy Local set to ...
Data Mining - deploy project error - Interop.Excel.DLL and Interop ... Place a copy of Interop.Excel.Dll in c:\program files\microsoft office\ ... Also make sure that in your project, if you go to references and ...
Richard Dudley : Deploying Crystal Reports .NET If you're thinking “why not just manually copy the DLLs into the GAC and .... when i deploy my project in .net2005, it gives error in crystal report ...
Deploy web app with ReportViewer to hosted site EMBEDDED mode The first two .dll's were easy to copy from C:\WINDOWS\ASSEMBLY on my development machine ... You can create a Web deployment project, and then add in the . ...
[NAnt-users] [vbc] vbc : Command line error BC2012 : can't open 'C ... Apr 28, 2006 ... Copy built DLLs to the web project directories *--> Parser error trying to deploy custom part - Blackbaud User Society ... if you're not working on a BBNC machine, it's okay. after you build the project, copy the dlls and ascx to the right places on the real BBNC ...
Problem with using devexpress DLLs! - Developer Express Inc. There is no error, All DLLs in bin folder work good but I don't know how can ... When you deploy your website to a web server, you copy the ...
MSDN Visual Studio Report Controls Deploy web app with ... I also added the web reference to the project. .... The first two .dll's were easy to copy from C:\WINDOWS\ASSEMBLY on my development machine, ...




Search This Site:










webdeployment project giving ambigious match found error

copying custom files on release server - project configuration

installer for aplication web

custom configuration sections in web.config

strange behavior of web deployment project

strange encoding "feature" with web deployment project

using host headers with web deployment projects

error creating deployment project

web deployment of a web application:why the vbproj file is in the web deployment folder

issue with compilation that is driving me nuts.

custom action

copy file. error. maybe bug?

type "_xxx" exists in both "...temporary asp.net files\...dll". help!

problem while loading website

global.asax & web.config troubles

the user is not associated with a trusted sql server connection.

problem: individual assemby:.cs files

enforcing the same number of elements in web.config file section replacements

two aspx files that use one codebehind file. is that possible?

wdp includes to many files by default

web.config file section replacement

getting error: error 1014: the value for the -o option is invalid ....

error occured while validating

problem with aspnet_merge.exe

error in creating setup

can't get excludefrombuild to work....

deployment of web application using ms office com library

basic wdp setup?

wdp + wap + sub projects

web deployment projects

  Privacy | Contact Us
All Times Are GMT