帮助asp.net中的vbscript [英] Help with vbscript in asp.net
问题描述
设置objUser = GetObject(" WinNT:// WALKER_MORRIS / hup ^,user")
如果objUser.IsAccountLocked = True则.......
我使用上面的代码作为我的asp.net Web应用程序的一部分。
我测试了代码并且它工作正常,除非代码执行
作为我网页的一部分我收到以下错误: -
ActiveX组件无法创建对象''CreateObject''
任何想法?
< te ****** @ gmail.comwrote in message
news:11 ********************** @ o80g2000hse.googlegr oups.com ......
设置objUser = GetObject(" WinNT:// WALKER_MORRIS / hup ^,user")
如果objUser.IsAccountLocked = True则.......
我使用上面的代码作为我的asp.net Web应用程序的一部分。
我已经测试了代码并且它工作正常,除非代码执行时
作为我网页的一部分,我收到以下错误: -
ActiveX组件无法创建对象''CreateObject''
有什么想法吗?
这是经典的ASP代码......
要与.NET中的ActiveDirectory接口,你需要使用
System.DirectoryServices命名空间......
-
Mark Rae
ASP.NET MVP
http://www.markrae.net
您也可以通过< script>
标签确认此代码是否在客户端上运行?如果是,那么你可能会遇到安全问题,你就不能在客户端上创建任何旧的ActiveX对象。
< ; te ****** @ gmail.com写信息
新闻:11 ********************** @ o80g2000hse。 googlegr oups.com ...
设置objUser = GetObject(" WinNT:// WALKER_MORRIS / hup ^,user")
如果objUser.IsAccountLocked = True那么.......
我使用上面的代码作为我的asp.net Web应用程序的一部分。
我已经测试了代码并且它工作正常,除非代码执行
作为我的网页的一部分我收到以下错误: -
ActiveX组件可以' 't创建对象''CreateObject''
任何想法?
10月10日,10:05,Aidy < a ... @ xxnoemailxx.comwrote:
您也可以通过< script>确认此代码是否在客户端上运行
标签?如果是,那么你可能会遇到安全问题,你就不能在客户端上创建任何旧的ActiveX对象。
< ; teeja ... @ gmail.com写信息
新闻:11 ********************** @ o80g2000hse .googlegr oups.com ...
设置objUser = GetObject(" WinNT:// WALKER_MORRIS / hup ^,user")
如果objUser.IsAccountLocked = True则.......
我使用上面的代码作为我的asp.net Web应用程序的一部分。
我测试了代码并且工作正常,除非代码执行
作为我的网页的一部分我收到以下错误: -
ActiveX组件无法创建对象''CreateObject''
有什么想法吗? - 隐藏引用的文字 -
- 显示引用ed text -
是的我在客户端使用< scripttags运行代码
认为这可能是一个安全问题。 />
这有什么办法吗?
Set objUser = GetObject("WinNT://WALKER_MORRIS/hup^,user")
If objUser.IsAccountLocked = True Then .......
I am using the above code as part of my asp.net web application.
I have tested the code and it works fine except when the code executes
as part of my webpage i receive the following error:-
ActiveX component can''t create object ''CreateObject''
Any ideas?
<te******@gmail.comwrote in message
news:11**********************@o80g2000hse.googlegr oups.com...
Set objUser = GetObject("WinNT://WALKER_MORRIS/hup^,user")
If objUser.IsAccountLocked = True Then .......
I am using the above code as part of my asp.net web application.
I have tested the code and it works fine except when the code executes
as part of my webpage i receive the following error:-
ActiveX component can''t create object ''CreateObject''
Any ideas?That''s Classic ASP code...
To interface with ActiveDirectory in .NET, you need to use the
System.DirectoryServices namespace...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Also can you confirm if this code is running on the client via <script>
tags? If it is then you''re probably running into security issues, you can''t
just create any old ActiveX object on the client.
<te******@gmail.comwrote in message
news:11**********************@o80g2000hse.googlegr oups.com...Set objUser = GetObject("WinNT://WALKER_MORRIS/hup^,user")
If objUser.IsAccountLocked = True Then .......
I am using the above code as part of my asp.net web application.
I have tested the code and it works fine except when the code executes
as part of my webpage i receive the following error:-
ActiveX component can''t create object ''CreateObject''
Any ideas?
On 10 Oct, 10:05, "Aidy" <a...@xxnoemailxx.comwrote:Also can you confirm if this code is running on the client via <script>
tags? If it is then you''re probably running into security issues, you can''t
just create any old ActiveX object on the client.
<teeja...@gmail.comwrote in message
news:11**********************@o80g2000hse.googlegr oups.com...
Set objUser = GetObject("WinNT://WALKER_MORRIS/hup^,user")
If objUser.IsAccountLocked = True Then .......
I am using the above code as part of my asp.net web application.
I have tested the code and it works fine except when the code executes
as part of my webpage i receive the following error:-
ActiveX component can''t create object ''CreateObject''
Any ideas?- Hide quoted text -
- Show quoted text -Yes I am running the code on the client using <scripttags
Think this is probably a security issue.
Is there any way round this?
这篇关于帮助asp.net中的vbscript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!