You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I tried 2 chapters - 4 and 7, and got the same type of error:
Message 1 Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration'. C:\Web\SurveyEngine\web.config 11 2 C:\Web\SurveyEngine
Any ideas?
This sounds like you forgot to configure IIS to use ASP.NET 2.
To do this, open up the IIS Manager, locate your site or virtual directory, right click it and choose Properties. On the ASP.NET 2 tab, make sure that V2 is selected....
Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration'.
The answer seems pertinent, that the IIS is not using .net v2, but I see no IIS Manager anywhere in order to change that. I am using XP Professional. I am sure IIS is on this machine somewhere but I know fo no "IIS Manager" front end.
I have read through some of your posts, and you have been very helpful to others, and thanks for your response to this. Hopefully my questions aren't too dumb! :)
I tried what you said - I had already looked at the admin tools and it isn't there! I then tried inetmgr as you suggested, from Run, and it says it can't be found. This is most confusing to me since I have a web app that I am trying to develop and it does actually run, at least in debug mode within the development environment. FYI I am using the MS Visual Web Developer 2005 Express - freeware, as that is what my current budget will allow. :)
When my web app is running, I see this on my taskbar:
asp.net development server - port 2565
So maybe it doesn't use IIS? But I thought a local IIS was installed with XP Pro? Certainly I have the .Net framework. I see this in my admin tools window: Microsoft .NET Framework 2.0 Configuration
confused.
Any help appreciated. I am out of my depth here. I have been a programmer in past but am out of touch.
IIS does indeed come with Windows XP, but it's not installed by default. When inetmgr gives you a "not found" message, there's a fair chance it's not installed. To fix that you need to do two things: install IIS and then reconfigure the .NET Framework so it registers itself with IIS.
1. Open the Add/Remove programs section of the control panel and choose Add / Remove Windows Components. From the dialog that follow, install IIS. You may need to reboot.
2. Open up a command prompt and navigate to:
%windir%\Microsoft.NET\Framework\v2.0.50727
Type the following command at the command prompt:
aspnet_regiis.exe -i
Wait a bit while the tool registers ASP.NET with IIS
From here, things should work as expected when it comes to IIS.
Will do and thanks for your help to this point - you got me started. BTW I do have MS VS 2005 installed but I can't get past this error? While I have your attention... you seem knowledgeable so maybe you know about this:
"The application for ...is not installed." I don't know what it thinks is not installed? This error occurs for several web apps that I can open and run just fine in the freeware Web Developer app but I understand it is limited and I am better in VS 2005.
I wouldn't be such a pest if I knew where to go for some better general overview info. Somehow you never see these install / compatibility issues covered in books.
The error can come from different sources. For example, when you try to open a .csproj file (C# project) without C# support installed, you get this error.
Maybe you're opening a project that uses the Web Application Project? if that's the case, make sure you install Service Pack 1 for VS 2005 as that also installs WAP.
If that doesn't help, I don't know the solution. In "The application for ...is not" the reason for ... is crucial to determine what is not installed.