webservices .net framework 1.1 vs 2.0

M

Matthias

hi there,

I've got a bunch of questions and I hope, that I succeeded in
formulating them sufficiently:

i've written a pretty functional webservice using vs 2003 and .net 1.1.
now I'm moving the whole thing to 2.0 and I don't understand a couple of
the new concepts: Code-Behind files are now moved to a directory called
App_Code? What is the App_Data directory for?

The conversion of my old solution failed, so created a new Webservice
and decided, to move the existing code-files manually into the new
project, which seems to be less work then trying to fix the errors.

But the automatically generated "Service" class (derived from
System.Web.Services.WebService) for example is not located within any
namespace. I don't get it? Why is this? I used to think whatever code
*must* be located within a namespace.

Anyways, I've added some of my existing classes to the new project (plus
the appropriate "using" directive to the Service.asmx file), but I still
get an error that the namespace could not be located and whether I'm
missing a assembly reference. Is this because the Service class itself
is not located whitin a namespace?

And what about my web.config?

I hope my text is not too confusing and thank you in advance for any
light you shed on this. A link to something like "moving webapplications
from framework 1.1 to 2.0" would be cool. i've scanned the common
sources, but didn't find anything apropriate.

kind regards,

matthias

matthias
 
J

John Saunders [MVP]

Matthias said:
hi there,

I've got a bunch of questions and I hope, that I succeeded in formulating
them sufficiently:

i've written a pretty functional webservice using vs 2003 and .net 1.1.
now I'm moving the whole thing to 2.0 and I don't understand a couple of
the new concepts: Code-Behind files are now moved to a directory called
App_Code? What is the App_Data directory for?

Matthias,

Do yourself a favor. Never, ever, use File->New->Web Site. Ever. It was a
bad idea from Microsoft and there's no need for you to suffer for their
mistake.

Instead, upgrade to Visual Studio 2005 SP1 (or to Visual Studio 2008 if you
can), and then try to upgrade your projects. Hopefully, they'll upgrade
correctly.

My company had to do their upgrades before SP1 was available, and it was a
horrible mess, costing us about six weeks to fix (and we never knew what we
had changed to make things work). If your upgrade gives you the App_Code and
whatnot, I suggest that you create new projects using File->New->Project,
then copy your code into the new project directories and include it into the
new projects.
 
M

Matthias

hi john,

thanks for your help. i've installed the servicepack and will take it
from there. an upgrade to vs 2008 is currently not in reach.

again, thanks!

matthias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top