Groups | Blog | Home
all groups > asp.net webservices > january 2008 >

asp.net webservices : webservices .net framework 1.1 vs 2.0



John Saunders [MVP]
1/29/2008 1:42:02 PM
[quoted text, click to view]

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.

--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Matthias
1/29/2008 3:37:59 PM
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
1/29/2008 11:17:21 PM
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

John Saunders [MVP] schrieb:
[quoted text, click to view]
AddThis Social Bookmark Button