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
"Peter Huang" [MSFT] - 10 Aug 2005 03:29 GMT
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

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Nadav Popplewell - 10 Aug 2005 08:29 GMT
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
"Peter Huang" [MSFT] - 11 Aug 2005 04:22 GMT
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

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Nadav Popplewell - 11 Aug 2005 06:36 GMT
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
Peter Huang" [MSFT]" wrote:
> Hi
>
[quoted text clipped - 17 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 12 Aug 2005 06:43 GMT
Hi
Commonly we use the tool below to create dump for further
How to use ADPlus to troubleshoot "hangs" and "crashes" (286350)
http://support.microsoft.com/default.aspx?scid=KB;EN-US;286350
To analyze the dump you may need to contact MSPSS.
You may reach MSPSS via the link below.
http://support.microsoft.com
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Nadav Popplewell - 12 Aug 2005 07:56 GMT
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
"Peter Huang" [MSFT] - 15 Aug 2005 06:04 GMT
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

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
toma - 24 Aug 2005 14:45 GMT
Hi
Have u tried to install Service Pack 1 for .Net Framework 1.1?
That fixed a similar problem for me:)
http://www.microsoft.com/downloads/details.aspx?familyid=A8F5654F-088E-40B2-BBDB
-A83353618B38&displaylang=en
Toma
> Hi everybody,
>
[quoted text clipped - 26 lines]
>
> Nadav