Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Compiler Error Message: CS0433:

Reply
Thread Tools

Compiler Error Message: CS0433:

 
 
mlcy
Guest
Posts: n/a
 
      05-03-2006
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\Tem porary
ASP.NET
Files\newsearch\0d2e701c\83b0a639\assembly\dl3\167 b1fd7\e5dc9ac8_ea6ec601\FrontEnd.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\newsearch\0d2e701c\83b0a639\App_Code.xakiif6 8.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!

 
Reply With Quote
 
 
 
 
mlcy
Guest
Posts: n/a
 
      05-03-2006
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...igration2.aspx

Big help!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler Error Message: The compiler failed with error code -1073741819 Ram ASP .Net 0 09-13-2005 09:52 AM
Why is a JIT compiler faster than a byte-compiler RickMuller Python 4 03-26-2005 04:30 PM
Compiler compiler with C++ as output Andrey Batyuck C++ 3 05-17-2004 08:17 PM
Can we use <compiler> tag to avoid RunTime Compiler error? Jack Wright ASP .Net 5 01-19-2004 04:36 PM
Compiler Error Message: The compiler failed with error code 128. Yan ASP .Net 0 07-21-2003 10:49 PM



Advertisments