Ticket T471877
Visible to All Users

System.IO.FileNotFoundException error

created 8 years ago

Hi,

I created a windows form which included devexpresscontrols (xtraeditors simplebutton). It works fine on my computer (windows 10 ) But I sent it to it my friend who uses windows 7 PC and it didn't work. I looked eventviewer log and here it is :

Application: BoxContentInfo.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
   at System.Reflection.RuntimeAssembly._nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(System.Reflection.AssemblyName, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean, Boolean, Boolean)
   at System.Reflection.RuntimeAssembly.InternalLoad(System.String, System.Security.Policy.Evidence, System.Threading.StackCrawlMark ByRef, IntPtr, Boolean)
   at System.Reflection.RuntimeAssembly.InternalLoad(System.String, System.Security.Policy.Evidence, System.Threading.StackCrawlMark ByRef, Boolean)
   at System.Reflection.Assembly.Load(System.String)
   at DevExpress.Utils.DxImageAssemblyUtil.LoadImageAssembly()
   at DevExpress.Utils.DxImageAssemblyUtil…ctor()
   at DevExpress.Utils.DxImageAssemblyUtil.get_Instance()
   at DevExpress.Utils.DxImageUriParser.DoParse(System.String)
   at DevExpress.Utils.DxImageUri.OnChanged()
   at DevExpress.Utils.DxImageUri.RaiseChanged(DevExpress.Utils.ImageUriChangedEventArgs)
   at BoxContentInfo.Form1.InitializeComponent()
   at BoxContentInfo.Form1…ctor()
   at BoxContentInfo.Program.Main()

Answers approved by DevExpress Support

created 8 years ago

Hello,

It looks like you did not deploy the DevExpress.Imges dll with your application. The easiest way to make sure it is included is to set the Copy Local property for all of your application references to True.

Additionally, you can try using the Assembly Deployment Tool to gather all the required assemblies and publish them with your application.

See also:
How to deploy WinForms applications on client machines

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.