compilation Error in ASP .NET Temporary file

  • Thread starter Thread starter j
  • Start date Start date
J

j

I am getting this error when trying to compile code generated using
xsd.exe:
The type 'TrailerList' already contains a definition for
'rCMSTrailerListRow' c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\photoblobws\4e7bb29f\6f50d4db\App_Code.vnsjeqin.4.cs

What could cause this error in a generated file? What should I look for
in the code file to fix it?
 
I think this usually happens when you rename something in the source code
(either a class/file, or output assembly name). Best way to get around it
is to delete the directory detailed in the error message and recompile the
application.

Regards,

- Paul.
 
I had to workbackwards from the generated file to the class, from the
class to the XML...I finally found the conflict.
 
Back
Top