Home All Groups Group Topic Archive Search About

Error shown when I goto complie the application that converted from v1.1.

Author
3 Feb 2006 9:12 AM
Benny Ng
Dear All,

    Now my application is going to migrated into .NET v2.

    And it's already converted into v2 by Visual Studio 20005. (the auto
convert tools)

    But when I goto compiled the application. Some error  likes the
following shown. Any suggestion?


Error 8 The type 'SalesChecking.Public.Common' exists in both
'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\assembly\dl3\e079a026\3dca13c4_9b20c601\SalesChecking.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\App_Code.3yhghclp.dll'
E:\Projects.NET\SalesChecking\Login.aspx.cs 174 46
http://localhost/SalesChecking/


There are many erros likes that  shown after compiled. So, Any suggestion
about this are appreciated. Thanks.

Benny Ng

Author
3 Feb 2006 2:48 PM
Peter Bromberg [C# MVP]
Benny,
you could try cleaning out the Temporary ASP.NET files directory and start
again.

Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




Show quote
"Benny Ng" wrote:

> Dear All,
>
>     Now my application is going to migrated into .NET v2.
>
>     And it's already converted into v2 by Visual Studio 20005. (the auto
> convert tools)
>
>     But when I goto compiled the application. Some error  likes the
> following shown. Any suggestion?
>
>
> Error 8 The type 'SalesChecking.Public.Common' exists in both
> 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files\saleschecking\786d2931\9cbadb6b\assembly\dl3\e079a026\3dca13c4_9b20c601\SalesChecking.DLL'
> and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files\saleschecking\786d2931\9cbadb6b\App_Code.3yhghclp.dll'
> E:\Projects.NET\SalesChecking\Login.aspx.cs 174 46
> http://localhost/SalesChecking/
>
>
> There are many erros likes that  shown after compiled. So, Any suggestion
> about this are appreciated. Thanks.
>
> Benny Ng
>
>
>
Author
3 Feb 2006 3:36 PM
Juan T. Llibre
I'd look for duplicate "SalesChecking.Public.Common" methods in your source code.

The "SalesChecking.Public.Common" method has been found by the compiler
in both SalesChecking.DLL and in App_Code.3yhghclp.dll

Did you pre-compile SalesChecking.DLL ? ( Is it a separate assembly ? )
That would explain the duplication.



Juan T. Llibre
ASP.NET MVP
ASPNETFAQ.COM : http://www.aspnetfaq.com
==================================
Show quote
> "Benny Ng" wrote:
>>
>>     Now my application is going to migrated into .NET v2.
>>
>>     And it's already converted into v2 by Visual Studio 20005. (the auto
>> convert tools)
>>
>>     But when I goto compiled the application. Some error  likes the
>> following shown. Any suggestion?
>>
>>
>> Error 8 The type 'SalesChecking.Public.Common' exists in both
>> 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
>> Files\saleschecking\786d2931\9cbadb6b\assembly\dl3\e079a026\3dca13c4_9b20c601\SalesChecking.DLL'
>> and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
>> Files\saleschecking\786d2931\9cbadb6b\App_Code.3yhghclp.dll'
>> E:\Projects.NET\SalesChecking\Login.aspx.cs 174 46
>> http://localhost/SalesChecking/
>> There are many erros likes that  shown after compiled. So, Any suggestion
>> about this are appreciated. Thanks.
>>
>> Benny Ng
Author
3 Feb 2006 3:10 PM
Cowboy (Gregory A. Beamer) - MVP
I assume this is ASP.NET from the errors:

It is a bit trickier to migrate ASP.NET than other applications. On MSDN
site, they have a program that you can use to compile 1.x apps like 1.x in
the 2.0 environment. It might be a good interim step:
http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************


Show quote
"Benny Ng" wrote:

> Dear All,
>
>     Now my application is going to migrated into .NET v2.
>
>     And it's already converted into v2 by Visual Studio 20005. (the auto
> convert tools)
>
>     But when I goto compiled the application. Some error  likes the
> following shown. Any suggestion?
>
>
> Error 8 The type 'SalesChecking.Public.Common' exists in both
> 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files\saleschecking\786d2931\9cbadb6b\assembly\dl3\e079a026\3dca13c4_9b20c601\SalesChecking.DLL'
> and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files\saleschecking\786d2931\9cbadb6b\App_Code.3yhghclp.dll'
> E:\Projects.NET\SalesChecking\Login.aspx.cs 174 46
> http://localhost/SalesChecking/
>
>
> There are many erros likes that  shown after compiled. So, Any suggestion
> about this are appreciated. Thanks.
>
> Benny Ng
>
>
>
Author
4 Feb 2006 4:49 PM
Otis Mukinfus
Show quote
On Fri, 3 Feb 2006 17:12:35 +0800, "Benny Ng" <miaomia***@hotmail.com>
wrote:

>Dear All,
>
>    Now my application is going to migrated into .NET v2.
>
>    And it's already converted into v2 by Visual Studio 20005. (the auto
>convert tools)
>
>    But when I goto compiled the application. Some error  likes the
>following shown. Any suggestion?
>
>
>Error 8 The type 'SalesChecking.Public.Common' exists in both
>'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
>Files\saleschecking\786d2931\9cbadb6b\assembly\dl3\e079a026\3dca13c4_9b20c601\SalesChecking.DLL'
>and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
>Files\saleschecking\786d2931\9cbadb6b\App_Code.3yhghclp.dll'
>E:\Projects.NET\SalesChecking\Login.aspx.cs 174 46
>http://localhost/SalesChecking/
>
>
>There are many erros likes that  shown after compiled. So, Any suggestion
>about this are appreciated. Thanks.
>
>Benny Ng
>
Benny,

You shouldn't post to so many news groups...

I had this situation just yesterday.  Either you or the conversion has
renamed an object and made it not a member of an existing namespace.

In my case my Global.asax page was not in the same namespace as the
rest of the code.

This really is a an asp.net question, so next time please post ONLY to
the applicable group.

Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com

AddThis Social Bookmark Button