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

Cannot login to EWS service with subdomain user credentials

$
0
0

My network topology is a main domain where Exchange Server 2010 is working the users are using OWA, I recently added a child domain and created some users on that subdomain and created mailboxes on exch for that subdomain users, they can access to OWA too,but I can not make it login to EWS URL service.

I test login to https://srvexch10.company.com/ews/Exchange.asmx with a browser using a main domain user credentials and it does, but I can not login with subdomain user credentials.

Does anyone has setup this environment or knows if I am missing some configuration on exchange server?


EWS impersanation question?

$
0
0

Hello guys,

We have a web application for making meeting reservations. We would like to integrate this application with exchange in order to place meeting reservations from both of them. I wonder EWS impersanation is a security bug? If it is, then is there a way to do this integration?

Best Regards & Thanks in advance.

Welcome email automation issue

Microsoft.Exchange.WebServices.Data.ServiceResponseException: SMTP 地址格式无效

$
0
0

我在维护一个公司以前的应用,通过EWS,用一个ServiceAccount,用Exchange Impersonate,读取当前Web页面登录用户的日程。类似 https://msdn.microsoft.com/en-us/library/office/dd633680(v=exchg.80).aspx 里描述的。

但我遇到了如下错误,我上哪儿去找传入的SMTP到底是啥?为啥无效?

Microsoft.Exchange.WebServices.Data.ServiceResponseException: SMTP地址格式无效。

   Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ProcessWebException(WebException webException)

   Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)

   Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)

   Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecute()

   Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()

   Microsoft.Exchange.WebServices.Data.ExchangeService.BindToFolder(FolderId folderId, PropertySet propertySet)

   Microsoft.Exchange.WebServices.Data.ExchangeService.BindToFolder[TFolder](FolderId folderId, PropertySet propertySet)

   Microsoft.Exchange.WebServices.Data.CalendarFolder.Bind(ExchangeService service, WellKnownFolderName name)

Convert mailboxes to mail-enabled users

$
0
0

We are doing an Office 365 migration from Exchange 2010. We are following the cutover migration with single-sign guide:

https://community.office365.com/en-us/w/exchange/835.cutover-exchange-migration-and-single-sign-on

Step 2 of the guide says we need to convert mailboxes to mail-enabled users. The problem is that it doesn't say how this is done for Exchange 2010. It only mentions Exchange 2003 and 2007.

Searching the Office 365 support forum says that Microsoft doesn't have such a guide for Exchange 2010 and that the question needs to be asked here:

https://community.office365.com/en-us/f/156/t/274993

Additionally, searching here doesn't seem to lead to any conclusive answer apart from an unverified script on an external website.

Any help with this issue would be much appreciated.

Exchange 2016 Multi-Tenant

$
0
0

Hi

i looking for good reference for Multi-tenancy in Exchange 2016 ( Or 2013 ) but i couldn't found a good Docs or Videos for this issue .

so i was configured with below site method but i want know more than this help .

geekandi.com

i appreciate if you send me some suggest for this topic :)


[E2010][EWS][C#] How to receive list of TLS domains

$
0
0

Hi,

How can I get a list of the TLS configured domains from the Exchange server using C# and EWS (or other API)?

Many thanks.


How to retrieve the resources for an appointment by querying the meeting room's calendar

$
0
0
I have created a meeting (appointment) which will take place on 2 meeting rooms. The 2 meeting rooms are set as resources on the appointment object. When querying the meeting room calendar the appointment object I receive will always have 0 resources. How can I retrieve the two meeting rooms set initially?

How can I get the SMTP proxy adddresses of the currently logged in user by JavaScript code in Outlook 365 add-in?

$
0
0

Hello experts,

after some googling I'm under impression that there is no way to get what I want except for creating a proxy web service component that will call EWS FindPeople method (and it will return only 3 proxy addresses even if I have 10 ones). Have I missed something?

Thanks,

Victor Ivanidze

 


Exchange and Outlook utilities at
http://www.ivasoft.com




Get company resources

$
0
0

I'm building an application which needs to fetch a list of all employees/meeting rooms/resources from O365 account. The app uses EWS SOAP interface.

First, I'm making "FindPeople" request where I specify "ParentFolderId" parameter to get a list of all Personas, then I loop through all of them with "GetPersona" request to get additional information.

The problem is I don't know who is a person, who is a meeting room and who is a resource, it returns "Person" persona type for all of the records, even meeting rooms of company cars.  How can I get correct information about each Persona?


OWA logoff

$
0
0

Hello,

Exchange 2013 cu9. 2 cas servers and 2 mbx servers.  CAS servers balance is done  by DNS round robin. The problem is that OWA kicks off users. User opens OWA page, enters credentials, works with messages and then randomly login page appears.

What could be the reason and how to fix it?

thank you. 

[E2010] [EWSMA] [C#] [Windows]: Certificate-based authentication - An error occurred when verifying security for the message

$
0
0

Hello,

I'm getting an error in my response from the server when I try to use certificate-based credentials. The error is:" Service Response Error: An error occurred when verifying security for the message." I don't have any problems connecting to a mailbox using a username and password.

// local vars
string email = "myemail@domain.local";
string pass = "mypassword";
string subjectKeyIdentifer = "xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx";
string endpoint = "https://myserver.domain.local/EWS/Exchange.asmx";
int throttle = 50;

//create service object
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010);

//get the certificate by subjectKeyIdentifier
//and create the credentials
X509Certificate2 x509Cert = getClientCertifcate(subjectKeyIdenifier);
service.Credentials = new X509CertificateCredentials(x509Cert);

//if I use username/password credentials like below:
//I don't have any problems connecting to the service
//service.credentials = new WebCredentials(email,pass);

service.Url = new Uri(endpoint);


//create search criteria
SearchFilter sf = new SearchFilter.SearchFilterCollection(LogicalOperator.And, new SearchFRilter.IsEqualTo(EmailMessageSchema.IsRead, false));
PropertySet itemProperySet = new PropertySet(BasePropertySet.FirstClassProperties);
itemPropertySet.RequestedBodyType = BodyType.Text;
ItemView itemView = new ItemView(throttle);
itemVirew.PropertySet = itemProperySet;

try
{
  //Code dies here and gives the error
  // doesn't matter if I do a search or create a new email, ect...
   FindItemsResults<Item> findResults = service.FidItems(WellKnownFolderName.Inbox, sf, itemview);

}
catch (ServiceResponseException e)
{
  console.WriteLine(DateTime.Now + ": Service Response Error - " + e);
}
Am I missing some piece of code to use a certificate instead of a username/password?  Is there a difference between my request to the server and what the server expects? Any help would be great, thanks.

how to interpret an .ics file where method is reply and attendees are missing

$
0
0

Hi guys,

I'm trying to write an .ics file parser, and got a file like below from one of our customers. A reply without any kind of attendee information, can you please explain how to interpret files like this? What's the use case?

BEGIN:VCALENDAR
METHOD:REPLY
PRODID:Microsoft Exchange Server 2010
VERSION:2.0
BEGIN:VTIMEZONE
TZID:GMT Standard Time
BEGIN:STANDARD
DTSTART:16010101T020000
TZOFFSETFROM:+0100
TZOFFSETTO:+0000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:16010101T010000
TZOFFSETFROM:+0000
TZOFFSETTO:+0100
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
SUMMARY;LANGUAGE=en-US:Accepted: Updated Invitation: Someone @
  Mon 6 Jun 2016 10:00am - 11:00am (someone@somewhere.com)
DTSTART;TZID=GMT Standard Time:20160606T100000
DTEND;TZID=GMT Standard Time:20160606T110000
UID:xxxx@google.com
CLASS:PUBLIC
PRIORITY:5
DTSTAMP:20160606T170612Z
TRANSP:OPAQUE
STATUS:CONFIRMED
SEQUENCE:2
LOCATION;LANGUAGE=en-US:somewhere
X-MICROSOFT-CDO-APPT-SEQUENCE:2
X-MICROSOFT-CDO-OWNERAPPTID:0
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
X-MICROSOFT-CDO-IMPORTANCE:1
X-MICROSOFT-CDO-INSTTYPE:0
X-MICROSOFT-DISALLOW-COUNTER:FALSE
END:VEVENT
END:VCALENDAR

Sending on behalf of outlook mail box

$
0
0

I've written a windows service that sends email through 5 exchange mail boxes using EWS.

These email boxes are “Emailed Enabled Contact Accounts”; (they are service accounts and an email box).

A new requirement came in to have each of the 5 post offices send on behalf of one COMPANY_GROUP mailbox.

Our company has a policy stating that only 10K emails can be sent for one mailbox per day, after that email sending will be stopped on the COMPANY_GROUP mailbox.

We have many more than emails to send than that per day, hence the service to send the emails using 5 mail boxes.

My example scenario is:

  1. In one day I send 10K emails through each of the 5 email boxes, all of them on behalf of our COMPANY_GROUP mailbox for a total of 50K per day...

My question is:

Will this 50K count be incremented on the COMPANY_GROUP mail box?

If this is true, then after the 10K limit for the COMPANY_GROUP mail box has been reached the 10K per day shutdown will happen?

If this is true, is there a way to not have these send-on-behalf emails to not be counted on the COMPANY_GROUP mail box


Richard Loba


Error Occured at Underlying Security System ; Where to syn mobile in outlook 2013 ?

$
0
0

Caught the Error when sending and saving email at outlook 2013 as the Topic , see attach screenshot here please .  By recreated the account , replace back into old name account.  Fixed it few times. Well, as it re-frequently this month. Please have a look on it . Wait for your feedback ...

Few times this month.


Exchange 2010 Storage configuration best practice.

$
0
0

Dear All,

a little question still floating around even after reading all the related articles, what are best practices to follow while configurating storage for exchange 2010. below is the environment.

clear and cut reply is really thankful.

JBOD storage with 2 Dell Controllers.

8 servers host.

this is exchange virtual deployment. let me know if any question while understanding this ?

Salman K.

Language in messages room mailbox.

$
0
0

Hi,

We have a sharepoint application used by users to make appointments in a room mailbox of an Exchange 2010 server.

All servers in our organization are in English. The room mailbox and all user's mailboxes are configured in Spanish with cmdlets Set-Mailbox and Set-MailboxRegionalSettings.

The Sharepoint application uses EWS to date the appointments, and uses impersonation.

When a user makes an appointment with Outlook, he receives the answer from autoatendant in Spanish. When that user makes the appointment with Sharepoint application, he receives the same answer, but in English.

Here is the code of the application making the appointment:

System.Net.ServicePointManager.DefaultConnectionLimit = 20;

            ExchangeService result = null;

            SPSecurity.RunWithElevatedPrivileges(delegate()
            {
                using (SPSite elevatedSite = new SPSite(idSite))
                {
                    result = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
                    result.Timeout = 300000;
                    ServicePointManager.ServerCertificateValidationCallback = (RemoteCertificateValidationCallback)Delegate.Combine(ServicePointManager.ServerCertificateValidationCallback, new RemoteCertificateValidationCallback(ExchangeConnect.RemoteCertificateValidationHandler));

                    NetworkCredential credentials = SecureStoreConnect.GetServiceCredentials(elevatedSite, Definitions.Exchange.SecureStoreName);
                    result.Credentials = credentials;
                    result.Url = new System.Uri(Definitions.Exchange.ExchangeServer);

                    if (SPContext.Current != null && SPContext.Current.Web != null && !string.IsNullOrEmpty(SPContext.Current.Web.CurrentUser.Email))
                    {
                        result.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, SPContext.Current.Web.CurrentUser.Email);
                    }
                }
            });

            return result;

We need to receive the autoatendant message in Spanish.

So I need your help.

Accepting meeting request and reading data of that meeting from EWS

$
0
0

Here i assigned a email delegation of an Resource (Room) to an email address.

So Whenever the resource is being used by clients, i am getting an email to accept or reject the allocation of room to them.

What i am trying to do was, to store that meeting request information into database like meeting attendees and time etc..

and i want to send them an acceptance by using EWS.

How can this be done? any examples are appreciated.

Looking forward for your valuable suggestion.

Thanks in advance.

How to get UserIDs and Profile Pictures of meeting attendees

$
0
0

Right now i am using user account xyz@exchange.com and gave all permisions to impersonate a Room(Resource) calendar.

By doing this i am able get  the fallowing information like : meetings times,Duration, Attendees email address,organizer ID.

There are few other things which i want to retrive like Attendees profile pictures and UserId's. What can be done in order to obtain this information.





MAPI/CDO support for Exchange 2016

$
0
0

Hi Team,

I want to know can we connect to Exchange 2016 through MAPI/CDO client?

Waiting for your valuable feedback.

THanks and Regards,
Dev1.1


Viewing all 7132 articles
Browse latest View live


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