strange error from win forms application (Failed to load resources

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everybody,

I've got a strange problem with my application (a windows application):
I've got an application that is running on a client's production.
(the system is dotnet v1.1 on windows XP sp2)

Today the application suddenly displayed a message box with this error:

Setup Error
Failed to load resources from resource file.
Please check your setup.

While the message box was displayed the application was frozen (as far as I
can tell all the threads in the application stopped working).

When I clicked the OK button my Application restarted itself which is what
it is supposed to do if an unhandled exception happens.
(And now it's working OK).

What does this error mean? My application does NOT use any resources
(except,of course, for any resources generated by the visual studio for the
forms).

The strange thing is that, as far as I can see, the message box is shown
BEFORE the exception reaches the unhandled exception handler.

Now, the real problem is that while this message box is shown the
application is NOT running.

Nadav
 
Hi

I think to troubleshoot the problem, you may try to use Assembly Binding
Log Viewer tool to see if there is any binding error.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptutorials
/html/assembly_binding_log_viewer_deployment.asp

This is a free file monitoring tool
(http://www.sysinternals.com/ntw2k/source/filemon.shtml), I would recommend
downloading it and watching what the application is doing to the hard
drive, i.e. open,close,create, etc... and you will see if it is getting any
ACCESS DENIEDs. It is pretty enlightening and should hopefully help you out
a bit.

Also based on my research, it seems that the antivirus software may have
some side effect.
Here is the related issue, you may have a take.
http://groups.google.com/group/microsoft.public.dotnet.framework/browse_thre
ad/thread/551a2faffd12563b/96e84199d0c83f36?lnk=st&q=Failed+to+load+resource
s+from+resource+file&rnum=2&hl=zh-CN#96e84199d0c83f36


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Peter,

I will try to download the Fuslogvw.exe and see if I can find the problem.

I've looked the link you provided for the related issue
and I'm not sure if this is related to my problem.
In that case (and any other case I've found on the internet) either the
application runs normally or it will not start at all.
In my case the application works, and ONCE it fails with this error message.
And after I stopped and restarted the program it continued to work normally.

Now, for all I know, maybe it was a problem reading from the harddisk that
caused the problem.

What I want to know is, is this error message shown by the dotnet runtime
itself?
(and for that matter, why doesn't the error message says WHICH resource it
failed to read)

Nadav
 
Hi

So far it is hard to confirm what throw the exception without further
troubleshooting. At a glance, I think it may be true.
I think you may try to enable the first change exception and run the
application in debug mode to observe the call stack may give us some hint.
1. Press Ctrl+Alt+E, select CLR exception and check the Break into debugger
2. press F5 to run the application.
3. If there is exception occur, the debugger will stop the application and
you can show the call stack with Ctrl+Alt+C in the break mode
For detailed information, I think you may need to contact MSPSS for dump
analysis.
http://support.microsoft.com

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Peter,
The problem is that the application is running on a user production system.
I can't very well run my program there under a debugger for several days
waiting for this problem to occur.

Nadav
 
Hi Peter,

Thanks for your reply.

This looks like what I was looking for.

One question:

In my problem ( program pops up message complaining that it failed to read a
resource)
can I get enough info from running ADPlus in hang mode after the message box
appears,
or do I have to run ADPlus in crash mode and wait for the error to happen
(this might take several days. Does attaching ADPlus to a process causes any
problems? )

Thanks
Nadav
 
Hi

Adplus is a tool which use the cdb.exe to collect the memory snapshot in
certain time.
So I think both approaches are OK.
But to identify the correct problem, I do suggest you contact MSPSS that
will help you create dump in the more proper approach according to your
scenario.
Attach ADplus to a process is just as attach a debugger, which is helping
to collect the memory snapshot.

If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top