473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Version error

I am getting the following error:

Warning: The dependency 'ShoppingCart, Version=1.0.1895.27037,
Culture=neutral' in project 'www.sitename.com' cannot be copied to the run
directory because it would overwrite the reference 'ShoppingCart,
Version=1.0.0.0, Culture=neutral'.

I changed [assembly: AssemblyVersion("1.0.*")] to [assembly:
AssemblyVersion("1.0.0")] in AssemblyInfo.cs, but the error lies elsewhere.

Any ideas would be appreciated.

Thanks.

David

Jul 21 '05 #1
5 2758
David,

I would first check following things,

1. using ILDASM Tool find out metadata information for the referenced
assemblies.
esp. ShoppingCart.
2. How are you referencing ShoppingCart assembly in your application ?
are you are manually adding the reference and giving the path to the some
directory or you are loading it from GAC

3. If you are doing step 2then check references section of your applicaiton
and find out the reference of shopping cart and click F4.
This will open properties if Copy local attributes is true then make it false.

and see if the same error persisits.

4. You can also try with binding redirect elelment from application config
file.
HTH

Harish Shikhare

"aualias" wrote:
I am getting the following error:

Warning: The dependency 'ShoppingCart, Version=1.0.1895.27037,
Culture=neutral' in project 'www.sitename.com' cannot be copied to the run
directory because it would overwrite the reference 'ShoppingCart,
Version=1.0.0.0, Culture=neutral'.

I changed [assembly: AssemblyVersion("1.0.*")] to [assembly:
AssemblyVersion("1.0.0")] in AssemblyInfo.cs, but the error lies elsewhere.

Any ideas would be appreciated.

Thanks.

David

Jul 21 '05 #2
Harish,

I'm confused...

The version that is referenced in the application is Version=1.0.0.0, which
should be the latest version (I got rid of the * in AssemblyInfo.cs after I
started having problems). I am referencing the shoppingcart dll by browsing
for the project and going into the obj directory and taking that copy.

By looking at the manifest the versions should be the same - 1.0.0.0 - I am
referencing the newest version. I did a build of the shopping cart, deleted
the reference in the web application, and then re-referenced it. No luck.

Somewhere, either VisualStudio or .NET is holding a reference to an old
version and attempting to use that version of the dll. I would love to
understand what is going on here.

Thanks for your reply.

David

"Harish Shikhare" <Ha************@discussions.microsoft.com> wrote in
message news:77**********************************@microsof t.com...
David,

I would first check following things,

1. using ILDASM Tool find out metadata information for the referenced
assemblies.
esp. ShoppingCart.
2. How are you referencing ShoppingCart assembly in your application ?
are you are manually adding the reference and giving the path to the some
directory or you are loading it from GAC

3. If you are doing step 2then check references section of your
applicaiton
and find out the reference of shopping cart and click F4.
This will open properties if Copy local attributes is true then make it
false.

and see if the same error persisits.

4. You can also try with binding redirect elelment from application config
file.
HTH

Harish Shikhare

"aualias" wrote:
I am getting the following error:

Warning: The dependency 'ShoppingCart, Version=1.0.1895.27037,
Culture=neutral' in project 'www.sitename.com' cannot be copied to the
run
directory because it would overwrite the reference 'ShoppingCart,
Version=1.0.0.0, Culture=neutral'.

I changed [assembly: AssemblyVersion("1.0.*")] to [assembly:
AssemblyVersion("1.0.0")] in AssemblyInfo.cs, but the error lies
elsewhere.

Any ideas would be appreciated.

Thanks.

David

Jul 21 '05 #3
David,

Try following steps.

1. Close Visual Studio.NET IDE
2. IISreset /stop
3. Delete Contents of VSWebCache directory (This is the directory created
under \Documents and Settings \Your login \VSWebCache\Machine Name)
4. IISreset /start
5. open IDE and try to recompile the project

Harish Shikhare
"aualias" wrote:
Harish,

I'm confused...

The version that is referenced in the application is Version=1.0.0.0, which
should be the latest version (I got rid of the * in AssemblyInfo.cs after I
started having problems). I am referencing the shoppingcart dll by browsing
for the project and going into the obj directory and taking that copy.

By looking at the manifest the versions should be the same - 1.0.0.0 - I am
referencing the newest version. I did a build of the shopping cart, deleted
the reference in the web application, and then re-referenced it. No luck.

Somewhere, either VisualStudio or .NET is holding a reference to an old
version and attempting to use that version of the dll. I would love to
understand what is going on here.

Thanks for your reply.

David

"Harish Shikhare" <Ha************@discussions.microsoft.com> wrote in
message news:77**********************************@microsof t.com...
David,

I would first check following things,

1. using ILDASM Tool find out metadata information for the referenced
assemblies.
esp. ShoppingCart.
2. How are you referencing ShoppingCart assembly in your application ?
are you are manually adding the reference and giving the path to the some
directory or you are loading it from GAC

3. If you are doing step 2then check references section of your
applicaiton
and find out the reference of shopping cart and click F4.
This will open properties if Copy local attributes is true then make it
false.

and see if the same error persisits.

4. You can also try with binding redirect elelment from application config
file.
HTH

Harish Shikhare

"aualias" wrote:
I am getting the following error:

Warning: The dependency 'ShoppingCart, Version=1.0.1895.27037,
Culture=neutral' in project 'www.sitename.com' cannot be copied to the
run
directory because it would overwrite the reference 'ShoppingCart,
Version=1.0.0.0, Culture=neutral'.

I changed [assembly: AssemblyVersion("1.0.*")] to [assembly:
AssemblyVersion("1.0.0")] in AssemblyInfo.cs, but the error lies
elsewhere.

Any ideas would be appreciated.

Thanks.

David


Jul 21 '05 #4
Hi Harish,

I put all the projects involved in the same solution, then went through them
and recompiled the ones that did not depend on anything else. I then
deleted these dependencies and put them back, using the add project instead
of adding the dll. I worked my way up the chain, recompiling and then
updating those dependencies. Seems to be working...

I did try deleting the cache, but without any luck. I guess that while I am
still working on the code, I should install all the dependent projects into
the solution. VisualStudio seems to keep the dependencies updated.

Thanks for your help.

David
"Harish Shikhare" <Ha************@discussions.microsoft.com> wrote in
message news:70**********************************@microsof t.com...
David,

Try following steps.

1. Close Visual Studio.NET IDE
2. IISreset /stop
3. Delete Contents of VSWebCache directory (This is the directory
created
under \Documents and Settings \Your login \VSWebCache\Machine Name)
4. IISreset /start
5. open IDE and try to recompile the project

Harish Shikhare
"aualias" wrote:
Harish,

I'm confused...

The version that is referenced in the application is Version=1.0.0.0,
which
should be the latest version (I got rid of the * in AssemblyInfo.cs after
I
started having problems). I am referencing the shoppingcart dll by
browsing
for the project and going into the obj directory and taking that copy.

By looking at the manifest the versions should be the same - 1.0.0.0 - I
am
referencing the newest version. I did a build of the shopping cart,
deleted
the reference in the web application, and then re-referenced it. No
luck.

Somewhere, either VisualStudio or .NET is holding a reference to an old
version and attempting to use that version of the dll. I would love to
understand what is going on here.

Thanks for your reply.

David

"Harish Shikhare" <Ha************@discussions.microsoft.com> wrote in
message news:77**********************************@microsof t.com...
> David,
>
> I would first check following things,
>
> 1. using ILDASM Tool find out metadata information for the referenced
> assemblies.
> esp. ShoppingCart.
>
>
> 2. How are you referencing ShoppingCart assembly in your application ?
> are you are manually adding the reference and giving the path to the
> some
> directory or you are loading it from GAC
>
> 3. If you are doing step 2then check references section of your
> applicaiton
> and find out the reference of shopping cart and click F4.
> This will open properties if Copy local attributes is true then make it
> false.
>
> and see if the same error persisits.
>
> 4. You can also try with binding redirect elelment from application
> config
> file.
>
>
> HTH
>
> Harish Shikhare
>
> "aualias" wrote:
>
>> I am getting the following error:
>>
>> Warning: The dependency 'ShoppingCart, Version=1.0.1895.27037,
>> Culture=neutral' in project 'www.sitename.com' cannot be copied to the
>> run
>> directory because it would overwrite the reference 'ShoppingCart,
>> Version=1.0.0.0, Culture=neutral'.
>>
>> I changed [assembly: AssemblyVersion("1.0.*")] to [assembly:
>> AssemblyVersion("1.0.0")] in AssemblyInfo.cs, but the error lies
>> elsewhere.
>>
>> Any ideas would be appreciated.
>>
>> Thanks.
>>
>> David
>>
>>
>>
>>


Jul 21 '05 #5
One other thing, if you can, use only project references instead of
referencing the .dll directly. That allows VS to properly determine
the correct version numbers. Only use direct .dll references if you
don't have access to the project.

Nov 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Shufen | last post by:
Hi, I'm a newbie that just started to learn python, html and etc. I have some questions to ask and hope that someone can help me on. I'm trying to code a python script (with HTML) to get...
8
by: Siemel Naran | last post by:
Hi. I have a table of products and versions, and these 2 columns are the unique key. My challenge is to write a SQL statement to find the latest version of each product. My solutions below...
1
by: sreak | last post by:
Need to find the cause of the following error: The sample code goes as follows:( file name version.cpp ) #include <iostream> struct version { int val; }; int main()
9
by: shorti | last post by:
I reviewed a similar post on an older version of DB2. I was wondering if there was anything available now that is more precise in gathering the db2 version for the new v8 calls. I am running...
3
by: Shadow Lynx | last post by:
At the bottom of the default Error page that appears when Unhandled Exceptions occur, what exactly is the difference between the "Microsoft ..Net Framework Version" and the "ASP.NET Version"? I...
4
by: Mike L | last post by:
Error occurs on "System.Deployment.Application.ApplicationDeployment.CurrentDeployment" ** Here is my code private void frmMain_Load(object sender, System.EventArgs e) {...
1
by: Sky | last post by:
Yesterday I was told that GetType(string) should not just be with a Type, but be Type, AssemblyName. Fair enough, get the reason. (Finally!). As long as it doesn't cause tech support problems...
8
by: schaf | last post by:
Hi Ng! My application (version 1 a1) communicates with a service (version 1 s1). Now I would like to update the service and create a service version 2 (s2). The new function calls within s2 are...
2
by: rajendiran | last post by:
project is working fine in localhost. when i upload server i got the error Server Error in '/' Application. -------------------------------------------------------------------------------- ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.