Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
?
4,000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This video discusses moving either the default database or any database to a new volume.

636 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