问题描述:

Hello Everyone,

I am getting the error as shown in the picture above.It says DevXpress.XtraEditors v11.1 not found.I was getting this error when I tried executing my application on other machines.I don't know why I am getting this error.I haven't used DevXpress Controls anywhere in my application.If I remove DevXpress references I get more errors when I haven't used DevXpress anywhere.Can anyone help me get rid of this error.

Thanks

网友答案:

The error message tells you exactly what the problem is. Your application can't find the DevExpress 11.1 class libraries (DLL files) on the machines you're deploying to.

The reason it works on your development machine and not on the target deployment machines is because the DevExpress installation registers the DLL's with the .Net GAC - Global Assembly Cache.

Somewhere your project must be referencing and using a control from the XtraEditors suite. Double check your project references to be sure, it might also be worth doing a find all files operation on your project and see if any of your classes are using the XtraEditors namespace.

If you hadn't referenced and used one of the XtraEditor controls you wouldn't get this issue. You might find that DevExpress itself inserted a control upon project creation, or perhaps you accidentally used one.

For future reference, under your references if you do need to include the DLL with your project you can expand your references and choose to copy to local = true .

网友答案:

1) remove all reference of devexpress from your project.

2) go to properties folder of your project remove licenses.licx

3) Clean your solution and build

网友答案:

@Daniel Lane Thank you very much.I finally solved the error.Actually the mistake was mine,after scrutinizing the project I found out that I had used DevXpress label control on a form.I replaced them removed all the references and the code worked fine

@Pramod Maurya You're solution also helped me.I removed lic file

相关阅读:
Top