Having an issue after scanning sending to email
Using outlook 2016 x64
Error is: error occurred while trying to send an email
Tehnical details:
MAPI returned error code: Failure
Hey guys, in this case #MeToo.
Windows 10 Pro #1809 x64 with MS Office 2010 x86. TheUI language and the locals are set to Slovak.
Naps2 version 5.8.2 works just fine, the new 6.1.0 errors out with "MAPI returned error code: Failure". NAPS2 itself does not crash during the action nor after that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just noticed I installed one of the portable Beta versions (6.04.21010) sometime ago and emailing is working in that (I had to select my client), hopefully that will help you narrow down the issue.
Edit: Just installed 6.04.22698 (6.0b4) and that emails OK.
Last edit: Ronski 2019-06-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In my case, the client was already selected. I also made sure that the setting sticks by selecting a different option and reselecting Outlook. The question is where the error comes from MAPI (Messaging Application Programming Interface ) or SimpleMAPI as the 1st is a Outlook thing where the 2nd can be user by other mail clients.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Exception: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL
at NAPS2.ImportExport.Email.Mapi.SystemEmailClients.GetDelegate(String clientName, Boolean& unicode)
at NAPS2.ImportExport.Email.Mapi.MapiWrapper.SendEmail(EmailMessage message)
at NAPS2.Worker.WorkerService.SendMapiEmail(EmailMessage message)
at SyncInvokeSendMapiEmail(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I ran it, I got about 6 emails that said hello.
Then I got this
UserAbort 64 M mapi32.dll
UserAbort 64 W mapi32.dll
UserAbort 64 M mapi32.dll
UserAbort 64 W mapi32.dll
FL 32 M mapi32.dll
UserAbort 32 W mapi32.dll
FL 32 M mapi32.dll
UserAbort 32 W mapi32.dll
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i'm getting this error now
am I the only one with this error?
System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Exception: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL
at NAPS2.ImportExport.Email.Mapi.SystemEmailClients.GetDelegate(String clientName, Boolean& unicode)
at NAPS2.ImportExport.Email.Mapi.MapiWrapper.SendEmail(String clientName, EmailMessage message)
at NAPS2.Worker.WorkerService.SendMapiEmail(String clientName, EmailMessage message)
at SyncInvokeSendMapiEmail(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContext...).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I run 5.8.2 portable, I can click Email PDF and it launches the default mail program. I tried 6.0b1 when "choose email provider" was first added, and every version after that just gives me an empty box for the Choose Email Provider. No errors, just no options to choose. I even let it sit there for a looooong time. No option for Gmail, Hotmail, locally installed Outlook, nothing.
I've tried with Outlook 2016 (32 bit) and Outlook 2019 (32 bit) on Windows 10 x64 1909 (also had the problem before upgrading to 1909 today). Every version I've tried (portable or installed) from 6.0b1 -> 6.1.2.225834
I use 32bit TWAIN drivers for Citrix and 32 bit Office for plugins, so the 32bit NAPS is what I need to make everything work together. I haven't tried compiling from source. I'm running the precompiled 32 bit.
I thought the two issues may have been related, but I'll go ahead and open another ticket.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Boyd, I realise this is an oldish thread, but would you mind sharing your x64 compiled code? I have the same problem (NAPS2 32-bit but Outlook 64-bit) but I have no idea how to compile a NAPS x64 version myself. Maybe others in the community may be helped as well?
Thanks a lot in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
no that version works fine.
I have exactly the same problem, upgraded yesterday from 5.8.2 to 6.1.0.21310, emailing was working on 5.8.2 now it's not.
Using Outlook 2010 so selected Outlook as the email option, when I try to email a PDF I get the same error as the Boyd.
I also have an Email PDF Progress box that says "Uploading email..." surely it shouldn't be uploading the email when the client is local?
PS. Could you add the option to allow us to enter the attachment name each time we email it please?
Hey guys, in this case #MeToo.
Windows 10 Pro #1809 x64 with MS Office 2010 x86. TheUI language and the locals are set to Slovak.
Naps2 version 5.8.2 works just fine, the new 6.1.0 errors out with "MAPI returned error code: Failure". NAPS2 itself does not crash during the action nor after that.
I've just noticed I installed one of the portable Beta versions (6.04.21010) sometime ago and emailing is working in that (I had to select my client), hopefully that will help you narrow down the issue.
Edit: Just installed 6.04.22698 (6.0b4) and that emails OK.
Last edit: Ronski 2019-06-10
In my case, the client was already selected. I also made sure that the setting sticks by selecting a different option and reselecting Outlook. The question is where the error comes from MAPI (Messaging Application Programming Interface ) or SimpleMAPI as the 1st is a Outlook thing where the 2nd can be user by other mail clients.
sorry, I've mixed up the tickets.
Yet still, the 6.1.1 does not allow me to choose a email provider. I get a blankwindow which is resizeable to side.
Last edit: SelfMan 2019-06-17
I tried the portable version first, selected my mail client and it worked perfectly, apart from the mail window didn't come to the foreground.
Installed the updated version and that worked perfectly, seems to have fixed the issue for me, thank you very much Ben.
Getting this now
System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Exception: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL
at NAPS2.ImportExport.Email.Mapi.SystemEmailClients.GetDelegate(String clientName, Boolean& unicode)
at NAPS2.ImportExport.Email.Mapi.MapiWrapper.SendEmail(EmailMessage message)
at NAPS2.Worker.WorkerService.SendMapiEmail(EmailMessage message)
at SyncInvokeSendMapiEmail(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)).
Will this be resolved in the next release?
When I ran it, I got about 6 emails that said hello.
Then I got this
UserAbort 64 M mapi32.dll
UserAbort 64 W mapi32.dll
UserAbort 64 M mapi32.dll
UserAbort 64 W mapi32.dll
FL 32 M mapi32.dll
UserAbort 32 W mapi32.dll
FL 32 M mapi32.dll
UserAbort 32 W mapi32.dll
i'm getting this error now
am I the only one with this error?
System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Exception: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL
at NAPS2.ImportExport.Email.Mapi.SystemEmailClients.GetDelegate(String clientName, Boolean& unicode)
at NAPS2.ImportExport.Email.Mapi.MapiWrapper.SendEmail(String clientName, EmailMessage message)
at NAPS2.Worker.WorkerService.SendMapiEmail(String clientName, EmailMessage message)
at SyncInvokeSendMapiEmail(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContext...).
Do you know if this will be fixed in the next version?
Is there anything I can do to help?
If I run 5.8.2 portable, I can click Email PDF and it launches the default mail program. I tried 6.0b1 when "choose email provider" was first added, and every version after that just gives me an empty box for the Choose Email Provider. No errors, just no options to choose. I even let it sit there for a looooong time. No option for Gmail, Hotmail, locally installed Outlook, nothing.
I've tried with Outlook 2016 (32 bit) and Outlook 2019 (32 bit) on Windows 10 x64 1909 (also had the problem before upgrading to 1909 today). Every version I've tried (portable or installed) from 6.0b1 -> 6.1.2.225834
Jamie, I believe this is a different issue you're having. You might want to open a new ticket.
We are having issues with a MAPI error.
I do have an update on this. It's not the code.
If you download the source code and complie NAPS for a x64 processor, everything works fine.
So that means if you have Office 64bit installed you need NAPS x64.
The x32 version will not work.
I use 32bit TWAIN drivers for Citrix and 32 bit Office for plugins, so the 32bit NAPS is what I need to make everything work together. I haven't tried compiling from source. I'm running the precompiled 32 bit.
I thought the two issues may have been related, but I'll go ahead and open another ticket.
Boyd, I realise this is an oldish thread, but would you mind sharing your x64 compiled code? I have the same problem (NAPS2 32-bit but Outlook 64-bit) but I have no idea how to compile a NAPS x64 version myself. Maybe others in the community may be helped as well?
Thanks a lot in advance!