?
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
Medium Priority
?
3,911 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
New style of hardware planning for Microsoft Exchange server.
In this video we show how to create an Address List 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 Organization >> Ad…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

800 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