471,317 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

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

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\Tem porary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\assembly\dl3 \e079a026\3dca13c4_9b20c601\SalesChecking.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\App_Code.3yh ghclp.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
Feb 3 '06 #1
4 1013
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


"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\Tem porary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\assembly\dl3 \e079a026\3dca13c4_9b20c601\SalesChecking.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\App_Code.3yh ghclp.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

Feb 3 '06 #2
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/re...p/default.aspx

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

***************************
Think Outside the Box!
***************************
"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\Tem porary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\assembly\dl3 \e079a026\3dca13c4_9b20c601\SalesChecking.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\App_Code.3yh ghclp.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

Feb 3 '06 #3
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
==================================
"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\Tem porary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\assembly\dl3 \e079a026\3dca13c4_9b20c601\SalesChecking.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\App_Code.3yh ghclp.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

Feb 3 '06 #4
On Fri, 3 Feb 2006 17:12:35 +0800, "Benny Ng" <mi********@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\Te mporary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\assembly\dl 3\e079a026\3dca13c4_9b20c601\SalesChecking.DLL'
and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\saleschecking\786d2931\9cbadb6b\App_Code.3y hghclp.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
Feb 4 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Peter Frost | last post: by
5 posts views Thread by tiger79 | last post: by
33 posts views Thread by Anthony England | last post: by
4 posts views Thread by DavideR | last post: by
35 posts views Thread by jeffc226 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.