Re: Version error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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" <HarishShikhare@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:707F0044-79A4-48D5-BEB9-827E31783748@xxxxxxxxxxxxxxxx
> 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" <HarishShikhare@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
>> message news:7704F359-F6A1-4D55-B7BE-596F4B9E362F@xxxxxxxxxxxxxxxx
>> > 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
>> >>
>> >>
>> >>
>> >>
>>
>>
>>


.



Relevant Pages

  • Re: Strange Problems with VBA
    ... This causes a conflict when you try to rename a form to the ... "Forms" collection or run the test form and save a reference to the object ... it you can find the reference and destroy the form and set it's reference to ... "David C. Holley" wrote in message ...
    (microsoft.public.office.developer.vba)
  • Re: Darwin, Evolution, the Animal Kingdom, and Man
    ... >>reference are not confreres of mine and probably not of yours. ... >>are there in the history of EAB which do not involve animal training? ... Thank you for evading a simple, straightforward question, David. ...
    (sci.cognitive)
  • Re: Deprecating reload() ???
    ... David> every reference to objects in the old module with references to ... David> the new objects. ... reference count to urllib, which decrements the reference count to its dict, ... David> some options to the reload function. ...
    (comp.lang.python)
  • RE: use vlook to show the value of a cell using a formula
    ... "David" wrote: ... looking for was in column A, I only needed to reference that column. ... deleting the row/column that the referenced cell is in, ... I have entered data on Sheet 1 in cell b2. ...
    (microsoft.public.excel.misc)
  • Re: How can I retreive computer information from Active Directory
    ... David, thanks for the information, I am pretty new to programming and I was ... wondering if you could reference me to any sites that would give me some ... insight with using VBA or WMI to retreive the information. ... > You can off course reference WMI and use VBA code ...
    (microsoft.public.access.modulesdaovba)