Problem With New Build

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

Sort Posts:

  • Re: Problem With New Build

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

    tlanier:
    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:

    I wonder Tommy did yo perhaps make a backup of the  System.Web DLL before copying over it if so you copy it back (or bring a copy of it from work if same OS)

    Steve

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

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

    Yes, I could try that too. I don't really understand why V2.0 framework files would even be involved. It seems like the install of the new Visual Studio would copy whatever it required to the proper places.

    It may be time for me to just reformat and reinstall everything from scratch. I installed many updates and betas along the way on that computer. I hate to do it since I will lose quite a bit of time starting over. I'll do the uninstall and reinstall before giving up. 

    Tommy

  • Re: Problem With New Build

    05-14-2008, 2:35 PM
    • Loading...
    • davidebb
    • Joined on 06-11-2002, 12:31 PM
    • Redmond, WA
    • Posts 854

    One thing I would try to get to the bottom of it is running ListDlls (as I described in this old thread) to figure out where it gets loaded from (both by VS and by the web server).  Maybe there is a rogue copy somewhere.

    David

  • Re: Problem With New Build

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

    You’re exactly right. I totally missed the “Show Update” check box at the top of the screen. I now have 3 Visual Studio 2008 SP1 Beta updates lines showing ready to be removed. Toward the end of the removal process you have to insert the original Visual Studio 2008 DVD.

     

    I also discovered that I had a Beta version of the 3.0 framework on the computer. When I tried to remove it, it said I had to uninstall SQL Server 2005 Express.

     Thanks, Tommy 

     

  • Re: Problem With New Build

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

    Advice needed.

    My goal is to get a development system that I can use to continue developing a Dynamic Data project. While everyone else is having fun, I'm still trying to get back to a place I was at before trying to upgrade to VStudio SP1 Beta.

    I orginally was working on an older computer that had been used to test other beta products. I attempted to uninstall all the beta products, but two of them would not uninstall (DotNet Framework 2.0 Beta and DotNet Framework 3 Beta). If I ran the uninstall it would tell me it could not be uninstalled since some program depended on it (it wouldn't tell me what program that was). When I ran the special uninstall tool and said there was no program to uninstall. I had read Scott Gu's blog about making sure you uninstall all betas before trying SP1 Beta, so I knew I was in trouble. 

    Everybody was being helpful with suggestions; however, I felt guilty taken up others valuable time working on something that was probably my fault. I finally decided it was time to start clean. I needed a new computer anyway, so I decided this was the ideal time to start from scratch. I wanted to be using an environment that would not be questioned when I had a problem to troubleshoot.

    Two or three years ago I had tried using Virtual PC for my development, but I finally gave it up as too slow and buggy. I decided to give it another shot. Here's what I did in the sequence that I did it. I see that I made some mistakes along the way. Maybe this will help someone else.

    • I bought a Quad core Q6600 with 4 Gigabytes of memory running Vista Home Premium 64 bit with SP1. This was best deal at Circuit City for less than $1,000.
    • This is my first step into 64bit Windows. One concern is whether I'm now runing outside the main stream and will experience bugs that most people do not.
    • My next concern is whether running in a virtual environment will cause problems that I would not have had otherwise.
    • My first step was to install Virtual PC 2007; however, I instantly discovered that it doesn't work with Vista Home Premium.
    • My next decision was whether to upgrade to Vista Ultimate or try VMware desktop which is compatible with Vista Home. Not knowing how involved the upgrade to Ultimate would be I decided that VMware might be the better route.
    • Next I installed Windows XP SP2 on a 30 GB virtual drive.
    • Next I installed Visual Studio 2008.
    • I then realized that I had not installed all the service patches to XP. This would be a good time to try SP3 which I had not yet tried. I downloaded the version that can be installed on more than one computer, because I knew I would be using it again.
    • I then tried a simple project in Visual Studion 2008 and instantly realized that I had not installed IIS after installing XP. I immediately started worrying about what affect installing IIS from the SP2 CD would have after already installing SP3. At this point I realized I didn't have a choice but to continue on.
    • Next I installed IIS.
    • Next I installed Visual Studio 2008 SP1 Beta
    • Interestly, SP3 does not install IE7. I did a Windows Update and installed it and more patches. 
    • Next I installed SQL Server Management Studio Express so I could restore my database backup
    • I created a new Dynamic Data web site
    • When I run the program it gives me an error about the web server not being configured correctly. I manually configured the web site and selected ASP.Net 2.0.x. Still if I run the page, I get the error shown below:
    • My real question is whether I should just start over or should I try to troubleshoot the current problem and move forward?
    • Was my main mistake not installing IIS before I did SP3?
    • Are others running in a virtual enviornment with no problems?
    • Are others running Vista 64 bit with no problems or do most developers still use Vista 32 bit or XP Professional SP2?
    Failed to access IIS metabase. 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.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.  The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904. 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.   Stack Trace:   [HostingEnvironmentException: Failed to access IIS metabase.]   System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +637   System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath2.MapPath(String siteID, VirtualPath vpath) +9   System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +174   System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath, Boolean permitNull) +51   System.Web.CachedPathData.GetConfigPathData(String configPath) +344   System.Web.CachedPathData.GetConfigPathData(String configPath) +234   System.Web.CachedPathData.GetApplicationPathData() +38   System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +8767583   System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +117    --------------------------------------------------------------------------------Version Information: Microsoft .NET Framework Version:2.0.50727.3031; ASP.NET Version:2.0.50727.3031

     

  • Re: Problem With New Build

    05-20-2008, 10:56 AM
    • Loading...
    • tlanier
    • Joined on 04-29-2008, 1:20 PM
    • Posts 67

    I forgot to mention that I did install the 5/12/08 update to Dynamic Data after installing the VStudio SP1 Beta.

    Thanks,

    Tommy

  • Re: Problem With New Build

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

    Hi Tommy,

    Sorry to hear you have to go through so much trouble.  I wouldn't think that the order of the IIS install should matter, but eveidently something is going on.

    I would give a try to running 'aspnet_regiis -i' from a VS cmd prompt to see if that helps.  Also, try first getting a simple Hello World ASP.NET web site running before trying Dynamic Data, just to keep things simpler at first.

    David

  • Re: Problem With New Build

    05-20-2008, 12:26 PM
    • Loading...
    • scothu
    • Joined on 12-10-2007, 1:54 AM
    • Redmond, WA
    • Posts 106

    Have you gone through the steps to get VS 2008 to work properly with IIS 7? It sounds like you have not installed the IIS 6.0 Metabase Compatability. Check out his link for how to configure IIS 7 to work properly with VS 2008: http://learn.iis.net/page.aspx/387/using-visual-studio-2008-with-iis-70/

    Scott Hunter
    ASP.NET
  • Re: Problem With New Build

    05-20-2008, 1:33 PM
    • Loading...
    • scothu
    • Joined on 12-10-2007, 1:54 AM
    • Redmond, WA
    • Posts 106

    Wanted to retract my last comment since you are running VS 2008 on XP and not Vista, my comments about IIS 7 are all based on you running on Vista and not on XP.

    Scott Hunter
    ASP.NET
  • Re: Problem With New Build

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

    It's working!

    Running 'aspnet_regiis -i' from a VS cmd prompt fixed the initial problem.

    It then gave me an error: "Debugging Failed Because Integrated Windows Authentication Is Not Enabled". That was easily fixed by following the directions given:

    http://msdn.microsoft.com/en-us/library/x8a5axew(VS.80).aspx

    Thanks for all the help. I'm now back in the ballgame.

    Tommy

     

  • Re: Problem With New Build

    05-20-2008, 2:18 PM
    • Loading...
    • davidebb
    • Joined on 06-11-2002, 12:31 PM
    • Redmond, WA
    • Posts 854

    Glad to hear that Tommy!

Page 2 of 2 (26 items) < Previous 1 2