Simple web site problem on Vista, related to <providerOption>

Last post 03-12-2008 2:13 AM by ron.westbrook. 6 replies.

Sort Posts:

  • Simple web site problem on Vista, related to <providerOption>

    11-27-2007, 7:08 AM
    • Loading...
    • GAuty
    • Joined on 07-15-2002, 12:49 PM
    • Leeds, Yorkshire, UK
    • Posts 12

    I already posted on this but my subject line mentioned IIS7 so I didn't get many replies.

    I've installed the RTM release of VS 2008 (apparently without problem) on 32-bit Vista Ultimate on both a laptop and a desktop, and when I try to create a new web site (File/New/Web Site, select ASP.NET Web Site, File System, VB or C# and hit OK), I get an error on the default page's page directive - "Child nodes not allowed", which indicates an error in the web.config file in the following section, with the highlighted line as the supposed error:

    <system.codedom>
      <
    compilers>
        <
    compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
          <
    providerOption name="CompilerVersion" value="v3.5"/>
          <
    providerOption name="WarnAsError" value="false"/>
       
    </compiler>
        <
    compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
          <
    providerOption name="CompilerVersion" value="v3.5"/>
          <
    providerOption name="OptionInfer" value="true"/>
          <
    providerOption name="WarnAsError" value="false"/>
       
    </compiler>
      </
    compilers>
    </
    system.codedom>

    Neither machine has had any of the VS2008 betas on it but they both have VS2005 on them.

    Doing the exact same thing on a Windows XP VM works fine.

    Various posts elsewhere imply that some update to the 2.0 version of the .NET framework is required to allow it to understand this amendment (the <providerOption> tag) to the format of the web.config file for 3.5-based sites (which I understand run under 2.0 in IIS), and that this should have been applied during the installation of VS2008. Is this true? If not, is there a separate download to apply this update to 2.0?

    Other posts say that you can remove the offending lines from web.config and it all works fine - unless you want to use any LINQ features. Who doesn't !!!???

    I'd really appreciate some help on this as I was hoping to use VS2008 on Vista for all my projects ASAP - I don't want to have to rely on XP-based VMs as I have been doing because of the problems with running VS2005 on Vista, and I've already wasted 2 days with this problem.

    Graham

  • Re: Simple web site problem on Vista, related to <providerOption>

    11-30-2007, 8:49 AM
    Answer
    • Loading...
    • GAuty
    • Joined on 07-15-2002, 12:49 PM
    • Leeds, Yorkshire, UK
    • Posts 12

    I think I've found the solution to this, after a lot of digging around.

    With this problem, as well as the ASP.NET web site error, you also get:

    • a problem opening the form designer in a Windows Forms application ("The service Microsoft.VisualStudio.Shell.Interop.ISelectionContainer already exists in the service container. Parameter name: serviceType.")
    • an error when you try to compile a console application ("Required file 'alink.dll with IAlink3' could not be found").

    There are probably other situations which produce errors as well, but I was so disheartened I didn't test any more!

    [Incidentally, it would help a great deal if you could copy the text of an error message out of the dialog box when an error occurs. Microsoft used to allow you to do this, as I recall with SQL 2005 errors, but these errors don't allow it and it's a pain copying them down due to their length.]

    However, it seems that the installation disc for VS2008 Pro contains a couple of patches which should normally be installed during the installation of VS2008, but for some reason as yet undetermined, were not in my case (although I have seen mention that it's something to do with Office 2007, but I can't confirm that). Remember, I had the identical situation on both my desktop and my laptop.

    These patches are in the folder [drive]:\WCU\dotNetFramework\dotNetMSP\[x64 | x86] and should be installed in this order:

    1. NetFX2.0-KB110806-v6000-x[64 | 86].msu
    2. NetFX3.0-KB929300-v6000-x[64 | 86].msu

    There are also a couple of other patches in this folder, NetFX2.0-KB936704-v6000-x[64 | 86]_RTM-en.msu and NetFX2.0-KB936705-v6000-x[64 | 86]_RTM-en.msu, but these both fail if you try to install them. I suspect that these may be called during the VS2008 installation to bootstrap the installation of the patches above. Note that if you search for these Knowledge Base articles on the Microsoft site, the articles either do not exist, or they make no mention of any of these problems.  

    I hope this helps other people to get round this problem, which has consumed far too much of my time. Microsoft plase take note - this is affecting tons of people and cannot be swept under the carpet because you can't reproduce it on a clean install of Vista. If you want to encourage developers to use VS2008 on Vista, make sure it installs correctly on real-world boxes.

    I'm now up and running and can get down to work - just in time for the weekend Smile

    Graham

  • Re: Simple web site problem on Vista, related to <providerOption>

    01-18-2008, 12:25 PM
    • Loading...
    • ajax.siva
    • Joined on 01-17-2008, 10:00 PM
    • Posts 4

    Hi Graham,

    Thank you for figuring this out. I had this same issue posted under a differnt subject http://forums.asp.net/t/1207167.aspx. Applying these patches fixed my VS2008 on Vista issues.

    Siva

    Filed under:
  • Re: Simple web site problem on Vista, related to <providerOption>

    03-09-2008, 10:56 AM
    • Loading...
    • NickKA
    • Joined on 02-15-2003, 9:29 AM
    • Posts 89

    I would like to apply these patches because I have the same problem, but I can't find them!

    You say [drive]:\WCU\... I have a C; and D: drive but none have a WCU directory. I looked for these patches in the Visual Studio.Net 2008 DVD but it's mostly CAB files and I don't see any patches. I also did a search on Windows Update and microsoft.com and did not find these patches to download.

    Can someone please tell me where to find these patches?

  • Re: Simple web site problem on Vista, related to <providerOption>

    03-09-2008, 3:02 PM
    • Loading...
    • GAuty
    • Joined on 07-15-2002, 12:49 PM
    • Leeds, Yorkshire, UK
    • Posts 12

    NickKA:

    I would like to apply these patches because I have the same problem, but I can't find them!

    You say [drive]:\WCU\... I have a C; and D: drive but none have a WCU directory. I looked for these patches in the Visual Studio.Net 2008 DVD but it's mostly CAB files and I don't see any patches. I also did a search on Windows Update and microsoft.com and did not find these patches to download.

    Can someone please tell me where to find these patches?

    Hi NickKA,

    When I mentioned [drive]:\WCU\... I was referring to the DVD drive letter - the patches are in the folder WCU on the VS2008 DVD. You don't mention which version of VS2008 you have, but my notes related to the Professional version.

    Hope this helps,

    Graham 

  • Re: Simple web site problem on Vista, related to <providerOption>

    03-09-2008, 3:33 PM
    • Loading...
    • NickKA
    • Joined on 02-15-2003, 9:29 AM
    • Posts 89

    Your right Graham, they are there. I'm installing from the Team Edition.

    Thank You.

  • Re: Simple web site problem on Vista, related to <providerOption>

    03-12-2008, 2:13 AM
    • Loading...
    • ron.westbrook
    • Joined on 12-19-2007, 8:39 PM
    • McQueeney, TX
    • Posts 11

    Where are the patches located on the team system DVD?

    Ron Westbrook
    Software Engineer/Owner
    Westbrook Solutions Group
Page 1 of 1 (7 items)