Results 1 to 5 of 5

Thread: Error "Cannot find the assembly..." when Deserializing

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309

    Resolved Error "Cannot find the assembly..." when Deserializing

    Hello,


    Few days I'm trying to solve this strange problem. It's giving me a headake.

    I have created class library and console aplication. When I serialize this class in console app and then desiarelize everything is fine. (console app was designed only for testing purpose)

    Then I copied all classes from class library to my other solution. When I try to desiarelize I get message:

    "Cannot find the assembly MyLibrary, Version=1.0.2140.18983, Culture=neutral, PublicKeyToken=null."

    I tryied to move these classes to new class library project and use reference to it, but I got same problem.


    Regards in advance,
    Andrius
    Last edited by Norkis; Nov 30th, 2005 at 07:31 AM.

  2. #2
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Re: Error "Cannot find the assembly..." when Deserializing

    I dont know exactly what your problem is but you can try this:

    Check your Assembly Folder! Located at

    C:\WINNT\assembly

    Your Solution is always checking your assembly cache first. Delete all versions of your assembly there and deploy your freshly build assembly version to the cache.

    BTW: I prefer to version my assembly myself and not have Vs do it. So I change the 1.0.*.* always to a fix number and do the versioning myself. Like 1.0.0.0

    HTH,

    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309

    Re: Error "Cannot find the assembly..." when Deserializing

    In C:\WINNT\assembly there is no such DLL and when I tried to copy there it says that name itn's strongly typed.



    Quote Originally Posted by Sgt-Peppa
    I dont know exactly what your problem is but you can try this:

    Check your Assembly Folder! Located at

    C:\WINNT\assembly

    Your Solution is always checking your assembly cache first. Delete all versions of your assembly there and deploy your freshly build assembly version to the cache.

    BTW: I prefer to version my assembly myself and not have Vs do it. So I change the 1.0.*.* always to a fix number and do the versioning myself. Like 1.0.0.0

    HTH,

    Stephan

  4. #4
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Re: Error "Cannot find the assembly..." when Deserializing

    Oh Ok I see.
    Well than that should not be your problem.
    Sorry for not being more of a help. I dont have any other ideas.

    You could try to sign your assembly with a strong name key and then use the gacutil to deploy it to the Assembly cache but actually I doubt that it will solve your problem.

    Sorry again,

    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309

    Re: Error "Cannot find the assembly..." when Deserializing

    RESOLVED. Hard one...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width