locked
I moved my vs 2005 project to Visual Web Developer RRS feed

  • Question

  • User709978785 posted

     So I have moved my vs 2005 ASP.net 2.0 to Visual Web Developer 2008 Express and .NET 3.5. I have an issue I cannot get past and could use some help. Here is the message I get: I'm using the built in web server, at this point I don't have IIS enabled on the PC.

    The funny thing is I replaced all the version= with 3.5.0.0 and I still get this error.

    I also installed the AjaxControlToolKit for .NET 3.5 replaced the dll in my bin folder.

    Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Friday, October 2, 2009 7:14 PM

All replies

  • User-1226263862 posted

    Do you have a backup copy of your project?  When you opened it in VWD did it prompt you to convert it to a ASP.NET 3.5 application?  That may be a limitation of VWD but I do know the Pro version does that.  Is it on the same computer you did this?

    You may have changed the version but the publickeytoken could be different.  Try this line instead:

    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

     

    Friday, October 2, 2009 7:21 PM
  • User709978785 posted

     I cannot understand why it is even finding this (Version=1.0.61025.0) when I replaced all of them with Version=3.5.0.0 on all pages in the project.

    Friday, October 2, 2009 7:58 PM
  • User-1226263862 posted

    Do a Ctrl-F on your whole project and look for that string Version=..... and see where you find it. 

    Friday, October 2, 2009 8:06 PM
  • User709978785 posted

    I have not yet figured this one out, can anyone offer any suggestions?

    I have searched the entire solution and replaced all 1.0.61025.0 with 3.5.0.0, the new version for the Ajax Control Toolkit. I have also deleted all ASP temp files.

    Server Error in '/MVP' Application.
    --------------------------------------------------------------------------------
    
    Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    
    Source Error: 
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  
    
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.
    
    
    === Pre-bind state information ===
    LOG: User = NT AUTHORITY\NETWORK SERVICE
    LOG: DisplayName = System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///C:/Users/owner/Documents/Visual Studio 2008/Projects/MVP/
    LOG: Initial PrivatePath = C:\Users\owner\Documents\Visual Studio 2008\Projects\MVP\bin
    Calling assembly : Sample.Web.UI.WebParts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\owner\Documents\Visual Studio 2008\Projects\MVP\web.config
    LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Aspnet.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Post-policy reference: System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    
     
    
    Stack Trace: 
    
    
    [FileNotFoundException: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
       Sample.Web.UI.WebParts.WebPartManager.RegisterClientScript() +0
       System.Web.UI.WebControls.WebParts.WebPartManager.OnPreRender(EventArgs e) +363
       System.Web.UI.Control.PreRenderRecursiveInternal() +80
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    
     
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016 


     

    Sunday, October 4, 2009 1:10 PM