DevExpress - windows forms application1 has encountered a problem and needs to close?
I've playing around with Dev开发者_如何转开发Express gauges. Works fine on my computer, yet when I build the .exe file and give it to someone, his computer shows "windows forms application1 has encountered a problem and needs to close".
Any ideas what might be causing it? Thanks!
There's a variety of reasons why this could be happening.
1) .NET framework isn't installed correctly or the version you developed the application does not match the end machine .NET version.
2) DevExpress puts the assemblies on your Global Assembly Cache. The application running on the end machine must a way to find these assemblies.
In this case you have 2 choices:
- Place the DevExpress DLLs you are referencing in the same directory the application is running (recommended)
- Install DevExpress / Copy the DLLs to GAC on the end machine
精彩评论