473,466 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Validation works on one server but not on the other

I saw a few people on the web having this problem, yet no solution.
Validation using RequiredFieldValidator works fine on my server, but on some
other server it doesn't do anything. Oh, and I'm using client-side
validation.

Any ideas?
Nov 19 '05 #1
6 1079
Sounds like your website on the second server might not have the
aspnet_client files. Are you getting any javascript errors when the
page is displayed?

You can try running the following command on that server to (re)install
the client scripts:
aspnet_regiis -c
The default location for aspnet_regiis.exe is
C:\Windows\Microsoft.NET\Framework\v1.1.4322.
http://msdn.microsoft.com/library/de..._regiisexe.asp

If that doesn't fix it, and you are getting a JS error, see this for
some other ideas:
http://weblogs.asp.net/rosherove/arc.../06/30652.aspx

- Jon
http://weblogs.asp.net/jgalloway

Nov 19 '05 #2
Looks like you might be missing some of the .js scripts that the client
validator needs. Normally, the page will protest if you try to use
client validation without them present, but you may just be out of
synch.

On the box that's not working, try:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspne t_regiis.exe -c

Good luck!

Jason
http://www.expatsoftware.com/

Nov 19 '05 #3
No, there is no JavaScript error.

Thanks a million jongalloway and jasonkester, I have a feeling
"aspnet_regiis -c" will fix it :)

Yours,
Andrei Pociu

"Andrei Pociu" <an**********@geekpedia.com> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
I saw a few people on the web having this problem, yet no solution.
Validation using RequiredFieldValidator works fine on my server, but on
some other server it doesn't do anything. Oh, and I'm using client-side
validation.

Any ideas?

Nov 19 '05 #4
Do you know if there is a way to install these files on one web site
only? We have a web server with loads of sites, most of them Classic
ASP, and we would like to install the ASP.NET client files on the (so
far few) ASP.NET sites only.

Running the aspner_regiis utility copies the files to every site on the
server.

On the production server, all sites are under one folder, ie we have one
at F:\WebFolders\SiteOne and another at F:\WebFolders\SiteTwo and so on.
On the development machine they are all over the place. Don't know if
this makes a difference.

TIA
Sounds like your website on the second server might not have the
aspnet_client files. Are you getting any javascript errors when the
page is displayed?

You can try running the following command on that server to (re)install
the client scripts:
aspnet_regiis -c
The default location for aspnet_regiis.exe is
C:\Windows\Microsoft.NET\Framework\v1.1.4322.
http://msdn.microsoft.com/library/de.../en-us/cptools
/html/cpgrfASPNETIISRegistrationToolAspnet_regiisexe.asp

If that doesn't fix it, and you are getting a JS error, see this for
some other ideas:
http://weblogs.asp.net/rosherove/arc.../06/30652.aspx

- Jon
http://weblogs.asp.net/jgalloway


--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #5
Using the command-line and aspnet_regiis,
you can specify the virtual directory(ies)
into which to install the client scripts.

Just run aspnet_regiis without a parameter,
and you'll get the syntax to do that.

IIRC, it's -sn <path>
i.e. :
aspnet_regiis.exe -sn W3SVC/1/ROOT/YourApp

aspnet_regiis.exe -lk will give you a list of all
directories where ASP.NET is currently installed.

[ In case you screw up, and have to use
aspnet_regiis.exe -k to remove it... ;-) ]

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Alan Silver" <al*********@nospam.thanx> wrote in message
news:ww**************@nospamthankyou.spam...
Do you know if there is a way to install these files on one web site only?
We have a web server with loads of sites, most of them Classic ASP, and we
would like to install the ASP.NET client files on the (so far few) ASP.NET
sites only.

Running the aspner_regiis utility copies the files to every site on the
server.

On the production server, all sites are under one folder, ie we have one
at F:\WebFolders\SiteOne and another at F:\WebFolders\SiteTwo and so on.
On the development machine they are all over the place. Don't know if this
makes a difference.

TIA
Sounds like your website on the second server might not have the
aspnet_client files. Are you getting any javascript errors when the
page is displayed?

You can try running the following command on that server to (re)install
the client scripts:
aspnet_regiis -c
The default location for aspnet_regiis.exe is
C:\Windows\Microsoft.NET\Framework\v1.1.4322.
http://msdn.microsoft.com/library/de.../en-us/cptools
/html/cpgrfASPNETIISRegistrationToolAspnet_regiisexe.asp

If that doesn't fix it, and you are getting a JS error, see this for
some other ideas:
http://weblogs.asp.net/rosherove/arc.../06/30652.aspx

- Jon
http://weblogs.asp.net/jgalloway


--
Alan Silver
(anything added below this line is nothing to do with me)

Nov 19 '05 #6
Thanks Juan
Using the command-line and aspnet_regiis,
you can specify the virtual directory(ies)
into which to install the client scripts.

Just run aspnet_regiis without a parameter,
and you'll get the syntax to do that.

IIRC, it's -sn <path>
i.e. :
aspnet_regiis.exe -sn W3SVC/1/ROOT/YourApp

aspnet_regiis.exe -lk will give you a list of all
directories where ASP.NET is currently installed.

[ In case you screw up, and have to use
aspnet_regiis.exe -k to remove it... ;-) ]

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Alan Silver" <al*********@nospam.thanx> wrote in message
news:ww**************@nospamthankyou.spam...
Do you know if there is a way to install these files on one web site only?
We have a web server with loads of sites, most of them Classic ASP, and we
would like to install the ASP.NET client files on the (so far few) ASP.NET
sites only.

Running the aspner_regiis utility copies the files to every site on the
server.

On the production server, all sites are under one folder, ie we have one
at F:\WebFolders\SiteOne and another at F:\WebFolders\SiteTwo and so on.
On the development machine they are all over the place. Don't know if this
makes a difference.

TIA
Sounds like your website on the second server might not have the
aspnet_client files. Are you getting any javascript errors when the
page is displayed?

You can try running the following command on that server to (re)install
the client scripts:
aspnet_regiis -c
The default location for aspnet_regiis.exe is
C:\Windows\Microsoft.NET\Framework\v1.1.4322.
http://msdn.microsoft.com/library/de.../en-us/cptools
/html/cpgrfASPNETIISRegistrationToolAspnet_regiisexe.asp

If that doesn't fix it, and you are getting a JS error, see this for
some other ideas:
http://weblogs.asp.net/rosherove/arc.../06/30652.aspx

- Jon
http://weblogs.asp.net/jgalloway


--
Alan Silver
(anything added below this line is nothing to do with me)



--
Alan Silver
(anything added below this line is nothing to do with me)
Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
0
by: Matthias Lohrer | last post by:
Hi, I'm playing around with the possibilities of Page.ParseControl. Thanks to Kirk Allen Evans I got my example running (Posting Juli, 17, "Re: Generating ASP.NET-Controls with XSLT...
3
by: Rick | last post by:
I have an interesting problem when I run the following code in Netscape (7.02) vs. IE. This page works great in IE and all my controls bring up the validation summary dialog box if the required...
4
by: earwicker | last post by:
I recently deployed a web application which contains a user registration form with the usual fields: name, address, email, password, etc. Each of the TextBoxes uses a validation control to verify...
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
4
by: andersoj | last post by:
I have a page that has some required field validators created in the aspx, and other validators created in the Page_Load event. In IE, all validation works as expected. In Firefox, ASPX...
9
by: Bill Long | last post by:
I have a control that simply displays a list of links. Following one of the links doesn't post back or redirect to another page, it simply hides the current panel and shows the one you selected......
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
11
by: Rik | last post by:
Hello guys, now that I'm that I'm working on my first major 'open' forms (with uncontrolled users I mean, not a secure backend-interface), I'd like to add a lot of possibilities to check wether...
5
by: Kuldeep | last post by:
Framework: Visual Studio 2005 Technology: ASP.NET 2.0 Language: C#.NET 2.0 Hi All, We have developed a Web Application on Visual Studio 2005 (ASP.NET 2.0) and deployed it on the Client's...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.