aspnet_regiis -c 报没有管理员权限的错误的办法

In C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_4322 I had to swap out WebUIValidation.js just as described by everyone else.

This file has changed in 2 places.  The most notable one is a change to the function called "ValidatorCommonOnSubmit".

The function that DOESN'T work looks like this:
function ValidatorCommonOnSubmit() {

event.returnValue = !Page_BlockSubmit;

Page_BlockSubmit = false;

}

The variation of the same function that does indeed work looks like this:
function ValidatorCommonOnSubmit() {

var result = !Page_BlockSubmit;

Page_BlockSubmit = false;

event.returnValue = result;

return result;

}

(Both of these functions start at line 125 in WebUIValidation.js.)

The other place that the file has changed is at line 213 and 225.  The regular expression that checks dates has changed.
Old file:
Line 213: var yearFirstExp = new RegExp("^\\s*((\\d{4})|(\\d{2}))([-./])(\\d{1,2})\\4(\\d{1,2})\\s*$");

Line 225: var yearLastExp = new RegExp("^\\s*(\\d{1,2})([-./])(\\d{1,2})\\2((\\d{4})|(\\d{2}))\\s*$");

New file:
Line 213: var yearFirstExp = new RegExp("^\\s*((\\d{4})|(\\d{2}))([-/]|\\. ?)(\\d{1,2})\\4(\\d{1,2})\\s*$");

Line 225: var yearLastExp = new RegExp("^\\s*(\\d{1,2})([-/]|\\. ?)(\\d{1,2})\\2((\\d{4})|(\\d{2}))\\s*$");



One thing worth noting........my developement site doesn't use C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_4322.
It was using the aspnet_client folder INSIDE the root directory of the site itself.  I found this out by navigating to the page that was experiencing the problem and then right-clicking the page and viewed the source.  When I did that, this is what I found:
<script language="javascript" type="text/javascript" src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>
Now obviously that's not the one in wwwroot.

I hope this helps someone out.


PS: I never got aspnet_regiis to work.

转载于:https://www.cnblogs.com/xiaotaoliang/archive/2005/03/30/128849.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值