cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bboy360
Level 3

Error loading .resources

Ok, when I'm tracing my loading of my WPF app, I'm getting the following errors on .resources. I'm not sure what to do about this. Help yo.

Telerik.Windows.Controls.resources
*** Assembly Binder Log Entry (2/18/2014 @ 11:36:07 AM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\MyAppVDI\MyApp Main\MyAppMain.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = Telerik.Windows.Controls.resources, Version=2013.3.1316.40, Culture=en, PublicKeyToken=5803cfa389c90ce7
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/MyAppVDI/MyApp Main/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = MyAppMain.exe
Calling assembly : Telerik.Windows.Controls, Version=2013.3.1316.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\MyAppVDI\MyApp Main\MyAppMain.exe.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Telerik.Windows.Controls.resources, Version=2013.3.1316.40, Culture=en, PublicKeyToken=5803cfa389c90ce7
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).


MyAppMain.resources

*** Assembly Binder Log Entry (2/18/2014 @ 11:36:06 AM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\MyAppVDI\MyApp Main\MyAppMain.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = MyAppMain.resources, Version=1.0.1.10, Culture=en, PublicKeyToken=05b259ab3b08f270
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/MyAppVDI/MyApp Main/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = MyAppMain.exe
Calling assembly : MyAppMain, Version=1.0.1.10, Culture=neutral, PublicKeyToken=05b259ab3b08f270.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\MyAppVDI\MyApp Main\MyAppMain.exe.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: MyAppMain.resources, Version=1.0.1.10, Culture=en, PublicKeyToken=05b259ab3b08f270
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/MyAppVDI/MyApp Main/en/MyAppMain.resources.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/MyAppVDI/MyApp Main/en/MyAppMain.resources/MyAppMain.resources.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/MyAppVDI/MyApp Main/en/MyAppMain.resources.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/MyAppVDI/MyApp Main/en/MyAppMain.resources/MyAppMain.resources.EXE.
LOG: All probing URLs attempted and failed.
Labels (1)
0 Kudos
(1) Reply
bboy360
Level 3

Ok, this wasn't the problem.

I figured out what went wrong.

When it checks for an application update for click-once, the program ui is hidden, or dies, or I don't know what. It doesn't exit. Yeah, I probably shouldn't have this for a installshield anyway, but shouldn't I get some kind of warning instead of it just running in the background?

if (! System.Diagnostics.Debugger.IsAttached)
{
ApplicationDeployment updateCheck = ApplicationDeployment.CurrentDeployment;
UpdateCheckInfo info = updateCheck.CheckForDetailedUpdate();
if (info.UpdateAvailable)
{
updateCheck.Update();
MessageBox.Show("The application has been upgraded, please restart.");
App.Current.Shutdown();

}
}
0 Kudos