ASP.NET
- From: "Mark S." <mslater@xxxxxxxxxxxxxxxx>
- Date: Tue, 13 Sep 2005 11:40:14 -0500
Hello,
Can anyone tell me why the code below works as an EXE but when I put
the same code in my vb.net web site it does not work
Dim strWinMgmts As String = "winmgmts:{impersonationLevel=impersonate,
(Security)}!\\dilbert\root\MicrosoftExchangeV2"
Dim objWMIServers As Object
Dim objPubInstances As Object
Dim bResults As Boolean = False
Dim objExchange_PublicFolder As Object
objWMIServers = GetObject(strWinMgmts)
objPubInstances = objWMIServers.execquery("SELECT * FROM
Exchange_PublicFolder WHERE Path = '" & strEnablePath & "'")
For Each objExchange_PublicFolder In objPubInstances
bResults = True
objExchange_PublicFolder.IsMailEnabled = True
objExchange_PublicFolder.Put_()
Next
Return bResults
Thanks
Mark
.
- Prev by Date: Re: 64bit compiler from Microsoft
- Next by Date: Compiler Predefined Symbols
- Previous by thread: 64bit compiler from Microsoft
- Next by thread: Compiler Predefined Symbols
- Index(es):
Relevant Pages
|