473,809 Members | 2,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FileLoadExcepti on when launching new version of exe via href

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

The error reads...An exception 'System.IO.File LoadException' 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 1842
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you are getting a FileLoadExcepti on
when trying to launch a new version of an .exe via a href. If there is any
misunderstandin g, 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 FileLoadExcepti on
when trying to launch a new version of an .exe via a href. If there is any
misunderstandin g, 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 FileLoadExcepti on.

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
1745
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 main C# application I have setup a project reference to this DLL. Im able to reference these managed .DLL classes from within my code without problem.
1
332
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 'System.IO.FileLoadException' has occured in IEExec.exe. 2nd attempt works fine. Its just the initial download after updating the .exe. Thanks in advance.
4
391
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 '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
5
1511
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 actual .exe name. ( most of which don't exist ) eg; 2005-03-01 04:47:35 10.2.5.229 GET /Components/Softix.Platform.Application.Startup.exe - 80 - 10.2.5.232 200 0 0 16621 314 15 2005-03-01 04:47:40 10.2.5.229 GET
2
368
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 used to record requests: a user can send their personal ID to the web service, and this is stored in a database. Is is possible to launch this request from a hyperlink? What other options have I got in terms of launching this service from a...
6
7592
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. Additional information: Unverifiable assembly 'FrameGrabber' failed policy check. The FrameGrabber assembly is a C++ managed DLL.
1
3071
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 to instantiate an object from the Novell.Directory.LDAP namespace: "Eine nicht behandelte Ausnahme des Typs 'System.IO.FileLoadException' ist in system.windows.forms.dll aufgetreten." meaning
0
2381
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 created, I opened the class's desinger and added an installer link at the bottom of the Properties window. Then save and build the project. The problem occurrs when I ran "installutil.exe myservice.exe" in a Solution Explorer. I got an error:
1
4166
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 occuring intermittently. This is the fusion log entry, and I am confused: *** Assembly Binder Log Entry (1/4/2005 @ 9:20:51 AM) *** The operation failed. Bind result: hr = 0x80070005. Access is denied.
10
6984
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 of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
0
10643
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10391
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10121
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3862
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.