Adesh Mishra
Adesh Mishra

Reputation: 69

CS0436: Warning as Error: Why I am getting this error

CS0436: Warning as Error: The type 'Time_Tracker.App_Code.DataManager' in 'c:\Users\EPS\AppData\Local\Temp\Temporary ASP.NET Files\root\5f0630b6\64f04a01\App_Code.zvy6z-ld.0.cs' conflicts with the imported type 'Time_Tracker.App_Code.DataManager' in 'c:\Users\EPS\AppData\Local\Temp\Temporary ASP.NET Files\root\5f0630b6\64f04a01\assembly\dl3\091dfa48\431f4eb0_5db7d201\Time Tracker.DLL'. Using the type defined in 'c:\Users\EPS\AppData\Local\Temp\Temporary ASP.NET Files\root\5f0630b6\64f04a01\App_Code.zvy6z-ld.0.cs'.

enter image description here

Upvotes: 1

Views: 2725

Answers (1)

Sunil Kothiyal
Sunil Kothiyal

Reputation: 177

****The namespace NamespaceName1 in NamespaceName2 conflicts with the type TypeName1 in NamespaceName3****

This error occurs when the imported type and the imported namespace have the same fully qualified name. When that name is referenced, the compiler is unable to distinguish between the two.

Upvotes: 1

Related Questions