Quantcast
Channel: Exchange Server Development forum
Viewing all 7132 articles
Browse latest View live

[E2010] [EWSMA] Setting extended property error - The specified object was not found in the store.

$
0
0

Hi,

I have a system which sets extended properties on emails. For one particular user, most of the times it is fine but on the odd occassion i get the "The specified object was not found in the store" after I run the following code:

emailMessage.SetExtendedProperty(extendedPropertyDefinition, value);
emailMessage.Update(ConflictResolutionMode.AlwaysOverwrite)


Some things I know for sure:

- It doesnt happen to all emails, but ones where it does it happens consistently

- Its definitely not an access issue as far as I know as I can modify other properties on the email. I have owner access to the email.

Does anyone have any idea why this could be happening for certain cases?

EDIT: One thought i've had. I'm retrieving the email based on an exchange unique id i have stored. Its possible the user has deleted the email. They definitely havent moved to deleted folder because i dont have access to that, but they may have soft/hard deleted it. Is it possible I've retrieved a soft/hard deleted email by id and am trying to set an extended property on it, but it fails?

EDIT2: I have figured it out! It turns out the email is set to private sensitivity. When an emails sensitivity is set to private, even though i can access the email and read its contents etc, I can't make updates to it. This is the cause of the issue. The strange thing is there are some things I can modify, such as attachments!


[E2010] [EWSMA] Folder delete operation doesn't delete folder but removes all permissions

$
0
0

Hi,

I'm trying to delete a folder for a user. I have owner access to this folder. I issue the following calls:

var folder = Folder.Bind(_exchangeService, folderId);
folder.Delete(DeleteMode.HardDelete);

The code runs without error, but from a users perspective in Outlook the folder is still visible, however all the permissions have been stripped. This seems to be an isolated issue for one user but I can't think of a reason why. Any ideas why this can be happening?

Why OnRcptCommand event isn't triggerred when using exchange 2010 but 2013 and 2016 trigger?

$
0
0

Env:

exchange 2010

Steps:

Send a mail using owa.

OnRcptCommand event isn't triggered during SmtpReceiveAgent.

Can anybody tell the different of 2010 and 2013,2016?

Thanks

Emily

Ews:The remote server returned an error: (401) Unauthorized in Exchange 2016/2010 co-existence

$
0
0

Hi Team,

I have deployed Exchange 2016 with 2010 in co-existence. Everything works fine: outlook,owa,activesync,autodiscover, etc. However, EWS seems to not work at all. I have already followed: Client connectivity in Exchange 2016 co-existence env blog. The Namespace is pointing to Exchange 2016. However, still the issue persists. I get credential prompts while opening the ews url: https://namespace.domain.com/ews/exchange.asmx. Also, using a ews editor, i get this: The request failed. The remote server returned an error: (401) Unauthorized.

So, I tried to connect to the ip and fqdn of the individual exchange 2016 server instead of the namespace. It works as expected. Also, ews editor works. What could be the issue? Please suggest.


Write-AdminAuditLog using EWS way in Exchange 2010 SP3 Environment

$
0
0

Hello All,

I am working on a EWS Project integration with Exchange 2010 using Impersonation for Mailbox Delegation.

I am almost done with my project and am stuck at final stage where soon the permission are applied to a mailbox information about the custom delegation which happened using the APP need to be written to admin audit log.

I tried to search for any possible solution for this task on the internet but was unsuccessful.

Anyone shedding light on this is a great help for me


Pavan Maganti ~ ( Exchange | 2003/2007/2010/E15(2013)) ~~ Please remember to click “Vote As Helpful" if it really helps and "Mark as Answer” if it answers your question, “Unmark as Answer” if a marked post does not actually answer your question. ~~ This Information is provided is "AS IS" and confers NO Rights!!

Connecting to exchange remote server WinRM cannot process the request

$
0
0

Hi,

i am using exchange 2013 and try to create email box using C#. referring following blog:

https://blogs.msdn.microsoft.com/emeamsgdev/2011/08/31/enable-mailbox-against-exchange-2010-from-a-web-application/

ia m getting following error:

System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server myexchange.mydomain.com failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x80090311 occurred while using Kerberos authentication: There are currently no logon servers available to service the logon request. Possible causes are: -The user name or password specified are invalid. -Kerberos is used when no authentication method and no user name are specified. -Kerberos accepts domain user names

following code is use:

   string ConnectionUri = "http://myexchange.mydomain.com/Powershell?serializationLevel=Full";
       
           string sPassword = "password";
            SecureString sSPassword = new SecureString();

            foreach (char X in sPassword)
                sSPassword.AppendChar(X);

            PSCredential Credential = new PSCredential("administrator", sSPassword);

            // Set the connection info
            WSManConnectionInfo ConInfo = new WSManConnectionInfo((new Uri(ConnectionUri)), "http://schemas.microsoft.com/powershell/Microsoft.Exchange", Credential);
            ConInfo.AuthenticationMechanism = AuthenticationMechanism.Default;
            return ConInfo;

pls guide what could be an issue. I have configure WinRM on client using

https://pedroliska.wordpress.com/2011/07/28/creating-an-exchange-2010-mailbox-from-a-remote-c-program/

thx


iffi

EWS "account that does not have a mailbox" error on IIS

$
0
0

I'm developing an intranet site that allow employees to see their corporate e-mail boxes. All users are in domain and their informations are on Active Directory. I implement windows authentication so I don't save credentials of users. I used EWS managed API and everything works perfect on IISExpress, however when I  publish site to IIS(also on my computer) i gave this error : "When making a request as an account that does not have a mailbox, you must specify the mailbox primary SMTP address for any distinguished folder Ids".  Service takes default credentials and it works on IISExpress but not on IIS, if I write credentials manually system works on both IISExpress and IIS. I don't want to impersonate or delegate, there has to be way to direct access ? Is there a setting on IIS that should turn on which automatically set on IISExpress?

CODE:

 ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
    service.UseDefaultCredentials = true;
    service.AutodiscoverUrl("user@xx.com");
    SearchFilter sf = new SearchFilter.SearchFilterCollection(LogicalOperator.And, new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false));
    ItemView view = new ItemView(100);

    FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, sf, view);

What can be the problem? 

Thanks for your help. 

Connecting to remote server exchangeserver failed with the following error message : Access is denied

$
0
0

Hi,

i am trying to create email account on exchange 2013 using SharePoint Webpart. When connection open getting 

Connecting to remote server exchangeserver failed with the following error message : Access is denied

System.Management.Automation.Remoting.PSRemotingTransportException was unhandled by user code
  HResult=-2146233087
  Message=Connecting to remote server myexchangeserver failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
  Source=System.Management.Automation
  WasThrownFromThrowStatement=false
  ErrorCode=5
  TransportMessage=Access is denied.  
  StackTrace:
       at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
       at System.Management.Automation.RemoteRunspace.Open()
       at ADUserCreationWP.VisualWebPart1.VisualWebPart1UserControl.Btn_EmailCode(Object sender, EventArgs e)
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  InnerException: 

i have added sharepoint farm account in exchange organization management group. through windows powershell i can connect exchange using farm account but not able to connect using C# / SharePoint Code.

pls guide what could an issue and how to fix it.

Thanks


iffi


Problems with exchange Autodiscover

$
0
0

Hi. I am in the process of setting up an experimental exchange 2013 server. I am using the Microsoft remote connectivity analyser and I am having issues with autodiscover. Here is the result:


The Microsoft Connectivity Analyzer is testing Exchange ActiveSync.
 The Exchange ActiveSync test failed.
 
Additional Details
 
Elapsed Time: 6140 ms.


 
Test Steps
 
Attempting the Autodiscover and Exchange ActiveSync test (if requested).
 Testing of Autodiscover for Exchange ActiveSync failed.
 
Additional Details
 
Elapsed Time: 6138 ms.


 
Test Steps
 
Attempting each method of contacting the Autodiscover service.
 The Autodiscover service couldn't be contacted successfully by any method.
 
Additional Details
 
Elapsed Time: 6138 ms.


 
Test Steps
 
Attempting to test potential Autodiscover URL ://mydomainname/AutoDiscover/AutoDiscover.xml
 Testing of this potential Autodiscover URL failed.
 
Additional Details
 
Elapsed Time: 3887 ms.


 
Test Steps
 
Attempting to resolve the host name mydomainname in DNS.
 The host name resolved successfully.
 
Additional Details
 
IP addresses returned: MYIPHERE

Elapsed Time: 588 ms.


Testing TCP port 443 on host mydomainname to ensure it's listening and open.
 The port was opened successfully.
 
Additional Details
 
Elapsed Time: 648 ms.


Testing the SSL certificate to make sure it's valid.
 The certificate passed all validation requirements.
 
Additional Details
 
Elapsed Time: 658 ms.


 
Test Steps
 
The Microsoft Connectivity Analyzer is attempting to obtain the SSL certificate from remote server mydomainname on port 443.
 The Microsoft Connectivity Analyzer successfully obtained the remote SSL certificate.
 
Additional Details
 
Remote Certificate Subject: E=postmastermydomainname, CN=mail.mydomainname, C=GB, Description=Ll0LUxgD11owxF88, Issuer: CN=StartCom Class 1 Primary Intermediate Server CA, OU=Secure Digital Certificate Signing, O=StartCom Ltd., C=IL.

Elapsed Time: 529 ms.


Validating the certificate name.
 The certificate name was validated successfully.
 
Additional Details
 
Host name mydomainname was found in the Certificate Subject Alternative Name entry.

Elapsed Time: 0 ms.


Certificate trust is being validated.
 The certificate is trusted and all certificates are present in the chain.
 
Test Steps
 
The Microsoft Connectivity Analyzer is attempting to build certificate chains for certificate E=postmastermydomainname, CN=mail.mydomainname, C=GB, Description=Ll0LUxgD11owxF88.
 One or more certificate chains were constructed successfully.
 
Additional Details
 
A total of 1 chains were built. The highest quality chain ends in root certificate CN=StartCom Certification Authority, OU=Secure Digital Certificate Signing, O=StartCom Ltd., C=IL.

Elapsed Time: 17 ms.


Analyzing the certificate chains for compatibility problems with versions of Windows.
 Potential compatibility problems were identified with some versions of Windows.
 
Additional Details
 
The Microsoft Connectivity Analyzer can only validate the certificate chain using the Root Certificate Update functionality from Windows Update. Your certificate may not be trusted on Windows if the "Update Root Certificates" feature isn't enabled.

Elapsed Time: 2 ms.

Testing the certificate date to confirm the certificate is valid.
 Date validation passed. The certificate hasn't expired.
 
Additional Details
 
The certificate is valid. NotBefore = 2/14/2014 5:37:21 AM, NotAfter = 2/14/2015 9:24:58 AM

Elapsed Time: 0 ms.

Checking the IIS configuration for client certificate authentication.
 Client certificate authentication wasn't detected.
 
Additional Details
 
Accept/Require Client Certificates isn't configured.

Elapsed Time: 579 ms.


Attempting to send an Autodiscover POST request to potential Autodiscover URLs.
 Autodiscover settings weren't obtained when the Autodiscover POST request was sent.
 
Additional Details
 
Elapsed Time: 1412 ms.


 
Test Steps
 
The Microsoft Connectivity Analyzer is attempting to retrieve an XML Autodiscover response from URL ://mydomainname/AutoDiscover/AutoDiscover.xml for user sammyelrefeemydomainname.
 The Microsoft Connectivity Analyzer failed to obtain an Autodiscover XML response.
 
Additional Details
 
An error message was returned from the Autodiscover service
XML response:
<?xml version="1.0"?>
<Autodiscover xmlns:xsd="://www.w3.org/2001/XMLSchema" xmlns:xsi="://www.w3.org/2001/XMLSchema-instance" xmlns="://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
 <Response xmlns="://schemas.microsoft.com/exchange/autodiscover/mobilesync/responseschema/2006">
 <Culture>en:us</Culture>
 <User>
 <DisplayName>sammyelrefee</DisplayName>
 <EMailAddress>sammyelrefeemydomainname</EMailAddress>
 </User>
 <Action>
 <Error>
 <Status>1</Status>
 <Message>No external URL is available to access this mailbox with Exchange ActiveSync. Your Exchange server configuration needs to be changed to allow access.</Message>
 <DebugData>UserMailbox</DebugData>
 </Error>
 </Action>
 </Response>
</Autodiscover>

Elapsed Time: 1411 ms.


Attempting to test potential Autodiscover URL ://autodiscover.mydomainname/AutoDiscover/AutoDiscover.xml
 Testing of this potential Autodiscover URL failed.
 
Additional Details
 
Elapsed Time: 1375 ms.


 
Test Steps
 
Attempting to resolve the host name autodiscover.mydomainname in DNS.
 The host name resolved successfully.
 
Additional Details
 
IP addresses returned: MYIPHERE

Elapsed Time: 499 ms.


Testing TCP port 443 on host autodiscover.mydomainname to ensure it's listening and open.
 The port was opened successfully.
 
Additional Details
 
Elapsed Time: 394 ms.


Testing the SSL certificate to make sure it's valid.
 The SSL certificate failed one or more certificate validation checks.
 
Additional Details
 
Elapsed Time: 481 ms.


 
Test Steps
 
The Microsoft Connectivity Analyzer is attempting to obtain the SSL certificate from remote server autodiscover.mydomainname on port 443.
 The Microsoft Connectivity Analyzer successfully obtained the remote SSL certificate.
 
Additional Details
 
Remote Certificate Subject: E=postmastermydomainname, CN=mail.mydomainname, C=GB, Description=Ll0LUxgD11owxF88, Issuer: CN=StartCom Class 1 Primary Intermediate Server CA, OU=Secure Digital Certificate Signing, O=StartCom Ltd., C=IL.

Elapsed Time: 431 ms.


Validating the certificate name.
 Certificate name validation failed.
  Tell me more about this issue and how to resolve it
 
Additional Details
 
Host name autodiscover.mydomainname doesn't match any name found on the server certificate E=postmastermydomainname, CN=mail.mydomainname, C=GB, Description=Ll0LUxgD11owxF88.

Elapsed Time: 1 ms.


Attempting to contact the Autodiscover service using the  redirect method.
 The attempt to contact Autodiscover using the  Redirect method failed.
 
Additional Details
 
Elapsed Time: 474 ms.


 
Test Steps
 
Attempting to resolve the host name autodiscover.mydomainname in DNS.
 The host name resolved successfully.
 
Additional Details
 
IP addresses returned: MYIPHERE

Elapsed Time: 24 ms.


Testing TCP port 80 on host autodiscover.mydomainname to ensure it's listening and open.
 The port was opened successfully.
 
Additional Details
 
Elapsed Time: 166 ms.


The Microsoft Connectivity Analyzer is checking the host autodiscover.mydomainname for an  redirect to the Autodiscover service.
 The Microsoft Connectivity Analyzer failed to get an  redirect response for Autodiscover.
 
Additional Details
 
An  403 forbidden response was received. The response appears to have come from Unknown. Body of the response:
Headers received:
X-FEServer: OWAMAIL2
Content-Length: 0
Date: Sat, 15 Feb 2014 17:16:07 GMT
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NET


Elapsed Time: 283 ms.

Attempting to contact the Autodiscover service using the DNS SRV redirect method.
 The Microsoft Connectivity Analyzer failed to contact the Autodiscover service using the DNS SRV redirect method.
 
Additional Details
 
Elapsed Time: 236 ms.


 
Test Steps
 
Attempting to locate SRV record _autodiscover._tcp.mydomainname in DNS.
 The Autodiscover SRV record wasn't found in DNS.
  Tell me more about this issue and how to resolve it
 
Additional Details
 
Elapsed Time: 236 ms.

Checking if there is an autodiscover CNAME record in DNS for your domain 'mydomainname' for Office 365.
 Failed to validate autodiscover CNAME record in DNS. If your mailbox isn't in Office 365, you can ignore this warning.
  Tell me more about this issue and how to resolve it
 
Additional Details
 
There is no Autodiscover CNAME record for your domain 'mydomainname'.

Elapsed Time: 165 mS

tHANKS IN ADVANCE!!

EWS - How can I share IM Contact between mulitple Users in a UCS store ?

$
0
0

HI to all, I'm using EWS with impersonation to create contacts for a specific user. I need these contact to be shared by other users (a sort of Global Directory).

I have to create same contacts  for all users or there is a way to share the same contact between users ?

Thanks for your help.

Office 2013 Outlook app: The requested web method is unavailable to this caller or application.

$
0
0

Currently I'm busy developing an Office 2013 outlook app. I am trying to get the attachment from a mailbox item via the mailbox.makeEwsRequestAsync method. The response I receive has the following error: The requested web method is unavailable to this caller or application.

I used the following envelope.

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><soap:Header><t:RequestServerVersion Version="Exchange2013"/></soap:Header><soap:Body><GetAttachment xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><AttachmentShape><IncludeMimeContent/><BodyType/><FilterHtmlContent/><AdditionalProperties/></AttachmentShape><AttachmentIds><t:AttachmentId Id="AQMkADhkMDRiYzlmLThjN2QtNGM0My05ODMwLTIyAGNmNDI0ZDMwODAARgAAAxnFAoqua3ZGnLV5PgcmjYQHAPCtHV4zyh1HqhQzDmo8SGUAAAMOAAAA8K0dXjPKHUeqFDMOajxIZQAAAysAAAABEgAQAHv5ksiBZM5BsVkyxDDLeIU="/></AttachmentIds></GetAttachment></soap:Body></soap:Envelope>

Cheers,
Mathijs

Issues using powershell to check a shared mailbox

$
0
0

I'm attempting to check a Shared Mailbox using a powershell script, inspired by this blog:

https://seanonit.wordpress.com/2014/10/29/using-powershell-and-ews-to-monitor-a-mailbox/

I'm pretty new to PS and maturer at scripting, so I'm not quite sure how to manipulate the imported DLL and the commands with it

$mailboxName = "<sharedmailbox smtp address>"
Add-Type -Path "C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll"
$Exchange2010SP2 = [Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2010_SP2
$exchangeService = New-Object -TypeName Microsoft.Exchange.WebServices.Data.ExchangeService -ArgumentList $Exchange2010SP2
  $exchangeService.UseDefaultCredentials = $true
  $exchangeService.AutodiscoverUrl($mailboxName)
$inboxFolderName = [Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox
  $inboxFolder = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($exchangeService,$inboxFolderName)
$itemView = New-Object -TypeName Microsoft.Exchange.WebServices.Data.ItemView -ArgumentList 10
  $dateTimeItem = [Microsoft.Exchange.WebServices.Data.ItemSchema]::DateTimeReceived
  $15MinutesAgo = (Get-Date).AddMinutes(-15)
  $searchFilter = New-Object -TypeName Microsoft.Exchange.WebServices.Data.SearchFilter+IsLessThanOrEqualTo -ArgumentList $dateTimeItem,$15MinutesAgo
  $foundItems = $exchangeService.FindItems($inboxFolder.Id,$searchFilter,$itemView)

The behavior is weird. It does only 10 items, but it they're from my primary inbox, not the shared one I have access to.  Also, the time restriction doesn't seem to apply.

E2013 TA C# Windows: How do I use a configuration file with a TA

$
0
0

Hello,

I'm building a transport agent for Exchange 2013 and I would like to use a configuration file for this agent.

I do not want to read the configuration file each time a TA is created in order to avoid the IO and time needed, is there a way to have it memory for all instances of the agent?

Thanks in advance,

Christos

"The mailbox that was requested doesn't support the specified RequestServerVersion" -while trying to fetch data for room mailboxes

$
0
0

Hi,

 I try to get the room mailbox usage with the use of

service->GetUserAvailability(IEnumerable<AttendeeInfo>, TimeWindow, AvailabilityData, AvailabilityOptions)

where service is invoked by service = gcnew ExchangeService(ExchangeVersion::Exchange_version)

but the API is throwing error as "The mailbox that was requested doesn't support the specified RequestServerVersion.GetType:Microsoft.Exchange.WebServices.Data.ServiceResponseExceptionToString:Microsoft.Exchange.WebServices.Data.ServiceResponseException: The mailbox that was requested doesn't support the specified RequestServerVersion."

I'm loading the corresponding Exchange server version,even then I'm getting the above error. May I know what is the cause of the error and how to solve it ? Are there any possibility for the error to araise if I load Exchange2007_SP1 server version and try to read 2007 RTM data?

Thanks in advance

Exchange 2013 failover

$
0
0

We have a single DAG deployment (exchange 2013) across two locations which are our Primary and Secondary Datacentres. With a single DAG deployment we run in an Active/Passive Environment, Databases should not split between sites to ensure that the Failover Cluster can always maintain Quorum correctly.
We do have 2 CAS server and 2 mailbox server (1 CAS and 1 mailbox server in each DC), DC 2 which is our exchange service running from will shutdown for maintenance and we need to have our service running from DC 1,Can you please advice what is the best practice for moving the service to DC1?



Adding attendees with SendToChangedAndSaveCopy

$
0
0

Hello,

I've created a new appointment with one Attendee attendee1@u.u and saved it with SendToNone option. I don't want to send Attendee1 a meeting request. 

Than i've added two attendees attendee2@u.u and attendee3@u.u to appointment and updated it with SendToChangedAndSaveCopy. In sent items i see a meeting request with 3 attendees: organizer, attendee2@u.u, attendee3@u.uWith no attendee1@u.u

But

When i add attende2@u.u with SendToChangedAndSaveCopy and then add attendee3@u.u to same appointment and SendToChangedAndSaveCopy 

i see two meeting requests in sent items:

First with 2 attendees: organizer and  attende2@u.u

And second with four:  attende1@u.u attende2@u.u  attende3@u.u and organizer.The last behavior is goal. Can somebody explain please how can i get it on regular base?

Screen labels in Exchange Outlook Properties

$
0
0

We would like to change the screen label text displayed in the "Properties" of user information contained on the "Phone/Notes" tab in the Exchange 2010 Global Address Book. This same data is contained on the "Telephones" tab in "Active Directory Users and Computers".Nobody uses Fax: anymore so we would like to change the display name to Remote: to add the remote office numbers of our employees and reduce confusion. Yes, we could cheat and just tell everybody that the remote office number is actually the fax number but we'd like to avoid that workaround.

The "Remote:" office number is a phone number so absolutely nothing changes except the screen label the users see on the screen. Is this possible?

Open runspace threw an exception of type System.Management.Automation.PSNotImplementedException

$
0
0

Hi,

i am working on to create email box using SharePoint Web Part. Getting error when try to open runspace. 

Code:

// Set credentials to make a remote connection to Outlook Live 
            string userName = "sp.fam@mydomain.com";
            string password = "Pa$$word";
            int count = 0;
            SecureString secureString = new SecureString();
            foreach (char c in password) secureString.AppendChar(c);
            secureString.MakeReadOnly();
            PSCredential credentials = new PSCredential(userName, secureString);
            // Set the connection Info 

            WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("http://myexchange.mydomain.com/PowerShell"),
        "http://schemas.microsoft.com/powershell/Microsoft.Exchange", credentials);
            connectionInfo.AuthenticationMechanism = AuthenticationMechanism.Kerberos;

            Runspace runspace = RunspaceFactory.CreateRunspace(connectionInfo);
            using (PowerShell powershell = PowerShell.Create())
            {
                powershell.AddCommand("Get-Users");
                powershell.AddParameter("ResultSize", count);

                runspace.Open();
                powershell.Runspace = runspace;
                powershell.Invoke();
            }

Error:
base {System.NotImplementedException} = {"Cannot perform operation because operation \"NewNotImplementedException at offset 63 in file:line:column <filename unknown>:0:0\r\n\" is not implemented."}

pls guide.

thx


iffi

How to send a screen shot with EWS

$
0
0

Hi,

I have a new requirement in my project.How to send a mail with screen shot not as attachment using exchnage web service

Sending Email by using EWS from NodeJS

$
0
0

Hello,

I have created a NodeJs module for sending an email using EWS. I use this library https://github.com/gautamsi/ews-javascript-api to connect with EWS. When I test my module on Local server connecting with local Exchange server. Everything was fine as expected.

But when I deploy my project on Cloud. NodeJs project is hosted on VPS (Digital Ocean) and connect to Exchange online which is part of Office365 (Trial). The problem is all email sending by my module are considered spam (Remote Server returned '550 5.7.501 Access denied, spam abuse detected. For more information please go to http://go.microsoft.com/fwlink/?LinkId=526653').

But if I create sending email request and send to Exchange online from my PC. It is able to sent an email without spam report.


This is Diagnostic information. X-Originating-IP 188.166.177.7 is my Hosting server IP Address.

Authentication-Results: x10studio.com; dkim=none (message not signed)
 header.d=none;x10studio.com; dmarc=none action=none
 header.from=myorganization.onmicrosoft.com;
Received: from HK2PR01MB0355.apcprd01.prod.exchangelabs.com (10.161.184.142)
 by HK2PR01MB0354.apcprd01.prod.exchangelabs.com (10.161.184.141) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16; Tue, 4 Oct
 2016 14:46:38 +0000
Received: from HK2PR01MB0355.apcprd01.prod.exchangelabs.com ([10.161.184.142])
 by HK2PR01MB0355.apcprd01.prod.exchangelabs.com ([10.161.184.142]) with mapi
 id 15.01.0649.021; Tue, 4 Oct 2016 14:46:38 +0000
Content-Type: application/ms-tnef; name="winmail.dat"
Content-Transfer-Encoding: binary
From: ##########################
To: "chanyut@######.com" <chanyut@#########.com>, "chanyut@######.com"<chanyut@######.com>
Subject: Check-in PIN for Test PIN Email - Meeting System
Thread-Topic: Check-in PIN for Test PIN Email - Meeting System
Thread-Index: AQHSHk4c7tB//8WDLUuQyIn8JFNj+w==
Date: Tue, 4 Oct 2016 14:46:37 +0000
Message-ID: <HK2PR01MB03558D3DAC5A9A3A0E61D2EDFDC50@HK2PR01MB0355.apcprd01.prod.exchangelabs.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator: <HK2PR01MB03558D3DAC5A9A3A0E61D2EDFDC50@HK2PR01MB0355.apcprd01.prod.exchangelabs.com>
MIME-Version: 1.0
X-Originating-IP: [188.166.177.7]
Return-Path: ########@myorganization.onmicrosoft.com
X-MS-Office365-Filtering-Correlation-Id: 7dc12cac-6ee3-47fe-abb1-08d3ec653ef1
X-Microsoft-Exchange-Diagnostics:
        1;HK2PR01MB0354;2:66wI1virydAva/v4Uj9GiDURRvk7CrdJz8SbwrrGLwQdt+xwbnU3x8mA+mYaKaCk7MBd0EN3hhKHARNXRBu0RBjvn9wYYBRNejifcESC30k8v/UJgg43X728Bg+Mhfn8j9GyiQGZ4FEuCP+oKFZvaAZxsE6RSPecdhrvPWTZzENIJDJT07R5Q2iH7dg0Il6vhAPMXWMY6uJFlNABk0UCrQ==;3:k+GP2/SfFrulrxW865XQZnOTgbsIDR9joOxMc3bv13YUGslSMlBcHH2OlfoNo2QVuvuYM/k6zn5Z4oSuxdboqSRJd+npaWnz2fVbPNzNwffxj5RiHQ50rmyqg9Xt9qEWSy16eklhfe1gUQR5lmZqeQ==
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HK2PR01MB0354;
X-Microsoft-Exchange-Diagnostics:
       1;HK2PR01MB0354;25:KGfbOYuP35KidTltFM/LflZoWDr3nu4EBLiJ7XbsXJfpMuKop70a0q+tFXa1suuN3xPHWlzUBGnt+q1zQRIrxpMu+1V4KZjYSEulRnUoZw0AurtbusYWXREUjLl1OwhsQn7PBMP22iPF4zkNzgNPhqD+j8NpomJWX6QHPMK3jjtNdaxistDL6SlAOFgYajqiLHKpzxfuIAugoURwzus+nC2DGKQmfl8HWYnMmeC9stTrTzeOSPmSgRWvPt55+0w7zCN6g8BmQwWp8pPMyqnJHZ7w5tyEfE8HDKmm3J1StGLXgt5rLez7ZUsCpoJ0xwzBExx22Op1sdWA18ae2ruyXXaTccV1pFHyC2v/2ePqIqq6SWx0xhJa0w77/dO8SCEWWXVt2r1cPPzF+7ILDkQHvsZi+QZttHlntwmVGZSyZHHHnv7YLIj4jWeleYNwWqgghw29XB03Kk02yEFo7sSeQmn4VvqPXiKTGAAbxESvn0LYaVNxIKGI8YzXNvGUxwaQQbmHO9FFtcefQgUSrgM2JZB+MfWpXoLTzwL0kr+zwkJrSF99oPW4pxqDIdNwRcwv53BBTFumcL9TQcO08NvduBA1EuoHVNrWRejbw2pIPfXiO/RrSx/BVZsSPCyZ7asf5aRgRgWShxnNpIY95z1uCgUdYFBwa/sO+Dph1KsxxTkz/2w1Oe3li6M1k1zjWx1CaoCRF0RHzEsjQNCF/skGhvJYYoICc7WAZQwpsOpWCeqJKpAfKfCtbYYpTo0qxe71VmkVn7lL7ACue7LFQ/UerR71VVsmt4XgId+woRKGBQ/0+Fd/4bbFUeA6b1PdvD3HzXM7CXZQQyRwilbJdlrJ0ArgB9moDUdpvnn/ivzN54MuugXN81jmqQlb6hNOF4Of
X-Microsoft-Exchange-Diagnostics:
    1;HK2PR01MB0354;31:y3lbYNyZxWshE8BTjiBXs3KIiRJ9uREVimubR1bw5jj3Wd12Hyq3ugVkfm5NUBywXf9MDDJEy06PFeDMzbcozgwHX+TvJscvi985yJjoZDC9oOqaqMKxCLrjH/ieywLRDAu99qXuxXIDUMnguOD9I62mUwF3BQGQa5eMoUFIdEThhaRGjBUNFfOK1RWfP/AahVPGRPmiMufHhnx5UX242g4ETpF2jCUG959HrYYrgWZ8Mbw5GAK72elqBCTZ04/V8vJMbq1OFGlTJP5K2guJtg==;4:oTt04mt5FJne8VNpRSgDGveDWFLA5ePEeS4IiZ92er0dhVfjhVBFy3uG1/rI3NIDdmNCkUNacdyBwNsjPOOblqVxi2DpcVQ38tratgfM98taV52tXCSYufMocXV9tIs/1j4SSO701e0KgSc2s0c1OHC6u2iWppB3DjmWGDR3L+rAMLDrKYsf8Z6P9vVUjUCUSJfxR9tce1x4nixcbQnjMcWoD1pENqsrArdokzxjfWZXy8XMMU1DPfJoVwOISVcorad0f3ErULXLMEMZq9hYlI52ktmSy35kdsigw9+gwKqggwOKUQpWje55dnfyHkl1kLl2V2S5yQumzqZTOGnFgovpVQcwcbYys/0OJhw3yNbsxyowpV9V3rA9MUhctrNwDI0xAH24dGr28eDgatCxe1aHfsWZiEgidqT6DGkrAqP90U8BVZD6OsXLHASFlcGPFoY10WlK51fU+0AyqOGjFTwEfbvM4g3OiKdmaAj2ke4=
X-Microsoft-Antispam-PRVS:<HK2PR01MB03542DDA819D269D4C8E73F2FDC50@HK2PR01MB0354.apcprd01.prod.exchangelabs.com>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test:
 BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6000006)(6002118)(6042046)(6043046);SRVR:HK2PR01MB0354;
X-Forefront-PRVS: 00851CA28B
X-Microsoft-Exchange-Diagnostics:
       1;HK2PR01MB0354;23:rTZLL56LshA5mqWVCtwdUsL+taeslTSyQV+2lC1YHyuKIG0jGKrpJmGQluBkCOaoRAfjnp+BQ8j9XAp2VEwfxfThjFgNeaX/rmD9okqtimWLOaOWGU5FCOAuVCSGuqKvdMr4tXWggnZzN1QxhQ7hAJfiHbc66tbCv7M8BF9IsrcrzRbhRyjQSQLYv1TFYNNyej6HnwHoz4XYqHNx0QNajsaey2bTMVKDv6Q9DeWTLWXTBoFiKOCA2OHeeRfVFva/b1qnptHE+YT/C24a1Xe2Yw==;6:/ECmlFJRW9bxgDraJ/IYPgm7xqZwiZl6thxMMIDXPHwPT35C6vUTwji92Cm6Kj7IkUc6eSWADssoJ9ufzptOHZskDjMas77LVLrn+RNuJcL6Gbz/yALs8dEWW8Jnd1VhBVx/KJm0voeq3J9w3bX3a5CyVFhGiR2GWm3Z9iY/2Jw0wfhQ+OXFi2t8Q6YJn7BW5BtQF8+ooyqJcGprFarZZ0z5PfhyRBpRzdIpizlhcNwGZRhpgD2uNpQCq1ihbnQ7z13GlTuLWMIF2mfXivZ8BC5EXR+egoDC6jTm/bQ0tSjQExMjHZKsR1wthD5NbseP

Best regards,

Chanyut

Viewing all 7132 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>