473,231 Members | 1,868 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,231 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 2746
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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.