Lỗi: “CS0433: The type X exists in both A and B” error in Visual Studio
Khi bạn triển khai ứng dụng Web dưới nền .NET và gặp lỗi sau:
Server Error in ‘/’ Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0433: The type ‘DevExpress.Web.ASPxClasses.Paddings’ exists in both ‘c:\Windows\Microsoft.NET\assembly\GAC_MSIL\DevExpress.Web.v13.1\v4.0_13.1.5.0__b88d1754d700e49a\DevExpress.Web.v13.1.dll’ and ‘c:\Users\Nedim\AppData\Local\Temp\Temporary ASP.NET Files\root\2469c78b\489019cf\assembly\dl35b06e65\48aa4dfb_0a84ce01\DevExpress.Web.v12.2.DLL’
Cách giải quyết:
- Restart IIS
- Xóa các file trong thư mục:
“C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\”
“C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\” - Xóa file App_Licenses.dll trong solution
- Rebuild lại project
Lượt xem (749)
Để lại bình luận: