|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Error shown when I goto complie the application that converted from v1.1.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 could try cleaning out the Temporary ASP.NET files directory and start again. Peter -- Show quoteCo-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\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 > > > 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 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 -- Show quoteGregory 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\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 > > >
Show quote
On Fri, 3 Feb 2006 17:12:35 +0800, "Benny Ng" <miaomia***@hotmail.com> You shouldn't post to so many news groups...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, 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 |
|||||||||||||||||||||||