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,633 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
 
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
Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a User Mailbox 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 >> Mailb…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now