473,385 Members | 1,736 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,385 software developers and data experts.

FileLoadException when launching new version of exe via href

Does anyone know what causes and how to prevent getting
System.IO.FileLoadException everytime
you launch a new version of an .exe via a href. ?

The error reads...An exception 'System.IO.FileLoadException' has
occured in IEExec.exe.

2nd attempt works fine. Its just the initial download after updating the .exe.

I've seen various other people having the same problem, but no explanations
or solutions. I also read somewhere, though i can't remember where, that this
was a known issue and would be fixed in a later version of .net, however it
still seems to be present in visual studio 2005, running .net framework v2.0

Thanks in advance.
Cheers.
Nov 22 '05 #1
4 1808
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you are getting a FileLoadException
when trying to launch a new version of an .exe via a href. If there is any
misunderstanding, please feel free to let me know.

Basically with Automatic setting in the browser, IE may or may not ask a
file. It's basing on it's own internal algorithm. In the case where we use
to go to a page, then again, just hitting enter to go request for the same
file again, it does NOT request for the file. In Framework 1.1 we introduce
this hash value check for security purposes. Using IE on the client machine
and browse to a .net EXE, MIME filter stores a hash value about this .NET
EXE. MIME Filter's hash value changes when IE makes the request.

Now we close the .NET EXE and leaves IE open. We go to the server and
upload newer version of the .NET EXE. Go back machine, and use the SAME
browser and hit Enter to get the .NET EXE. The browser did NOT make the
request for the .NET EXE with the setting automatic. It sends ieexec/fusion
the one it has in the cache. Fusion will ask WININET to check to the server
if the server has a newer version. Server returns a new file and when it
performs a has check, it did not match with the MIME Filter and thus throws
the exception. WININET is a component of IE uses for requesting file. When
fusion asks WININET to request for a file, WININET still respecting the
settings in IE. But since it's a new process (IEEXEC.exe ) is requesting
for the file, it went and ask the server.

Please note that if we close IE and then reopen, it's a new process and
also with the Automatic setting will request if the server has a new file
or not. It's quite a bit of information, if you aren't clear on any of the
above, please
let me know. Reference about Fusion always ask for .NET assembly that is
not strong named:

http://blogs.gotdotnet.com/alanshi/C...bly%20Download

This issue hasn't been fixed yet. Sorry for the inconvenience.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #2
Thanks for taking the time to give such a detailed reply. Very informative.

I can confirm that requesting the new version in a new instance of IE fixes
the problem.

This answer at least confirms its a known issue and not something ive done
incorrectly. I now understand the problem and can suggest a work around,
even if it is to just launch a new instance of IE on a regular basis.

Just to clarify though...

This is a known issue that will be fixed at some point ? If so, do you know
when ?

This problem results from how IE caches files, and isn't really anything to
do with the .net framework itself.

Thanks again. Much appreciated.


"Kevin Yu [MSFT]" wrote:
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you are getting a FileLoadException
when trying to launch a new version of an .exe via a href. If there is any
misunderstanding, please feel free to let me know.

Basically with Automatic setting in the browser, IE may or may not ask a
file. It's basing on it's own internal algorithm. In the case where we use
to go to a page, then again, just hitting enter to go request for the same
file again, it does NOT request for the file. In Framework 1.1 we introduce
this hash value check for security purposes. Using IE on the client machine
and browse to a .net EXE, MIME filter stores a hash value about this .NET
EXE. MIME Filter's hash value changes when IE makes the request.

Now we close the .NET EXE and leaves IE open. We go to the server and
upload newer version of the .NET EXE. Go back machine, and use the SAME
browser and hit Enter to get the .NET EXE. The browser did NOT make the
request for the .NET EXE with the setting automatic. It sends ieexec/fusion
the one it has in the cache. Fusion will ask WININET to check to the server
if the server has a newer version. Server returns a new file and when it
performs a has check, it did not match with the MIME Filter and thus throws
the exception. WININET is a component of IE uses for requesting file. When
fusion asks WININET to request for a file, WININET still respecting the
settings in IE. But since it's a new process (IEEXEC.exe ) is requesting
for the file, it went and ask the server.

Please note that if we close IE and then reopen, it's a new process and
also with the Automatic setting will request if the server has a new file
or not. It's quite a bit of information, if you aren't clear on any of the
above, please
let me know. Reference about Fusion always ask for .NET assembly that is
not strong named:

http://blogs.gotdotnet.com/alanshi/C...bly%20Download

This issue hasn't been fixed yet. Sorry for the inconvenience.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #3
Hi,

Currently, I'm not sure when it is going to be fix. But thanks for sharing
your experience with all the people here. If you have any questions, please
feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #4
Hi,

I am also facing similler problem. My problem is I have web application
which is loading perticular dll. If I access this web application from some
machine other than one on which it is installed, then i get exception with no
other information then one question mark in ex.Message ("?"). If I do
ex.ToString() I get FileLoadException.

But once web site is launched from the same machine in which installation is
done then then onwards it don’t give exception **even if it is accessed from
from any other machine**.

I am working on this problem since last two days but not able to find
solution. Is it problem with framework?

Thanks
Prafulla.

"Kevin Yu [MSFT]" wrote:
Hi,

Currently, I'm not sure when it is going to be fix. But thanks for sharing
your experience with all the people here. If you have any questions, please
feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Daniel Mori | last post by:
Im at a loss on where to proceed next. I wonder if anyone can help me. I have a managed C++ DLL is basically a thin wrapper around several unmanaged classes. This DLL builds fine. In my...
1
by: ptass | last post by:
Does anyone know what causes and how to prevent getting System.IO.FileLoadException everytime you launch a new version of an .exe via a href. ? The full error reads...An exception...
4
by: ptass | last post by:
Does anyone know what causes and how to prevent getting System.IO.FileLoadException everytime you launch a new version of an .exe via a href. ? The error reads...An exception...
5
by: ptass | last post by:
If i create a simple windows form .exe then launch it via a href, ( simple one touch deployment ), why does the .net framework/iis search in multiple places and for multiple files derived from the...
2
by: Steve Barker | last post by:
Hi guys, I have written a web service, but I want clients to be able to consume it without having the .NET framework installed on their PC. The web service doesn't return any values; it is just...
6
by: Ken Varn | last post by:
I am trying to remote debug a C# application but the debugger is reporting the following exception: An unhandled exception of type 'System.IO.FileLoadException' occurred in Unknown Module....
1
by: Fabian Aichele | last post by:
Hello! When trying to use Novell's C# LDAP library (from http://www.novell.com/coolsolutions/cooldev/features/a_net_cplus_ldap_library_cdev.html) the following exception occurs as soon as I try...
0
by: Yueming | last post by:
Hello, I am using Visual Studio .NET 2003 (7.1) C++ on Windows XP. I created a project using Windows Service (.NET). I used all the default except my project name. After the project is...
1
by: Jeremy Chapman | last post by:
Sometimes users are reporting that they receive a FileLoadException error saying that access to a dll is denied. This has occured after strong naming my dlls for my web apps, and it seems to be...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.