Results 1 to 7 of 7

Thread: Random assembly names

  1. #1

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Random assembly names

    My apps always seem to have two loaded assemblies that have random 8 character names, but always the same version. Notice the first and last items in the attached pic.

    I can't seem to find any good info on where these are coming from. Anybody know?

    Thanks,
    Mike

    Edit: Here's the code I use to load the ListView
    Code:
            private void DisplayLoadedAssemblies()
            {
                Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
                foreach (Assembly a in assemblies)
                {
                    AssemblyName an = a.GetName();
                    ListViewItem item = new ListViewItem(an.Name.ToString(), 0);
                    item.SubItems.Add(an.Version.ToString());
                    this.lvAssemblies.Items.Add(item);
    
                    Debug.WriteLine(a.ToString());
                }
            }
    Attached Images Attached Images  
    Last edited by Mike Hildner; Jan 13th, 2006 at 04:24 PM.

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Random assembly names

    Post your Application's Assembly
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  3. #3

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Re: Random assembly names

    Quote Originally Posted by kasracer
    Post your Application's Assembly
    ok, now I feel stupid What do you mean my application's assembly? My application gets compiled into a .exe - surely you don't mean that? Or you mean the AssemblyInfo.cs?

    Thanks,
    Mike

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Random assembly names

    AssemblyInfo.cs is what I mean
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  5. #5

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Re: Random assembly names

    Here it is.
    Attached Files Attached Files

  6. #6
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Random assembly names

    Wow that's wierd. Your assembly looks fine to me.

    I got no idea. Maybe someone else will?

    If it's possible, you could upload the entire solution and I would try to build it.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  7. #7

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Re: Random assembly names

    Thanks for taking a look. Unfortunately I'm not allowed to upload the entire solution. It'd be quite the burden anyway, as it's complex with lots of references to our own frameworks, application blocks etc.

    I googled like crazy trying to find any info on this and could not. But I've got it narrowed down a little. I can see that a dynamically named assembly gets added to the end of list immediately after I call a web service for the first time.

    Thinking about this a little more, I was at a talk once on XML serialization and the speaker was talking about what happens. .NET will output a .cs file and compile that using cs.exe on the fly. This is (at least one reason) why cs.exe is part of the .NET redistributable.

    Interestingly, there's an entry you can make in your .config file that preserves the newly created assembly to make future stuff happen faster - I can't remember what that is, though.

    Mike

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