Tuesday , 21 March 2023
Home » Tự học Lập Trình » Lỗi: CS0433 trong .Net

Lỗi: CS0433 trong .Net

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’

error_net

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)

About Nguyễn Thanh Sơn

Nguyễn Thanh Sơn
Network Security, Web Design, Computer Science

Xem thêm

header in c++

Tách chương trình lớn thành các file riêng

Tại sao cần phải tách Khi lập trình với bất cứ ngôn ngữ nào thì …

Để lại bình luận:

Loading Facebook Comments ...

Leave a Reply

Your email address will not be published. Required fields are marked *