Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi im workin ina Web Application
I added my classes in App_code folder, but when I build, an error appears "the type conflicts with the imported type"

image here

I tried cleaning and then building again but didnt work

Does someon has tis issure?
Posted
Comments
[no name] 28-Mar-14 19:07pm    
And what "type" is it that is conflicting with an "imported type"? Did you name something with the same name as another type that is being imported into your application?
memd24 28-Mar-14 19:33pm    
No, I just added the classes in app_code and build it

ASM
See a source file in the App_Code special folder, and some in-page code-behind where the same type (WeekOVervew) is defined. If these types do different things then they should be named aptly, resolving the error, if these types do the same thing then you should only have one copy, also resolving the error.

Remove or correct the duplicate type.
 
Share this answer
 
Hi,

Please go through below link that will be your solution.

App_Code folder doesn’t work with Web Application Projects (WAPs)[^]
 
Share this answer
 
Thanks for everyone. I foud why appears that issure. Is because a dll was build and referenced in the project, that why the error. But now my classes from app_code, doesnt recognice my aspx.cs class


Here an image

I added the same namespace in all app_code classes

PD: my project is a Web Application not WebSite
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900