Problem With New Build

Last post 05-20-2008 2:18 PM by davidebb. 25 replies.

Sort Posts:

  • Problem With New Build

    05-13-2008, 2:06 PM
    • Loading...
    • tlanier
    • Joined on 04-29-2008, 1:20 PM
    • Posts 67

    I just upgraded to Visual Studio 2008 SP1 Beta and the new 05/12/08 build of Dynamic Data.

    I get a compile error in my partial class file.

    Error 1 The type or namespace name 'ScaffoldAttribute' could not be found (are you missing a using directive or an assembly reference?) 

    Error 2 The type or namespace name 'Scaffold' could not be found (are you missing a using directive or an assembly reference?)

     

    [MetadataType(typeof(VersionRow_Metadata))]
    public partial class VersionRow {
    }
    
    [Scaffold(false)]
    public class VersionRow_Metadata {
        
    
     

    Intellisense still shows the Scafford Attribute but it won't compile.

    Also, do we need to copy the DLL's to the GAC as before to get Intellisense to work correctly? 

    Tommy 

     

  • Re: Problem With New Build

    05-13-2008, 2:18 PM
    Answer
    • Loading...
    • davidebb
    • Joined on 06-11-2002, 8:31 AM
    • Redmond, WA
    • Posts 854
    • AspNetTeam

    We split this attribute into two: ScaffoldTable and ScaffoldColumn (here you want table).

    Normally, if you run our setup batch file, it should update everythign and intellisense should just work.

    David

  • Re: Problem With New Build

    05-13-2008, 7:18 PM
    • Loading...
    • tlanier
    • Joined on 04-29-2008, 1:20 PM
    • Posts 67

    Apparently something didn't install correctly. I ran the INSTALL.CMD file from a Visual Studio 2008 command prompt as described; no errors were generated. 

    I created a new web site using the new wizard. I then edited the partial class file. Intellisense only shows Scaffold, not ScaffoldTable and ScaffoldColumn. If I add ScaffoldTable I get a compile error. 

    [ScaffoldTable(false)]
    public class VersionRow_Metadata {
     

    Error 1 The type or namespace name 'ScaffoldTable' could not be found (are you missing a using directive or an assembly reference?)  

    Tommy

      

  • Re: Problem With New Build

    05-13-2008, 7:23 PM
    • Loading...
    • davidebb
    • Joined on 06-11-2002, 8:31 AM
    • Redmond, WA
    • Posts 854
    • AspNetTeam

    Strange.  If you look in your \Program Files\Reference Assemblies\Microsoft\Framework\v3.5 folder, does it look like System.Web.DynamicData.dll was updated?

    David

  • Re: Problem With New Build

    05-13-2008, 7:32 PM
    • Loading...
    • tlanier
    • Joined on 04-29-2008, 1:20 PM
    • Posts 67

    Does this show you want you need to know? 

     Volume in drive C has no label.
     Volume Serial Number is 04CA-58BD

     Directory of C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5

    05/13/2008  07:31 PM    <DIR>          .
    05/13/2008  07:31 PM    <DIR>          ..
    04/28/2008  09:00 PM           106,496 Microsoft.Build.Conversion.v3.5.dll
    08/16/2007  03:22 PM             5,140 Microsoft.Build.Conversion.v3.5.xml
    04/28/2008  09:00 PM           733,184 Microsoft.Build.Engine.dll
    09/27/2007  05:25 PM           154,104 Microsoft.Build.Engine.xml
    04/28/2008  09:00 PM            36,864 Microsoft.Build.Framework.dll
    09/19/2007  05:41 PM            72,220 Microsoft.Build.Framework.xml
    04/28/2008  09:00 PM            94,208 Microsoft.Build.Utilities.v3.5.dll
    09/24/2007  05:23 PM            38,332 Microsoft.Build.Utilities.v3.5.xml
    04/28/2008  09:00 PM            41,984 Microsoft.VisualC.STLCLR.dll
    09/19/2007  05:41 PM           256,861 Microsoft.VisualC.STLCLR.xml
    05/13/2008  10:12 AM    <DIR>          RedistList
    05/13/2008  10:12 AM    <DIR>          SubsetList
    04/28/2008  09:00 PM            45,056 System.AddIn.Contract.dll
    09/21/2007  05:32 PM           150,581 System.AddIn.Contract.xml
    04/28/2008  09:00 PM           163,840 System.AddIn.dll
    09/24/2007  05:23 PM            43,709 System.AddIn.xml
    05/08/2008  02:15 PM            61,440 System.ComponentModel.DataAnnotations.dll
    04/28/2008  09:00 PM           667,648 System.Core.dll
    09/27/2007  05:26 PM         1,092,904 System.Core.xml
    04/28/2008  09:00 PM            53,248 System.Data.DataSetExtensions.dll
    09/27/2007  05:26 PM            47,667 System.Data.DataSetExtensions.xml
    04/28/2008  09:00 PM           225,280 System.Data.Entity.Design.dll
    03/10/2008  10:38 PM            36,121 System.Data.Entity.Design.xml
    04/28/2008  09:00 PM         2,891,776 System.Data.Entity.dll
    03/10/2008  10:38 PM           490,286 System.Data.Entity.xml
    04/28/2008  09:00 PM           684,032 System.Data.Linq.dll
    09/24/2007  05:23 PM           148,547 System.Data.Linq.xml
    04/28/2008  09:00 PM           262,144 System.Data.Services.Client.dll
    04/28/2008  09:00 PM           106,496 System.Data.Services.Design.dll
    04/28/2008  09:00 PM           434,176 System.Data.Services.dll
    04/28/2008  09:00 PM           286,720 System.DirectoryServices.AccountManagement.dll
    09/27/2007  05:26 PM           178,710 System.DirectoryServices.AccountManagement.xml
    04/28/2008  09:00 PM           143,360 System.Management.Instrumentation.dll
    09/24/2007  05:23 PM             7,568 System.Management.Instrumentation.xml
    04/28/2008  09:00 PM           233,472 System.Net.dll
    09/27/2007  05:26 PM           272,377 System.Net.xml
    04/28/2008  09:00 PM           561,152 System.ServiceModel.Web.dll
    09/20/2007  05:42 PM           320,905 System.ServiceModel.Web.xml
    05/08/2008  02:15 PM            90,112 System.Web.Abstractions.dll
    05/08/2008  02:16 PM            32,768 System.Web.DynamicData.Design.dll
    05/08/2008  02:16 PM           241,664 System.Web.DynamicData.dll
    04/28/2008  09:00 PM           131,072 System.Web.Entity.Design.dll
    04/28/2008  09:00 PM           131,072 System.Web.Entity.dll
    04/28/2008  09:00 PM           331,776 System.Web.Extensions.Design.dll
    09/24/2007  05:24 PM            59,302 System.Web.Extensions.Design.xml
    04/28/2008  09:00 PM         1,253,376 System.Web.Extensions.dll
    09/28/2007  12:36 PM           569,009 System.Web.Extensions.xml
    05/08/2008  02:15 PM            69,632 System.Web.Routing.dll
    04/28/2008  09:00 PM            11,264 System.Windows.Presentation.dll
    09/24/2007  05:24 PM             2,161 System.Windows.Presentation.xml
    04/28/2008  09:00 PM           507,904 System.WorkflowServices.dll
    09/21/2007  05:32 PM           196,925 System.WorkflowServices.xml
    04/28/2008  09:00 PM           139,264 System.Xml.Linq.dll
    09/19/2007  05:41 PM           169,961 System.Xml.Linq.xml
    05/13/2008  07:31 PM                 0 test
                  53 File(s)     15,085,870 bytes
                   4 Dir(s)   9,379,536,896 bytes free

  • Re: Problem With New Build

    05-13-2008, 7:42 PM
    • Loading...
    • davidebb
    • Joined on 06-11-2002, 8:31 AM
    • Redmond, WA
    • Posts 854
    • AspNetTeam

    It seems you have the new System.ComponentModel.DataAnnotations.dll in there (that's where the atribs are, not in System.Web.DynamicData.dll).  I'm confused where VS might be getting its references if not from there.

    If you run the app (ignoring errors in VS), does it run in the browser, or also fails?

  • Re: Problem With New Build

    05-13-2008, 7:55 PM
    • Loading...
    • tlanier
    • Joined on 04-29-2008, 1:20 PM
    • Posts 67

    The app runs in the browser; however, the table that has the "[ScaffoldTable(false)]" still shows.

    Also be aware that I did copy the DLL's from the previous build to "\windows\Microsoft.NET\Framework\v2.0.50727" as described in one of your previous posts:

    http://forums.asp.net/p/1256944/2343877.aspx#2343877

    Tommy

     

  • Re: Problem With New Build

    05-13-2008, 8:54 PM
    • Loading...
    • davidebb
    • Joined on 06-11-2002, 8:31 AM
    • Redmond, WA
    • Posts 854
    • AspNetTeam

    Hmmm, you were not supposed to do that with the new build. Tongue Tied  That was a temporay hack when we were getting Dynamic Data to run on top of VS 2008.  Now that we run on top of VS 2008 SP1, the System.Web that comes with it should be the right one.  That may be the cause of the issues, though it's hard to say for sure.

    I think it might be worth trying to repair your VS SP1 to get it back to a clean state.  To do this, go to Add/Remove, find VS 2008 SP1, choose Change and ask it to repair itself.  Note that this will remove the 5/12 DD build.

    After you do that, I'd suggest trying to use the SP1 DD without the 5/12 build, just to see if it works correctly (here the attribute will be called Scaffold).  If all looks good, re-install the 5/12 build, and hopefully all we be well!

  • Re: Problem With New Build

    05-13-2008, 9:01 PM
    • Loading...
    • tlanier
    • Joined on 04-29-2008, 1:20 PM
    • Posts 67

    No, I didn't do it with the new build. I was just trying to remind you of what was done about a week ago before the new build was installed today.

    I still do what you suggested and report back.

    Tommy

  • Re: Problem With New Build

    05-13-2008, 9:20 PM
    • Loading...
    • tlanier
    • Joined on 04-29-2008, 1:20 PM
    • Posts 67

    It turns out there is no entry in add/remove programs for Visual Studio 2008 SP1.

    Even though Visual Studio SP1 Beta installed and runs, it did not create an entry in the add/remove programs.

    This particular computer has both Visual Studio 2005 and 2008 installed on it if that matters.

    Tommy

     

  • Re: Problem With New Build

    05-14-2008, 2:59 AM
    • Loading...
    • sjnaughton
    • Joined on 04-29-2008, 5:11 PM
    • Newton-le-Willows, UK
    • Posts 319

    Hi Tommy if you are running Window Vista you will need to click "View Installed Updates" in addremove programs where you will see a list of updates (sort by date and the update will all be grouped by the day you installed them) for on the 12th.

    Alternativly just reinstall the service pack

    Steve

    Seeking the elegant solution.
    [Oh! If olny I colud tpye!Confused]
    c# Bits blog
  • Re: Problem With New Build

    05-14-2008, 7:47 AM
    • Loading...
    • tlanier
    • Joined on 04-29-2008, 1:20 PM
    • Posts 67

    Steve,

    I'm running Windows XP SP2, not Vista. There is an entry in add/remove programs for "Microsoft Visual Studio 2008 Professional - ENU", but nothing for the SP1, Beta version.

    I guess I'll try reinstalling the service pack on top of itself like you suggested.

    Tommy

  • Re: Problem With New Build

    05-14-2008, 8:10 AM
    • Loading...
    • sjnaughton
    • Joined on 04-29-2008, 5:11 PM
    • Newton-le-Willows, UK
    • Posts 319

    Hi Tommy on XP SP2 in the "Add Remove programs" window there is a check box at the top called "Show Update" try checking it.

    I think however there are several thinks that show with (Beta) in there name so maybe reinstall is best.

    If this does not fix it there may be a remove tool you can always ask to see if one is available (because we will need to get it removed when the next or RTM comes out)

    Steve

    Seeking the elegant solution.
    [Oh! If olny I colud tpye!Confused]
    c# Bits blog
  • Re: Problem With New Build

    05-14-2008, 9:37 AM
    • Loading...
    • sjnaughton
    • Joined on 04-29-2008, 5:11 PM
    • Newton-le-Willows, UK
    • Posts 319

    Just a note the uninstall info is in the readme file Embarrassed VS 2008 SP1 uninstall

    Steve

    Seeking the elegant solution.
    [Oh! If olny I colud tpye!Confused]
    c# Bits blog
  • Re: Problem With New Build

    05-14-2008, 9:59 AM
    • Loading...
    • tlanier
    • Joined on 04-29-2008, 1:20 PM
    • Posts 67

    Steve,

    Thanks for the pointers. The problem is on my computer at home. I use it to test before I install things at work. I'll do the uninstall at lunch today.

    Tommy

<