Error Message Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

问题 Error Message Could not load file or assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

  • 2012年3月15日 下午 05:58
     
     

    Hi,

    I am getting this error after upgrading to VS 2010 and Crystal Reports.  This is not a new project but has been in around since VB 6.0.  We are currently running this on a Windows XP but migrating to Windows 7 64-bit BUT running compling as 32-bit.  This is what the client is asking for.  I changed my Advance Compile Options to Target CPU = x86 and Target framework to .NET Framework 4.  On the Compile Configuration it is set to Release and x86 for platform.

    After creating a build the executable works on a Windows XP and Windows 7 64-bit (both have VS 2010 installed).  When I run on a Windows 7 64-bit  PC Name Pete)I get the above error. 

    When I verify the programs installed I notice the "System.Web" is not on PC Pete.  The DLL is on the other PC's.

    What is very interesting is the error only occurs when there is a Crystal Report attahced to the form. 

    The application is not Web based so I do not understand why I am getting this message.

    I need Help with this problem, boss is breathing down my neck.  Checked on Internet but could not found a solution!!!

    Thanks

    • 已移動 Bob_BaoMVP 2012年3月19日 上午 07:45 (From:Visual Basic Language)
    •  

所有回覆

  • 2012年3月15日 下午 09:13
     
     

    I've had similar issues. Could you check "Pete's" computer and see if it has the Full version of the .Net Framework installed or if it's just got the Client framework. System.Web isn't in the client profile install and I'd expect you'd get this under the this scenario.

  • 2012年3月19日 上午 03:48
     
     

    Hi Fred0548,

    Welcome to the MSDN forum.

    This queue is about Visual Basic.Net. I’m afraid that your topic about can’t load the System.Web namespace is unsuitable here. For better support, I will move this thread to off topic forum.

    You can post your thread to ASP.Net forum: http://forums.asp.net/

    >>What is very interesting is the error only occurs when there is a Crystal Report attahced to the form. 

    It seems that your issue can be some relationship with Crystal Report, so you also can connect to the official website to ask for help: http://www.sdn.sap.com/irj/scn/advancedsearch?query=crystal+report .

    Sorry for any inconvenience and have a nice day.


    Mark Liu-lxf [MSFT]
    MSDN Community Support | Feedback to us

  • 2012年3月19日 下午 02:13
     
     

    Mark,

    Sorry for the wrong posting.  I will contact Crystal Report about this issues.

    James,

    Thanks for your replay, that was the first thing I notice that "Pete" did not have the .NET Framework 4.0 Extended as on the other two PC's.