Why am I having problems with compiles??

  • Thread starter Thread starter Aaron Ackerman
  • Start date Start date
A

Aaron Ackerman

I am having very odd problems with running a very simplie n-Tier
Duamish-type Win Forms app.
I will often encounter problems with me having to compile each tier,
starting with the Data Access Layer and working up to the UI just to get the
project to run. (I am using .NET 2003 by the way).


Many times I get this error:
"Cannot copy assembly 'MyAssembly' to file 'MyAssemblyFile' The process
cannot access the file because it is being used by another process."
Which I know is a known bug.


And lately I have been getting:
"Value of type 'MyDataLayer.MyTypedDataSet' cannot be converted to
'MyDataLayer.MyTypedDataSet'" ---Say What???
(And yet the app still runs)


I have all the appropriate references on my layers...

These typed datasets are turning out to be ahuge pain in the butt and I
honestly don't know if it is worth it to use them any more.
 
Hello Aaron,

Thanks for your post. As I understand, when you try to build a VS.NET
solution comprising of several projects (n-Tier), VS.NET locks an assembly
and fails to build it. Please correct me if there is any misunderstanding.

Do you build multiple projects to the same directory? If so, the
problemthis issue can be caused if an assembly compiles to more than 64K in
size and if projects are being compiled to the same output folder. This
issue is discussed in the following KB article,

BUG: "Could Not Copy Temporary Files to the Output Directory" Error Message
When You Build a Solution That Contains Multiple Projects
http://support.microsoft.com/?id=313512

Please let me know if the resolution in KB article 313512 resolves the
issue.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top