Windows XP SP1: .NET Framework Initialization Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean Stax

    #1

    Windows XP SP1: .NET Framework Initialization Error

    Hi !

    I try to make pretty straight forward operation, but it fails...
    I have .NET Framework 1.1 Configuration (version 1.1.4322.573)
    with VS 2003, where I developed a sample application. Now I coppied it
    to Windows XP SP1 machine . After launching my application I am
    getting annoying :
    ..NET Framework Initialization Error - failed to load mscorwks.dll
    couldn't be loaded.

    Does the deployemnet .NET applications is not trasperant for different
    ..NET Framework vesrions ?

    Thanks for your help.

    Jean
  • Tim Kurtzman

    #2
    RE: Windows XP SP1: .NET Framework Initialization Error

    The runtime isn't 'forward compatible'... meaning you can't write an app
    using v1.1 and then have it run on v1.0 (though the reverse is true).

    Tim


    --

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/cpyright.htm

    Note: For the benefit of the community-at-large, all responses to this
    message are best directed to the newsgroup/thread from which they
    originated.


    --------------------[color=blue]
    >From: jean_stax@hotma il.com (Jean Stax)
    >Newsgroups: microsoft.publi c.dotnet.genera l
    >Subject: Windows XP SP1: .NET Framework Initialization Error
    >Date: 28 Aug 2003 01:56:43 -0700
    >Organization : http://groups.google.com/
    >Lines: 16
    >Message-ID: <df5c1ee6.03082 80056.67b610b8@ posting.google. com>
    >NNTP-Posting-Host: 192.118.109.5
    >Content-Type: text/plain; charset=ISO-8859-1
    >Content-Transfer-Encoding: 8bit
    >X-Trace: posting.google. com 1062061004 5470 127.0.0.1 (28 Aug 2003[/color]
    08:56:44 GMT)[color=blue]
    >X-Complaints-To: groups-abuse@google.co m
    >NNTP-Posting-Date: 28 Aug 2003 08:56:44 GMT
    >Path:[/color]
    cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
    e.de!newsfeed.f reenet.de!newsf eed.news2me.com !sn-xit-02!sn-xit-06!sn-xit-09!
    supernews.com!p ostnews1.google .com!not-for-mail[color=blue]
    >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:106351
    >X-Tomcat-NG: microsoft.publi c.dotnet.genera l
    >
    >Hi !
    >
    >I try to make pretty straight forward operation, but it fails...
    >I have .NET Framework 1.1 Configuration (version 1.1.4322.573)
    >with VS 2003, where I developed a sample application. Now I coppied it
    >to Windows XP SP1 machine . After launching my application I am
    >getting annoying :
    >.NET Framework Initialization Error - failed to load mscorwks.dll
    >couldn't be loaded.
    >
    >Does the deployemnet .NET applications is not trasperant for different
    >.NET Framework vesrions ?
    >
    >Thanks for your help.
    >
    >Jean
    >[/color]

    Comment

    • Jay B. Harlow [MVP - Outlook]

      #3
      Re: Windows XP SP1: .NET Framework Initialization Error

      Tim,
      Yes you can! You can go either direction!

      Within VS.NET 2003 (.NET 1.1) open the Project Property Pages, select
      'Common Properties - Build', under Supported Runtimes, click the Change
      button. Select 'Microsoft >NET Framework v1.0 (advanced)'.

      Be certain to read the warning. The executable is still compiled for 1.1,
      however it will execute under 1.0. Just remember that 1.1 has features that
      are not available in 1.0, for example the
      System.Windows. Forms.Applicati on.EnableVisual Styles method.

      Changing the above option adds configuration/startup/supportedRuntim e
      settings to you added your app.config file, enabling the use of the 1.0
      runtime. It also adds configuration/runtime/assemblyBinding to cause the 1.0
      runtime assemblies to be used.

      Hope this helps
      Jay

      "Tim Kurtzman" <timkur@microso ft.com> wrote in message
      news:Zw7wUUzcDH A.2080@cpmsftng xa06.phx.gbl...[color=blue]
      > The runtime isn't 'forward compatible'... meaning you can't write an app
      > using v1.1 and then have it run on v1.0 (though the reverse is true).
      >
      > Tim
      >
      >
      > --
      >
      > This posting is provided "AS IS" with no warranties, and confers no[/color]
      rights.[color=blue]
      > Use of included script samples are subject to the terms specified at
      > http://www.microsoft.com/info/cpyright.htm
      >
      > Note: For the benefit of the community-at-large, all responses to this
      > message are best directed to the newsgroup/thread from which they
      > originated.
      >
      >
      > --------------------[color=green]
      > >From: jean_stax@hotma il.com (Jean Stax)
      > >Newsgroups: microsoft.publi c.dotnet.genera l
      > >Subject: Windows XP SP1: .NET Framework Initialization Error
      > >Date: 28 Aug 2003 01:56:43 -0700
      > >Organization : http://groups.google.com/
      > >Lines: 16
      > >Message-ID: <df5c1ee6.03082 80056.67b610b8@ posting.google. com>
      > >NNTP-Posting-Host: 192.118.109.5
      > >Content-Type: text/plain; charset=ISO-8859-1
      > >Content-Transfer-Encoding: 8bit
      > >X-Trace: posting.google. com 1062061004 5470 127.0.0.1 (28 Aug 2003[/color]
      > 08:56:44 GMT)[color=green]
      > >X-Complaints-To: groups-abuse@google.co m
      > >NNTP-Posting-Date: 28 Aug 2003 08:56:44 GMT
      > >Path:[/color]
      >[/color]
      cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin[color=blue]
      >[/color]
      e.de!newsfeed.f reenet.de!newsf eed.news2me.com !sn-xit-02!sn-xit-06!sn-xit-09![color=blue]
      > supernews.com!p ostnews1.google .com!not-for-mail[color=green]
      > >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:106351
      > >X-Tomcat-NG: microsoft.publi c.dotnet.genera l
      > >
      > >Hi !
      > >
      > >I try to make pretty straight forward operation, but it fails...
      > >I have .NET Framework 1.1 Configuration (version 1.1.4322.573)
      > >with VS 2003, where I developed a sample application. Now I coppied it
      > >to Windows XP SP1 machine . After launching my application I am
      > >getting annoying :
      > >.NET Framework Initialization Error - failed to load mscorwks.dll
      > >couldn't be loaded.
      > >
      > >Does the deployemnet .NET applications is not trasperant for different
      > >.NET Framework vesrions ?
      > >
      > >Thanks for your help.
      > >
      > >Jean
      > >[/color]
      >[/color]


      Comment

      • Jay B. Harlow [MVP - Outlook]

        #4
        Re: Windows XP SP1: .NET Framework Initialization Error

        Jean,
        Do you have either .NET Framework loaded on the Windows XP machine?

        Within VS.NET 2003 (.NET 1.1) open the Project Property Pages, select
        'Common Properties - Build', under Supported Runtimes, click the Change
        button. Select 'Microsoft >NET Framework v1.0 (advanced)'.

        Be certain to read the warning. The executable is still compiled for 1.1,
        however it will execute under 1.0. Just remember that 1.1 has features that
        are not available in 1.0, for example the
        System.Windows. Forms.Applicati on.EnableVisual Styles method.

        The above settings changes your app.config, remember to include the new
        app.config (as myproject.exe.c onfig) when you copy the executable to the
        Windows XP machine.

        Hope this helps
        Jay

        "Jean Stax" <jean_stax@hotm ail.com> wrote in message
        news:df5c1ee6.0 308280056.67b61 0b8@posting.goo gle.com...[color=blue]
        > Hi !
        >
        > I try to make pretty straight forward operation, but it fails...
        > I have .NET Framework 1.1 Configuration (version 1.1.4322.573)
        > with VS 2003, where I developed a sample application. Now I coppied it
        > to Windows XP SP1 machine . After launching my application I am
        > getting annoying :
        > .NET Framework Initialization Error - failed to load mscorwks.dll
        > couldn't be loaded.
        >
        > Does the deployemnet .NET applications is not trasperant for different
        > .NET Framework vesrions ?
        >
        > Thanks for your help.
        >
        > Jean[/color]


        Comment

        Working...