CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2008
    Location
    India
    Posts
    408

    .NET Framework version compatibility

    I have an application (exe) file created in .Net framework 2.0.5238. In my machine I have the following versions installed
    Microsoft .NET Framework 1.1 1.1.4322
    Microsoft .NET Framework 2.0 Service Pack 1 2.1.21022
    Microsoft .NET Framework 3.0 Service Pack 1 3.1.21022
    Microsoft .NET Framework 3.5 3.5.21022
    Microsoft .NET Framework 3.5
    When I execute that application, it crashes at some point. How can I resolve this issue? I cannot remove the existing framework since some other dependent applications are running. Neither can I install 2.0 because of this

    Thanks.
    Rate the posts which you find useful

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: .NET Framework version compatibility

    When it crashes, what message does it show? Maybe framework is not an issue, maybe there is something else that is causing the application to crash.

  3. #3
    Join Date
    Jan 2008
    Location
    India
    Posts
    408

    Re: .NET Framework version compatibility

    I have attached the crash info. Also, the application runs perfectly in some machines.
    Attached Files Attached Files
    Rate the posts which you find useful

  4. #4
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: .NET Framework version compatibility

    Well look slike something is wrong with OsInfo.dll file. You may want to check what version of file is installed on the system that is giving the problem and the ones that don't.

  5. #5
    Join Date
    Jan 2008
    Location
    India
    Posts
    408

    Re: .NET Framework version compatibility

    Yes, I noticed that in the crash information. Actually it is a dll along the application. But the same application with the same dll runs fine in some other machines. The application not only crashes in my machine. Also in some other machines.
    Rate the posts which you find useful

  6. #6
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: .NET Framework version compatibility

    I am very much sure that the problem is not with the framework versions. It may be something else that is causing the application to crash.

  7. #7
    Join Date
    Jan 2008
    Location
    India
    Posts
    408

    Re: .NET Framework version compatibility

    OK. Let me analyze on this. Thanks!
    Rate the posts which you find useful

  8. #8
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: .NET Framework version compatibility

    OsInfo.dll is not part of .NET framework, so the cause is not in it. I also think that the bad is somewhere else, most probably the OsInfo.dll rely on other component, which is not installed, or corrupted. What about try to use Dependency Walker (depends.exe) to check out what does the OsInfo.dll require?

    Also, there may be a bug in class constructor, e.g. attempt to write to forbiden path. Such a kind of errors is hard to recognize, because they are "consumed" by class loader and are propagated strange.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured