regrading using validation web controls in asp.net
hi,
i am working on ASP.net under windows xp os by using webmatrix project.
i added a requiredfieldvalidator web control to my web form to validate a textbox.
when i execute this form through IE 6 i get the following error
unable to find script library '/aspnet_client/system_web/1_0_3705_0/WebUIValidation.js'. Try
placing this file manually, or reinstall by running 'aspnet_regiis -c'
i tried to place this file manually and also tried to run through the command prompt
i get the following error message when i try to install the file:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>aspnet_regiis.exe -c
Start copying the ASP.NET client side script files for this version (1.1.4322.0)
.
An error has occurred (0x80040154).
The error indicates that IIS is not installed on the machine. Please install IIS
before using this tool.
should i install the IIS because the web matrix project itself comes with the web server.
So is there any other way through which i can solve the problem without installing IIS
Thanks in Advance
[1170 byte] By [
indum] at [2007-11-11 6:39:31]

# 1 Re: regrading using validation web controls in asp.net
Looks like you have mismatched .NET versions: the error message specifies version 1.0.3705.0, but your .NET Framework is version 1.1.4322. You might look through your .aspx pages and replace references to "/aspnet_client/system_web/1_0_3705_0/" with "/aspnet_client/system_web/1_1_4322/". If that doesn't work, you could install IIS, run aspnet_regiis, then uninstall IIS.
# 2 Re: regrading using validation web controls in asp.net
There are also known issues with installing Web Matrix before installing IIS. There is a specific fix for this but I think Microsoft has removed all the WebMatrix links; I looked, and can't find it.
The problem, and its fix, are also mentioned in the book from Microsoft Press on WebMatrix, so if you can find it in a bookstore or library, you can look up the fix in the book. I suspect this is what's causing your problem.
In addition, I recommend dumping WebMatrix and getting the free Visual Web Developer 2005 Express Edition here: http://lab.msdn.microsoft.com/express/vwd/
It supports version 2.0 of the .NET Framework, which will be released later this year. Why learn the version of the Framework that's about to become obsolete? It also has tons more controls which allow you to eliminate a lot of coding.
Just make sure you install IIS first: from the Add or Remove Programs | Add/Remove Windows Components applet in Control Panel. It's labeled "Internet Information Services (I.I.S)". You can either add the whole thing, or drill down and add "World Wide Web Service".
You'll probably also want to remove the earlier version of the .NET framework, and WebMatrix, first; you can always put the Framework back later.
As a last gasp attempt to get WebMatrix working, you could try removing WebMatrix, then removing the .NET Framework; then installing IIS, then re-installing WebMatrix and the .NET Framework. This may not work, though; it seems to me I remember an issue with this, which is why I suggested you try to track down the info on the official fix.
-Andrew