ASP.NET

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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




.



Relevant Pages

  • Re: Calendar in Cell Validation
    ... Try the following Web site. ... This site's author covers this in a tutorial, but also provides downloads. ... Mark ... Prev by Date: ...
    (microsoft.public.excel)
  • Re: Calendar in Cell Validation
    ... thanks Mark ... >Try the following Web site. ... >This site's author covers this in a tutorial, but also provides downloads. ... Prev by Date: ...
    (microsoft.public.excel)
  • Re: American Smoking Pipe / Tinsky X-Mas 2005 Edition Review
    ... Here's the link to the Christmas Pipe page on Mark TInsky's Web site. ... Dave ... Prev by Date: ...
    (alt.smokers.pipes)
  • Re: Grid columns are loosing names during runtime
    ... Each screen is actually in its own seperate EXE file. ... Prev by Date: ...
    (microsoft.public.fox.programmer.exchange)
  • Re: MARK CLAYTON....PINBALLPAL
    ... player in what was once my Drive Master game, and now sits in Sled Works' ... The Ten Strike manikin bowler cabinet stencils are now ... Anyone know whats up with Mark Clayton from www.pinballpal.com. ... Purchased through pinballpal.com web site the "Only 1 Left" Gottlieb ...
    (rec.games.pinball)