Solved

Get-OwaVirtualDirectory - The task was not able to connect to IIS on the server 'server.somewhere.com' Ensure that the server exists and is reachable. RPC Server is unavailable.

Posted on 2010-09-11
8
3,714 Views
Last Modified: 2012-05-10
I just upgraded to Exchange 2007 SP3 (Windows 2003 R2 SP2). However, OWA is no longer working properly on 192.168.0.5 (setup prior to SP3, used for WAN external clients via firewall port forwarding) but it is working properly on 192.168.0.4 (Default Web Site, used for LAN clients). Basically, I want to create a new OwaVirtualDirectory for 192.168.0.5 (I'm assuming this is allowed).

Get-OwaVirtualDirectory - The task was not able to connect to IIS on the server 'server.somewhere.com' Ensure that the server exists and is reachable. RPC Server is unavailable.

Background: I have restarted IIS multiple times. After issuing get-owavirtualdirectory, I had about 6 entries, which (because I've had related problems since 2007 due to this, and on a suggestion from an MS Tech) I removed all existing entries with remove-owavirtualdirectory -identity "BLAH BLAH". Afterwards, the RPC error started appearing. Now if I issue a

New-OwaVirtualDirectory "SERVER1\Mobile," I get this:
The virtual directory 'owa' already exists under "server.somewhere.com/Default Web Site"

0
Comment
Question by:light-blue
  • 4
  • 4
8 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 33655014
get-owavirtualdirectory -server servername
0
 
LVL 1

Author Comment

by:light-blue
ID: 33655066
Thank you endital1097. Should smartphone users have problems connecting after I issued these commands?

1. (via GUI) Created new IIS Virtual Directory called "Mobile"
2. Remove-ActiveSyncVirtualDirectory -identity "Microsoft-Server-ActiveSync (Clients)"
3. New-OwaVirtualDirectory -WebSiteName "Mobile"
4. New-ActiveSyncVirtualDirectory -WebsiteName "Mobile" -ExternalURL "https://mobile.somewhere.com"

Should I create an RPC too? Anything else?

Thanks!
0
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 33655094
yes, #4
external url should be https://mobile.somewhere.com/Microsoft-Server-ActiveSync

rpc to the new site
get-outlookanywhere | set-outlookanywhere -name "Rpc (Mobile)"


0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 1

Author Comment

by:light-blue
ID: 33655183
I just executed your command above. Somehow thoug I still need to create the RPC virtual directory (see below). I can't seem to find the EMS command for that.


Test-OutlookWebServices | fl

Id      : 1013
Type    : Error
Message : When contacting https://mobile.somewhere.com/Rpc received the error The remote server returned an error: (404) Not Found.

Id      : 1017
Type    : Error
Message : [EXPR]-Error when contacting the RPC/HTTP service at https://mobile.somewhere.com/Rpc. The elapsed time was 250 milliseconds.
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33655192
go into iis manager and make sure that the rpc vdir is present under the mobile site
0
 
LVL 1

Author Comment

by:light-blue
ID: 33655214
Sorry, please ignore my last post. I had done this (RPC vdirs) before but had forgotten how (i.e., I did Save Configuration to a File for both vdirs and tried Outlook from WAN, which worked fine). Now I'm receiving success messages like below:

Id      : 1017
Type    : Success
Message : [EXPR]-Successfully contacted the RPC/HTTP service at https://mobile.somewhere.com/Rpc. The elapsed time was 62 milliseconds.

Should I try any other testing EMS commands (like Test-OutlookWebServices) to ensure iPhone / WAN Outlook connectivity?
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33655223
this is the best place for extenal access testing
https://testexchangeconnectivity.com/
0
 
LVL 1

Author Comment

by:light-blue
ID: 33655375
endital1097, thank you so much!
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta‚Ķ
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates‚Ķ

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question