Validation works on one server but not on the other

Discussion in 'ASP .Net' started by Andrei Pociu, Mar 7, 2005.

  1. Andrei Pociu

    Andrei Pociu Guest

    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

    Any ideas?
    Andrei Pociu, Mar 7, 2005
    1. Advertisements

  2. Andrei Pociu

    jongalloway Guest

    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

    If that doesn't fix it, and you are getting a JS error, see this for
    some other ideas:

    - Jon
    jongalloway, Mar 7, 2005
    1. Advertisements

  3. Andrei Pociu

    jasonkester Guest

    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

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

    Good luck!

    jasonkester, Mar 7, 2005
  4. Andrei Pociu

    Andrei Pociu Guest

    No, there is no JavaScript error.

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

    Andrei Pociu
    Andrei Pociu, Mar 7, 2005
  5. Andrei Pociu

    Alan Silver Guest

    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

    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.

    Alan Silver, Mar 14, 2005
  6. 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, Mar 14, 2005
  7. Andrei Pociu

    Alan Silver Guest

    Thanks Juan
    Alan Silver, Mar 14, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.