webservices .net framework 1.1 vs 2.0

Discussion in 'ASP .Net Web Services' started by Matthias, Jan 29, 2008.

  1. Matthias

    Matthias Guest

    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
     
    Matthias, Jan 29, 2008
    #1
    1. Advertising

  2. "Matthias" <postamt_SPAMTRAP_@kieferfrost_DOT_de> wrote in message
    news:...
    > 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.

    --
    --------------------------------------------------------------------------------
    John Saunders | MVP - Windows Server System - Connected System Developer
     
    John Saunders [MVP], Jan 29, 2008
    #2
    1. Advertising

  3. Matthias

    Matthias Guest

    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:
    > "Matthias" <postamt_SPAMTRAP_@kieferfrost_DOT_de> wrote in message
    > news:...
    >> 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.
    >
     
    Matthias, Jan 29, 2008
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joseph Geretz
    Replies:
    6
    Views:
    392
    Joseph Geretz
    Aug 24, 2003
  2. moi
    Replies:
    3
    Views:
    4,090
    quaiser_ali
    Sep 26, 2008
  3. Replies:
    7
    Views:
    318
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=
    Dec 27, 2006
  4. quaiser_ali
    Replies:
    0
    Views:
    2,270
    quaiser_ali
    Sep 26, 2008
  5. Joseph Geretz

    WebServices break after upgrade to Framework 1.1

    Joseph Geretz, Aug 22, 2003, in forum: ASP .Net Web Services
    Replies:
    6
    Views:
    202
    Joseph Geretz
    Aug 24, 2003
Loading...

Share This Page