CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2008 Tags:
Item Type: NewsGroup Date Entered: 3/16/2008 2:14:53 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 30 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
jjepen
Asp.Net User
Issues Migrating to Web Application Project3/16/2008 2:14:53 AM

0/0

I just tried to migrate a Visual Studio 2008 VB.Net Web "Site" project (Targeting .Net 3.5, Using AJAX) to a Web "Application" project following this guide (I figured 05 and 08 must be basically the same on the process.) and ran into some major problems in trying to build the site.

When I build the site I get two types of errors, an example of the first is:

'Protected Sub Page_Load(sender As Object, e As System.EventArgs)' has multiple definitions with identical signatures.


And the second looks like this: 

'RequiredFieldValidator1' is already declared as 'Protected WithEvents RequiredFieldValidator1 As System.Web.UI.WebControls.RequiredFieldValidator' in this class.

 

It appears each of these errors is repeated for every method and every control on every page.  The compiler stops counting at 102 errors but when I start removing control declarations from the *.designer.vb files - which seems to take care of the second type of error - more and more of both types of errors just keep popping up.

Any ideas of what could be wrong would be greatly appreciated.
 

rjcox
Asp.Net User
Re: Issues Migrating to Web Application Project3/16/2008 9:34:14 AM

0/0

This sounds like you have two copies of everything. (E.g. if both the old-version.aspx.vb and new-version.aspx.vb are being included then both will contribute members to the same class because of the use of partial classes.)

Carefully double check what is being included (this might require a manual examination of the content of the .vbproj file). 


Richard
jjepen
Asp.Net User
Re: Issues Migrating to Web Application Project3/16/2008 4:43:55 PM

0/0

 I figured out the issue.  First I'll give some background on my development habits.  When I start a new asp.net project I usually create a "template" page which is a page that's already attached to a master page and may have some additional placeholder content in it.  I'll then copy this file and rename whenever I need to add a new page.  As it turns out VS doesn't change the partial class name when you do this, it leaves it the same as the original file.  When I was running the site as a web "site" it didn't seem to care, but when I converted it into a web "application" the compiler saw that all the pages were the members of the same class and choked on it.  I just changed each of my pages to have a unique partial class name and viola! everything worked.

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Migrating to .NET: A Pragmatic Path to Visual Basic .NET, Visual C++ .NET and ASP .NET Authors: Dhananjay Katre, Prashant Halari, Narayana Rao Surapaneni, Manu Gupta, Meghana Deshpande, Pages: 487, Published: 2002
HTTP: The Definitive Guide: The Definitive Guide Authors: David Gourley, Brian Totty, Marjorie Sayer, Anshu Aggarwal, Sailu Reddy, Pages: 656, Published: 2002
Designing Visual Basic.NET Applications Authors: David Vitter, Pages: 544, Published: 2001
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Professional Crystal Reports for Visual Studio .NET Authors: David McAmis, Pages: 384, Published: 2004
Essential ASP.Net 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2006
Oracle JDeveloper 10g for Forms & PL/SQL Developers: A Guide to Web Development with Oracle ADF Authors: Peter Koletzke, Duncan Mills, Pages: 562, Published: 2006
PowerBuilder 9: Internet and Distributed Application Development Authors: William Green, John D. Olson, Bill Green, Pages: 816, Published: 2003

Web:
Migrating a VS 2005 Web Site Project to VS 2005 Web Application ... Before migrating any code into your new VS 2005 Web Application Project, you should first make sure to setup any project or assembly references for it. ...
Migrating a VS 2003 Web Project to VS 2005 Migrating from VS 2003 to VS 2005 using the Web Application Project ... to the VS 2003 solution if you run into issues, or start over from any step. ...
25 Feet Below the Surface : Migrating to a "Web Application ... Migrating to a "Web Application Project" in 2.0 when you have your 1.1 ... Explorer Team and if you run into an issue related to say invoking a Web Service , ...
Issues Migrating to Web Application Project - ASP.NET Forums Net 3.5, Using AJAX) to a Web "Application" project following this guide (I figured 05 and 08 must be basically the same on the process. ...
Issue: Migrating Web Application Projects between VS 2005 and VS ... It's explains how to get around the Build Targets issue when moving a web application project from VS 2005 to Vs 2008. re: Issue: Migrating Web Application ...
Step-By-Step Guide to Converting Web Projects from Visual Studio ... Migrating a Visual Studio .NET 2003 Web Project to a Web Application Project ... However, there could still be issues, and you might need to restore the ...
Migrating a VS 2003 Web Project to VS 2005 Web Application Project ... re: Migrating a VS 2003 Web Project to VS 2005 Web Application Project - Gotcha! Gravatar John Rummell Jan 15, 2007. I've been wondering about this process ...
Migrating VS2003 Web Applications to VS2005 Web Application Projects Jan 2, 2007 ... Here are the top weird issues:. 1. Problem: You run your migrated Web Deployment Project (aka Installer Project or MSI) and then go to the ...
Migration Problems from Visual Studio.NET 2005 to Web Application ... May 31, 2006 ... Migration Problems from Visual Studio.NET 2005 to Web Application Project. Well, call me crazy but I decided to migrate from Visual Studio. ...
CodeProject: Migrating website projects to web applications in ... Aug 28, 2008 ... However, if you want to add a VS2008 Web Application Project to an existing ... migrated you website project to the web application project. ...

Videos:
Vol 1 - Avoiding Common Pain Points When Migrating to XI Avoiding Common Pain Points When Migrating to XI -- Vol 1 A 2007 user conference presentation by Tim Nightingale, Strategic Technology Architect Are...
pnMeeting 2007: Albert Perez Monfort introduces the "Intraweb" project Albert Perez Monfort is the representative of the Catalonian Department of Education. He and his colleague last year presented their "Intraweb" proje...
Vol 2 - Avoiding Common Pain Points When Migrating to XI Avoiding Common Pain Points When Migrating to XI -- Vol 2 A 2007 user conference presentation by Tim Nightingale, Strategic Technology Architect Are...
Vol 5 - Avoiding Common Pain Points When Migrating to XI Avoiding Common Pain Points When Migrating to XI -- Vol 5 A 2007 user conference presentation by Tim Nightingale, Strategic Technology Architect Ar...
Vol 4 - Avoiding Common Pain Points When Migrating to XI Avoiding Common Pain Points When Migrating to XI -- Vol 4 A 2007 user conference presentation by Tim Nightingale, Strategic Technology Architect Ar...
Vol 3 - Avoiding Common Pain Points When Migrating to XI Avoiding Common Pain Points When Migrating to XI -- Vol 3 A 2007 user conference presentation by Tim Nightingale, Strategic Technology Architect Ar...
XML11: An Abstract Windowing Protocol Google TechTalks June 1, 2006 Arno Puder Arno Puder received his masters and Ph.D. in computer science and is currently working as an Assistant Prof...
Charlie Rose - An hour with Thomas Ricks, author of "Fiasco" An hour with Pulitzer Prize-winning journalist Thomas Ricks. His book is "Fiasco: The American Military Adventure in Iraq".




Search This Site:










update on enterprise library availability?

cookieless formsauthentication

cfc in asp.net

duplicate data base

upload link occasionally shows for authorized users

waiting... waiting... for pro trial cd

benefit of using membership class with active directory users

file upload problems

just get this error during install

security interface

two way module communication

asp:menu error -> '0.cells' is null or not an object

admin can not log in

sqlhelper parameter cache problem in ms data application block version 2.0

ftb control never show again?

should i buy visual studio 2005 or get visual web developer express

strange error debug website with referenced projects

total newbie stuck here: server error in '/dotnetnuke' application.

treeview error

how-to update userid in sqlmembership tables

asp.net 2.0 - hello world simple deployment

adding events in code behind for controls declared in designer.cs???

asp.net beta 2 to asp.net 2.0

acl's, impersonation, a lot of wasted time, and a headache

push code from dev server to test server

question about design mode

can't build assembly release build

membership login failures

asp.net menu onmouseover problem

ajax: component art webui 3.0 samples

 
All Times Are GMT