Compiler Error Message: CS0433:

M

mlcy

hi there,

i got this Compiler Error Message when i tried to access my site. all
files were built in vs2005 without error.
Compiler Error Message: CS0433: The type 'FrontEnd.AppConfig' exists
in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET
Files\newsearch\0d2e701c\83b0a639\assembly\dl3\167b1fd7\e5dc9ac8_ea6ec601\FrontEnd.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\newsearch\0d2e701c\83b0a639\App_Code.xakiif68.dll'

i have tried to deleting site folder from Temporary ASP.NET Files
directory, but no help. i have tried renaming the namespace to
AppConfig, but no help. i have checked that i didn't include extra
files contain same class in the project. really don't know where the
conflit came from. does anyone have any idea what happened and how to
fix it?

thanks alot!
 
M

mlcy

found this article:

Re: The type '<class>' exists in both '<dll location>' and '<dll
location 2>'

With Web Applcation Project you want to make sure that you don't use a
app_code directory, since classes within that directory will indeed get
compiled twice (once in the code-behind and once at runtime) unless you
explictly exclude the file from WAP project. Try renaming the app_code
directory to something else to fix it.

BTW - this tutorial walksthrough how to migrate an existing VS 2005 Web
Site Project to a VS 2005 Web Application Project:
http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx

Big help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top