|
| Problem Converting VS2005 Web site to VS2005 Web Application |
 |
Wed, 2 Jan 2008 09:20:27 +0000 |
I have a 2005 Web Site (no profile, no xsd) I need to convert to a 2005 Web
Application. I downloaded SP1 and followed Scott's tutorial.
After conversion and build I had 32 errors and 4 warnings.
One set of errors has to do with the fact that I have 2 modules containing some
utility functions in the Web Site. All calls from web pages to functions in
these modules fail in the Web Application (they work fine in the Web Site).The
error says: Name [FunctionName] not defined
I suspect I need to add the modules to the project namespace, but just putting
"namespace ThisProjectName / end namespace" around the modules does
not help. I see the modules and their functions in the Solution window, but not
in Intellisense. Moving them from Old_App_Code to the main project directory
does not help.How can I get this to work ?
The remaining errors are due to the fact that the designer duplicates some of
the event handlers (Page_Load, Button_Click) on some pages (not on all ?!), so
that "duplicate routines result with the same signature" (this is the
error message). Why would the designer duplicate existing routines ?
In the designer files it says "This can be moved to the code-behind file
if..(it bothers you)", but I don't understand how. Can't I just delete the
duplicate routines in the designer files ? Some of my routines contain
additional code.
Any help appreciated !
nb0512
|
| Post Reply
|
| Re: Problem Converting VS2005 Web site to VS2005 Web Application |
 |
Fri, 4 Jan 2008 10:10:37 +0000 |
This is resolved; the first set of errors disappeared after I changed the Build
Action of the modules from Content to Compile. Found this hint in another post
in this trail. Thanks !
The remaining errors were due to the fact that the designer incorrectly named
one partial class (the one for the _default form), probably because I had
earlier renamed the form (form title or DIV title or class name or....so many
titles to synchronize).
Anyway, runs smoothly now.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|