Hello Infragistics Gurus,
I am trying to publish a program I have that makes use of the file, VS2010b.isl. I am able to run the program just fine in VB2102 but when I publish it, I get the error listed at the end of this file.
I did see a similar problem listed here:
http://ko.infragistics.com/community/forums/t/19745.aspx
My code has the file included in the project, the build action set as content, and the copy to output directory option set to copy if newer.
My Main_Load function has the following line included in it:
Infragistics.Win.AppStyling.StyleManager.Load("VS2010b.isl")
In fact, if I open the resources folder once it's published, there is a file called VS2010b.isl.deploy. I am also able to click the application files folder and see the file and that it is set to "Include (Auto)", the download group is set to Required and the Hash is set to include. It's probably worth noting that some of the other resources that are included in my references aren't on this list but I haven't set them to content yet and, I'm assuming the issue I'm seeing with the *.isl file can be applied to those files as well.
I'm sure this is probably a relatively easy fix but I don't know how to go about it and I'm about out of ideas as to how to proceed forward. Any help you can give me would be greatly appreciated. Thanks!
Below is the error:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************System.IO.FileNotFoundException: Could not find file 'C:\Users\JBrookley\AppData\Local\Apps\2.0\RVMHO4H5.78W\QHHBQ66B.CPJ\kavl..tion_b0352b5628df4830_0001.0000_202617774d44bbfd\VS2010b.isl'.File name: 'C:\Users\JBrookley\AppData\Local\Apps\2.0\RVMHO4H5.78W\QHHBQ66B.CPJ\kavl..tion_b0352b5628df4830_0001.0000_202617774d44bbfd\VS2010b.isl' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Infragistics.Win.AppStyling.StyleManager.Load(String fileName, Boolean validate, String styleLibraryName) at Infragistics.Win.AppStyling.StyleManager.Load(String fileName) at Kavlico_Calibration_M3_V1_0.KavCalWizard.Main_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.18063 built by: FX45RTMGDR CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll----------------------------------------Kavlico Calibration M3 V1.0 Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/JBrookley/AppData/Local/Apps/2.0/RVMHO4H5.78W/QHHBQ66B.CPJ/kavl..tion_b0352b5628df4830_0001.0000_202617774d44bbfd/Kavlico%20Calibration%20M3%20V1.0.exe----------------------------------------Microsoft.VisualBasic Assembly Version: 10.0.0.0 Win32 Version: 11.0.50709.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll----------------------------------------System Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.18034 built by: FX45RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll----------------------------------------System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll----------------------------------------System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.18036 built by: FX45RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------System.Runtime.Remoting Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34108 built by: FX45W81RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll----------------------------------------DigiTalk Assembly Version: 1.5.1.0 Win32 Version: 1.5.1.0 CodeBase: file:///C:/Users/JBrookley/AppData/Local/Apps/2.0/RVMHO4H5.78W/QHHBQ66B.CPJ/kavl..tion_b0352b5628df4830_0001.0000_202617774d44bbfd/DigiTalk.DLL----------------------------------------Infragistics4.Win.UltraWinToolbars.v13.1 Assembly Version: 13.1.20131.2027 Win32 Version: 13.1.20131.2027 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Infragistics4.Win.UltraWinToolbars.v13.1/v4.0_13.1.20131.2027__7dd5c3163f2cd0cb/Infragistics4.Win.UltraWinToolbars.v13.1.dll----------------------------------------Infragistics4.Shared.v13.1 Assembly Version: 13.1.20131.2027 Win32 Version: 13.1.20131.2027 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Infragistics4.Shared.v13.1/v4.0_13.1.20131.2027__7dd5c3163f2cd0cb/Infragistics4.Shared.v13.1.dll----------------------------------------Infragistics4.Win.v13.1 Assembly Version: 13.1.20131.2027 Win32 Version: 13.1.20131.2027 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Infragistics4.Win.v13.1/v4.0_13.1.20131.2027__7dd5c3163f2cd0cb/Infragistics4.Win.v13.1.dll----------------------------------------UIAutomationProvider Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll----------------------------------------Infragistics4.Win.UltraWinGrid.v13.1 Assembly Version: 13.1.20131.2027 Win32 Version: 13.1.20131.2027 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Infragistics4.Win.UltraWinGrid.v13.1/v4.0_13.1.20131.2027__7dd5c3163f2cd0cb/Infragistics4.Win.UltraWinGrid.v13.1.dll----------------------------------------Infragistics4.Win.Misc.v13.1 Assembly Version: 13.1.20131.2027 Win32 Version: 13.1.20131.2027 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Infragistics4.Win.Misc.v13.1/v4.0_13.1.20131.2027__7dd5c3163f2cd0cb/Infragistics4.Win.Misc.v13.1.dll----------------------------------------Infragistics4.Win.UltraWinDataSource.v13.1 Assembly Version: 13.1.20131.2027 Win32 Version: 13.1.20131.2027 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Infragistics4.Win.UltraWinDataSource.v13.1/v4.0_13.1.20131.2027__7dd5c3163f2cd0cb/Infragistics4.Win.UltraWinDataSource.v13.1.dll----------------------------------------Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.17929 built by: FX45RTMREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll----------------------------------------Infragistics.License Assembly Version: 1.0.5005.10 Win32 Version: 1.0.5005.10 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Infragistics.License/1.0.5005.10__7dd5c3163f2cd0cb/Infragistics.License.dll----------------------------------------
************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" /></configuration>
When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box.
Hello Jeremy,
Thank you for contacting Infragistics Developer Support.
From the settings you have mentioned, it seems that the .isl file should be included in your deployed application. I tried to reproduce your scenario and I was able to deploy the application without any errors just by setting the Build and the Copy properties. Can you please make sure that the VS2010b.isl file exists in the following directory:
'C:\Users\JBrookley\AppData\Local\Apps\2.0\RVMHO4H5.78W\QHHBQ66B.CPJ\kavl..tion_b0352b5628df4830_0001.0000_202617774d44bbfd'
Also please make sure that it has this exact filename.
I am looking forward to your reply.
Dimitar,
Thank you for the reply!
I checked the directory you mentioned and it shows it in correctly placed in:in C:\Users\JBrookley\AppData\Local\Apps\2.0\RVMHO4H5.78W\QHHBQ66B.CPJ\kavl..tion_b0352b5628df4830_0001.0000_202617774d44bbfd\Resources
This is likely because I have the file placed in the root directory\Resources. In the application files folder, it shows the files as Resources\VS2010b.isl and the path is correct. It looks like it's being included exactly as specified but the installation itself is looking in the wrong place.
Does the file have to be placed in the root directory or is there a way to change where the installation should be looking for it?
If you need screenshots of any of this, let me know. Thanks!
Just an update, I added the file to the main directory and it published just fine.
While this is good that it is working now, I'd like to understand why it is not publishing correctly (since the file is correct, it's linked correctly, it's just not looking for it in the specified /resources folder. If you can help me understand what might be going on, I'd appreciate it. Thanks!
Thank you for the update.
What the line “Infragistics.Win.AppStyling.StyleManager.Load("VS2010b.isl")” is trying to do is to find the VS2010b.isl file inside the default folder of your application. In your case it is:
'C:\Users\JBrookley\AppData\Local\Apps\2.0\RVMHO4H5.78W\QHHBQ66B.CPJ\kavl..tion_b0352b5628df4830_0001.0000_202617774d44bbfd\VS2010b.isl'
As the isl file isn’t there (it’s actually in the Resources folder) the application can’t find it and System.IO.FileNotFoundException is raised. What you could do to prevent this is to either place the file inside the main directory (as you have done) or to use the following line in order to load the file:
Infragistics.Win.AppStyling.StyleManager.Load("Resources\VS2010b.isl")
Please let me know if you have any additional questions.
Sorry for the delay. I had actually tried the "Resources\" part before and it didn't work, to my surprise. No idea why. I guess at this point, I'm probably not going to spend much time trying to understand the inner workings of a tiny issue with this (not sure at this point if it's an Infragistics or VB.NET issue). If you have some more things you want me to try so you guys can try and understand and resolve this issue, let me know. Otherwise, I think we can probably just move on from here.
Thanks a lot for your help!