0

I have "Search" User Control. When I Build My solution I get This Error :

Error: error CS0433: The type 'UserControl_Search' exists in both '~\AppData\Local\Temp\Temporary ASP.NET Files\fssweb\40592537\9aa35db9\App_Web_xuubpve2.dll' and '~\AppData\Local\Temp\Temporary ASP.NET Files\fssweb\40592537\9aa35db9\App_Web_wrtemu0v.dll'

can any people help me? Thanks.

Asieh hojatoleslami
  • 3,240
  • 7
  • 31
  • 45

2 Answers2

3

Delete the temporary files from the location specified in the error

1)AppData\Local\Temp\Temporary ASP.NET Files\fssweb\40592537\9aa35db9\App_Web_xuubpve2.dll 2)AppData\Local\Temp\Temporary ASP.NET Files\fssweb\40592537\9aa35db9\App_Web_wrtemu0v.dll

Build the solution and run it again.

Pooja Shrigod
  • 165
  • 1
  • 1
  • 13
0

I found What maybe causes that, I have two UserControls:

  1. Search.ascx
  2. NewSearch.ascx

In code behind they have the same names:

public partial class UserControl_Search : System.Web.UI.UserControl 

When I rename that in NewSearch.ascx to:

 public partial class UserControl_NewSearch : System.Web.UI.UserControl 

This problem resolved!

the swine
  • 10,713
  • 7
  • 58
  • 100
Asieh hojatoleslami
  • 3,240
  • 7
  • 31
  • 45