none
.NET 3.5 Required but only referencing .NET 3.0 assemblies RRS feed

  • General discussion

  • Hi,

     

    Not sure where to put this problem... but here we go anyway.

     

    We have written an app which targets the .NET 3.0 framework. When executed on a machine with .NET 3.0 installed, the application fails. When we install .NET 3.5 the application runs fine. Weird thing though is when looking at the loaded assemblies when the app is running, there aren't any assemblies loaded from the .NET 3.5 framework!

     

    Can anyone explain this?

     

    If more details are needed, I will be happy to provide.

     

    Cheers

    Friday, February 8, 2008 1:43 AM

All replies

  •  

    you developed app. in visual studio 2008 ??

     

    what error your app. gives when you try it to execute in .net 3.0  and when it fails ?

     

    Monday, February 11, 2008 4:37 AM
  •  

    We found the issue. After a lot of frustration we found this document: http://msdn2.microsoft.com/en-us/library/bb613588.aspx which helped us trackdown what was being loaded from the .NET 3.5 framework.

     

    One of our developers was using the IsDocumentEnabled property on the RichTextBox which requires .NET 3.5 hence why it failed on .NET 3.0

     

    The thing that made this really hard to track down was when we were running the app under .NET 3.5 and iterated through the loaded assemblies we could not find any loaded assemblies from the .NET 3.5 framework...? It would have been alot easier to track down where the offending call was made if we knew which assembly was being loaded from the 3.5 framework. We checked the loaded assemblies both in code and in Process Explorer, none of which showed any 3.5 assembly being loaded. Very weird.

     

    Cheers

    Sunday, February 17, 2008 11:55 PM