473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Outlook.MaiIteml.Move: The RPC server is not available

Hi,

On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an
exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server
is not available. (Exception from HRESULT: 0x800706BA). The client has all
the updates/service packs/ etc isntalled...

Does anybody has any idea why this happens? Any help our hints would be
really appreciated! what is that RPC server thing?

Thanks a lot in advance,

Pieter
This is what I do in my application (VB.NET 2005):
Private oItem As Outlook.MailItem

strStatus = "MOVE"

If (oFolder.StoreID <> clsDocShared.GlobalDoc.MyOutlookFolder.StoreID)
Or (oFolder.EntryID <> clsDocShared.GlobalDoc.MyOutlookFolder.EntryID) Then

'Move it to the right folder: StoreID

strStatus = "MOVE1"

oItem = oItem.Move(clsDocShared.GlobalDoc.MyOutlookFolder)

strStatus = "MOVE2"

End If
The whole exception:
The RPC server is not available. (Exception from HRESULT: 0x800706BA)
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32
culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags, Binder binder, Object target, Object[] providedArgs,
ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.VisualBasic.CompilerServices.VBBinder.In vokeMember(String
name, BindingFlags invokeAttr, Type objType, IReflect objIReflect, Object
target, Object[] args, String[] namedParameters)
at Microsoft.VisualBasic.CompilerServices.LateBinding .LateGet(Object o,
Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack)
at Microsoft.VisualBasic.CompilerServices.NewLateBind ing.LateGet(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at DocControl.clsDocMail.GetMailInfo(Boolean blnMove)

Jan 31 '06 #1
4 6655
What is the user's mail account configuration? (Exchange uses RPC.) In what part of the Outlook folder hierarchy is the target folder located?

FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/comm...ok.program_vba

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Pieter" <pi**********@hotmail.com> wrote in message news:uU**************@TK2MSFTNGP10.phx.gbl...
Hi,

On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an
exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server
is not available. (Exception from HRESULT: 0x800706BA). The client has all
the updates/service packs/ etc isntalled...

Does anybody has any idea why this happens? Any help our hints would be
really appreciated! what is that RPC server thing?

Thanks a lot in advance,

Pieter


This is what I do in my application (VB.NET 2005):
Private oItem As Outlook.MailItem

strStatus = "MOVE"

If (oFolder.StoreID <> clsDocShared.GlobalDoc.MyOutlookFolder.StoreID)
Or (oFolder.EntryID <> clsDocShared.GlobalDoc.MyOutlookFolder.EntryID) Then

'Move it to the right folder: StoreID

strStatus = "MOVE1"

oItem = oItem.Move(clsDocShared.GlobalDoc.MyOutlookFolder)

strStatus = "MOVE2"

End If


The whole exception:
The RPC server is not available. (Exception from HRESULT: 0x800706BA)
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32
culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags, Binder binder, Object target, Object[] providedArgs,
ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.VisualBasic.CompilerServices.VBBinder.In vokeMember(String
name, BindingFlags invokeAttr, Type objType, IReflect objIReflect, Object
target, Object[] args, String[] namedParameters)
at Microsoft.VisualBasic.CompilerServices.LateBinding .LateGet(Object o,
Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack)
at Microsoft.VisualBasic.CompilerServices.NewLateBind ing.LateGet(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at DocControl.clsDocMail.GetMailInfo(Boolean blnMove)




Jan 31 '06 #2
They actually do use Exchange.
The Move operation is from their personal MailBox (their own emails) or a
shared MailBox (which contains the incoming faxes) to a shared MailBox (so
everybody of the company has acess to the mail).

Is there any way to check if the RPC server is available? OR what happens
exactly with this exception so I can prevent it somehow? And why happens
this with this specific user?
"Sue Mosher [MVP-Outlook]" <su****@outlookcode.com> wrote in message
news:e3*************@TK2MSFTNGP15.phx.gbl...
What is the user's mail account configuration? (Exchange uses RPC.) In what
part of the Outlook folder hierarchy is the target folder located?

FYI, there is a newsgroup specifically for general Outlook programming
issues "down the hall" at microsoft.public.outlook.program_vba or, via web
interface, at
http://www.microsoft.com/office/comm...ok.program_vba

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Pieter" <pi**********@hotmail.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
Hi,

On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes
an
exception when moving (Move) a MailItem to an Outlook-Folder: The RPC
server
is not available. (Exception from HRESULT: 0x800706BA). The client has all
the updates/service packs/ etc isntalled...

Does anybody has any idea why this happens? Any help our hints would be
really appreciated! what is that RPC server thing?

Thanks a lot in advance,

Pieter
This is what I do in my application (VB.NET 2005):
Private oItem As Outlook.MailItem

strStatus = "MOVE"

If (oFolder.StoreID <> clsDocShared.GlobalDoc.MyOutlookFolder.StoreID)
Or (oFolder.EntryID <> clsDocShared.GlobalDoc.MyOutlookFolder.EntryID)
Then

'Move it to the right folder: StoreID

strStatus = "MOVE1"

oItem = oItem.Move(clsDocShared.GlobalDoc.MyOutlookFolder)

strStatus = "MOVE2"

End If
The whole exception:
The RPC server is not available. (Exception from HRESULT: 0x800706BA)
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32
culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags, Binder binder, Object target, Object[] providedArgs,
ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.VisualBasic.CompilerServices.VBBinder.In vokeMember(String
name, BindingFlags invokeAttr, Type objType, IReflect objIReflect, Object
target, Object[] args, String[] namedParameters)
at Microsoft.VisualBasic.CompilerServices.LateBinding .LateGet(Object o,
Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack)
at Microsoft.VisualBasic.CompilerServices.NewLateBind ing.LateGet(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at DocControl.clsDocMail.GetMailInfo(Boolean blnMove)


Feb 1 '06 #3
Ray
I am facing the same issue. the same code worked fine a while ago, suddenly
it is causing after accessing some messages an exception, they have to run
the application again many times to filter the messages correctly.

The same code works fine at my machine, and other machines, yet on client
side it gives the same RPC exception, Any ideas ?

Thanks,
Raed

"Pieter" wrote:
They actually do use Exchange.
The Move operation is from their personal MailBox (their own emails) or a
shared MailBox (which contains the incoming faxes) to a shared MailBox (so
everybody of the company has acess to the mail).

Is there any way to check if the RPC server is available? OR what happens
exactly with this exception so I can prevent it somehow? And why happens
this with this specific user?
"Sue Mosher [MVP-Outlook]" <su****@outlookcode.com> wrote in message
news:e3*************@TK2MSFTNGP15.phx.gbl...
What is the user's mail account configuration? (Exchange uses RPC.) In what
part of the Outlook folder hierarchy is the target folder located?

FYI, there is a newsgroup specifically for general Outlook programming
issues "down the hall" at microsoft.public.outlook.program_vba or, via web
interface, at
http://www.microsoft.com/office/comm...ok.program_vba

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Pieter" <pi**********@hotmail.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
Hi,

On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes
an
exception when moving (Move) a MailItem to an Outlook-Folder: The RPC
server
is not available. (Exception from HRESULT: 0x800706BA). The client has all
the updates/service packs/ etc isntalled...

Does anybody has any idea why this happens? Any help our hints would be
really appreciated! what is that RPC server thing?

Thanks a lot in advance,

Pieter
This is what I do in my application (VB.NET 2005):
Private oItem As Outlook.MailItem

strStatus = "MOVE"

If (oFolder.StoreID <> clsDocShared.GlobalDoc.MyOutlookFolder.StoreID)
Or (oFolder.EntryID <> clsDocShared.GlobalDoc.MyOutlookFolder.EntryID)
Then

'Move it to the right folder: StoreID

strStatus = "MOVE1"

oItem = oItem.Move(clsDocShared.GlobalDoc.MyOutlookFolder)

strStatus = "MOVE2"

End If
The whole exception:
The RPC server is not available. (Exception from HRESULT: 0x800706BA)
at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32
culture, String[] namedParameters)
at System.RuntimeType.InvokeMember(String name, BindingFlags
bindingFlags, Binder binder, Object target, Object[] providedArgs,
ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.VisualBasic.CompilerServices.VBBinder.In vokeMember(String
name, BindingFlags invokeAttr, Type objType, IReflect objIReflect, Object
target, Object[] args, String[] namedParameters)
at Microsoft.VisualBasic.CompilerServices.LateBinding .LateGet(Object o,
Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack)
at Microsoft.VisualBasic.CompilerServices.NewLateBind ing.LateGet(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
at DocControl.clsDocMail.GetMailInfo(Boolean blnMove)



Mar 17 '06 #4
I'm sorry, but I still didn't find a solution.
Although, It seems only to happen when using handling the
Outlook.Items.ItemAdd-event...

Like this:
Private WithEvents colSentItems As Outlook.Items

Private Sub frmMain_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim olNs As Outlook.NameSpace
Dim oApp As Outlook.Application
oApp = New Outlook.Application
olNs = oApp.GetNamespace("MAPI")
colSentItems =
olNs.GetDefaultFolder(Outlook.OlDefaultFolders.olF olderSentMail).Items
olNs = Nothing
oApp = Nothing
End Sub

Private Sub frmMain_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Try
colSentItems = Nothing
Catch ex As Exception
ErrorMessage(ex, "colSentItems = Nothing")
End Try
End Sub

When the users gets the exception, it happens during the "colSentItems =
Nothing" in the frmMain_FormClosing...

I even formatted a pc, installed it freshly with XP and Office 2003, and
even there it got the error.
One possible solution in my opinion: Putting tyhis stuff in an
outlook-addin. But it's jsut a guess, and I didn't had the time yet to test
it...
In case you'll find something, I would be happy to know it :-)

hope this helps,

Pieter
"Ray" <Ra*@discussions.microsoft.com> wrote in message
news:B7**********************************@microsof t.com...
I am facing the same issue. the same code worked fine a while ago, suddenly
it is causing after accessing some messages an exception, they have to run
the application again many times to filter the messages correctly.

The same code works fine at my machine, and other machines, yet on client
side it gives the same RPC exception, Any ideas ?

Thanks,
Raed

"Pieter" wrote:
They actually do use Exchange.
The Move operation is from their personal MailBox (their own emails) or a
shared MailBox (which contains the incoming faxes) to a shared MailBox
(so
everybody of the company has acess to the mail).

Is there any way to check if the RPC server is available? OR what happens
exactly with this exception so I can prevent it somehow? And why happens
this with this specific user?
"Sue Mosher [MVP-Outlook]" <su****@outlookcode.com> wrote in message
news:e3*************@TK2MSFTNGP15.phx.gbl...
What is the user's mail account configuration? (Exchange uses RPC.) In
what
part of the Outlook folder hierarchy is the target folder located?

FYI, there is a newsgroup specifically for general Outlook programming
issues "down the hall" at microsoft.public.outlook.program_vba or, via
web
interface, at
http://www.microsoft.com/office/comm...ok.program_vba

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Pieter" <pi**********@hotmail.com> wrote in message
news:uU**************@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> On the pc of one of my clients (W2000, Office 2003) I'm getting
> sometimes
> an
> exception when moving (Move) a MailItem to an Outlook-Folder: The RPC
> server
> is not available. (Exception from HRESULT: 0x800706BA). The client has
> all
> the updates/service packs/ etc isntalled...
>
> Does anybody has any idea why this happens? Any help our hints would be
> really appreciated! what is that RPC server thing?
>
> Thanks a lot in advance,
>
> Pieter
>
>
> This is what I do in my application (VB.NET 2005):
> Private oItem As Outlook.MailItem
>
> strStatus = "MOVE"
>
> If (oFolder.StoreID <>
> clsDocShared.GlobalDoc.MyOutlookFolder.StoreID)
> Or (oFolder.EntryID <> clsDocShared.GlobalDoc.MyOutlookFolder.EntryID)
> Then
>
> 'Move it to the right folder: StoreID
>
> strStatus = "MOVE1"
>
> oItem = oItem.Move(clsDocShared.GlobalDoc.MyOutlookFolder)
>
> strStatus = "MOVE2"
>
> End If
>
>
> The whole exception:
> The RPC server is not available. (Exception from HRESULT: 0x800706BA)
> at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
> invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers,
> Int32
> culture, String[] namedParameters)
> at System.RuntimeType.InvokeMember(String name, BindingFlags
> bindingFlags, Binder binder, Object target, Object[] providedArgs,
> ParameterModifier[] modifiers, CultureInfo culture, String[]
> namedParams)
> at
> Microsoft.VisualBasic.CompilerServices.VBBinder.In vokeMember(String
> name, BindingFlags invokeAttr, Type objType, IReflect objIReflect,
> Object
> target, Object[] args, String[] namedParameters)
> at Microsoft.VisualBasic.CompilerServices.LateBinding .LateGet(Object
> o,
> Type objType, String name, Object[] args, String[] paramnames,
> Boolean[]
> CopyBack)
> at
> Microsoft.VisualBasic.CompilerServices.NewLateBind ing.LateGet(Object
> Instance, Type Type, String MemberName, Object[] Arguments, String[]
> ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack)
> at DocControl.clsDocMail.GetMailInfo(Boolean blnMove)
>
>
>
>
>


Mar 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Sven Templin | last post by:
Hello all, our configuration is as following described: - OS: Windows 2000 - Apache server 1.3 - Php 3.8 - MS outlook client 2000 _and_ no SMTP server available in the whole intranet.
3
by: Kurt | last post by:
Hi We are developing an off-the-shelf software suite for a certain business sector. Most of the program is simply a GUI on top of some .mdb files. Its a .net application written in c# One...
1
by: Eric Nelson | last post by:
Experienced, but first time outlook programmer asks... Each day I get an e-mail containing a gzipped tar archive as an attachment. I'd like an automated way to (1) save the archive as-is in a...
11
by: Peter | last post by:
Is there a way to read Outlook/Exchange Inbox with C# without Outlook installed? -- Thanks ------------------- czupet@wsinc.com
16
by: ML | last post by:
Is there anyway to get around the security prompt from Outlook when using the object in a vb.net winforms app? I want to be able to load the contacts lists from Outlook but each time it access it...
5
by: Greg Robinson | last post by:
Not sure where to post this. At runtime, we need to be able to make sure a user is running Outlook (at least 98 or higher) in order to send an email. So, if a condition is met, we need to...
4
by: Pieter | last post by:
Hi, On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server is not available. (Exception from...
2
by: Pieter | last post by:
Hi, I'm using a thight integration with Outlook 2003 (with an Exchange server) in my VB.NET (2005) application. Until now I'm using the Outlook Object Model, but it appears to be very slow, and...
5
by: =?Utf-8?B?TWFya1NraQ==?= | last post by:
For about a month now, I have had trouble with Outlook Express. When logging in to Outlook Express, I get an error message stating that the connection to server has failed. My internet connection...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.