HighTechTalks DotNet Forums  

Any solutions?

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss Any solutions? in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Any solutions? - 11-27-2003 , 09:15 AM






Hi.
I have seen alot of cases on google where people having the same
problem, but I have not seen a comprehensive solution yet. I really
hope someone can solve this once and for all.

I have created a SmartClient (No touch deployment) and it runs Ok. But
when I change the program and retry it fails the first time.

"An unhandled exception of type 'Systme.IO.FileLoadException' occurred
in IEexec.exe."
"The located assembly's manifest definition with name
'Application.exe' does not match the assembly reference."

When trying a second time, reloading the URL from IE, it works fine.
If I change the program and Deletes the temporary internet files and
retry, it also works fine.

I have set up the security permissions for the assembly (public key)
to full trust, so I am pretty sure it has nothing to do with
permissions.

Thanks in advance.

Reply With Quote
  #2  
Old   
Noonu
 
Posts: n/a

Default Re: Any solutions? - 11-27-2003 , 02:33 PM






Not sure if this is anything related, but...

AssemblyInfo.cs by default auto increments the build no (using a *)

eg 1.0.0.*

As this changes on each compile, if you compile one assembly without the
other something similar happens. not sure if this is in anyway related but
you could give it a whirl (ie fix the version no to 1.0.0.0, not 1.0.0.*
"pfurb" <leonardfurby (AT) hotmail (DOT) com> wrote

Quote:
Hi.
I have seen alot of cases on google where people having the same
problem, but I have not seen a comprehensive solution yet. I really
hope someone can solve this once and for all.

I have created a SmartClient (No touch deployment) and it runs Ok. But
when I change the program and retry it fails the first time.

"An unhandled exception of type 'Systme.IO.FileLoadException' occurred
in IEexec.exe."
"The located assembly's manifest definition with name
'Application.exe' does not match the assembly reference."

When trying a second time, reloading the URL from IE, it works fine.
If I change the program and Deletes the temporary internet files and
retry, it also works fine.

I have set up the security permissions for the assembly (public key)
to full trust, so I am pretty sure it has nothing to do with
permissions.

Thanks in advance.



Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: Any solutions? - 11-28-2003 , 05:07 AM



Thanks for answering.

I do not think it is related. I am using only one assebly and it has a
fixed verionsnumber 1.0.0.1.

If i compare the manifest of an old version and a new version(using
ILDasm) the only thing that has been changed is the MVID...

..module MyApplication.exe
// MVID: {016013D1-2511-4636-BD6F-F2EE3E668797}

Reading about CLR, and how it identifies assemblies, have not directed
me closer to the solution. CLR should be able to handle this.

Anyone, any suggestions.

Reply With Quote
  #4  
Old   
Anthony Coelho
 
Posts: n/a

Default Re: Any solutions? - 12-11-2003 , 10:38 AM



pfurb,

I have the same problem, have you found a solution?

Thanks,
Anthony

"pfurb" <leonardfurby (AT) hotmail (DOT) com> wrote

Quote:
Hi.
I have seen alot of cases on google where people having the same
problem, but I have not seen a comprehensive solution yet. I really
hope someone can solve this once and for all.

I have created a SmartClient (No touch deployment) and it runs Ok. But
when I change the program and retry it fails the first time.

"An unhandled exception of type 'Systme.IO.FileLoadException' occurred
in IEexec.exe."
"The located assembly's manifest definition with name
'Application.exe' does not match the assembly reference."

When trying a second time, reloading the URL from IE, it works fine.
If I change the program and Deletes the temporary internet files and
retry, it also works fine.

I have set up the security permissions for the assembly (public key)
to full trust, so I am pretty sure it has nothing to do with
permissions.

Thanks in advance.



Reply With Quote
  #5  
Old   
alcoelho
 
Posts: n/a

Default Re: Any solutions? - 12-11-2003 , 11:02 AM




pfurb,

I am having the exact same problem, one thing I noticed as well is i
you just close and reopen your browser, you do not get the exception
Have you found a resoltution? I am still searching for one as well....

Anthon

alcoelh
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message120200.htm


Reply With Quote
  #6  
Old   
AT
 
Posts: n/a

Default Re: Any solutions? - 12-15-2003 , 02:09 AM



Hi Anthony.

I am sorry, but I have not found a solution yet.

I hope that someone can shed a light on this problem...

br/

Reply With Quote
  #7  
Old   
theStrack
 
Posts: n/a

Default Re: Any solutions? - 01-10-2004 , 04:25 AM




Hi,

The problem you're running into has to do with the versioning chec
that the Global Assembly Cache does. Since your app isn't strong-named
the only thing the GAC checks for a version is the URL/path. If it'
the same, it assumes that the version is the same. Well, the version i
different, so it's referencing something that isn't there any longer.

Long story short, the best way to resolve this is to Strong Name you
assemblies. It's easy to do, AND it will cut down on the number o
version checks (round trips) that the GAC is doing for each satellit
assembly you may have.

A couple great articles:

http://tinyurl.com/34guj

http://tinyurl.com/2yyaq


I haven't used this component, but it looks really promising:

http://tinyurl.com/2u76r

-Enjoy

theStrac
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message120200.htm



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.