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

event ID- 8010 on exchange 2010 HUB and CAS server-

$
0
0

getting below error on exchange 2010 HUB and CAS server-

A message with the Internal Message ID 23009224 was rejected by the remote server.  This message will be deferred and retried because it was marked for retry if rejected.  Other messages may also have encountered this error.

and we already added below key-

<add key="RecipientThreadLimit" value="2" />
<add key="MaxMailboxDeliveryPerMdbConnections" value="3" />

but still getting the event ID- 8010, May I have any suggestion for this?


TimeZoneConversionException when converting time from new russian timezone (UTC+03:00) Moscow, St. Petersburg, Volgograd (RTZ 2) to UTC

$
0
0

Hello everyone.

We developed a program, which works with Exchange Server appointments through EWS Managed API. It was working fine untill we installed recent windows update KB2998527, which is associated with time zone changes in Russia. Now when program attempts to create appointment in Exchange, EWS throws such exception:

Microsoft.Exchange.WebServices.Data.TimeZoneConversionException: Unable to convert 2014-01-01T00:00:00.000 from (UTC+03:00) Moscow, St. Petersburg, Volgograd (RTZ 2) to UTC. ---> System.ArgumentException: The supplied DateTime represents an invalid time.  For example, when the clock is adjusted forward, any time in the period that is skipped is invalid.
Parameter name: dateTime
   at System.TimeZoneInfo.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone, TimeZoneInfoOptions flags, CachedData cachedData)
   at Microsoft.Exchange.WebServices.Data.EwsUtilities.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone)
   --- End of inner exception stack trace ---
   at Microsoft.Exchange.WebServices.Data.EwsUtilities.ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone)
   at Microsoft.Exchange.WebServices.Data.ExchangeServiceBase.ConvertDateTimeToUniversalDateTimeString(DateTime value)
   at Microsoft.Exchange.WebServices.Data.EwsServiceXmlWriter.TryConvertObjectToString(Object value, String& strValue)
   at Microsoft.Exchange.WebServices.Data.EwsServiceXmlWriter.WriteElementValue(XmlNamespace xmlNamespace, String localName, String displayName, Object value)
   at Microsoft.Exchange.WebServices.Data.EwsServiceXmlWriter.WriteElementValue(XmlNamespace xmlNamespace, String localName, Object value)
   at Microsoft.Exchange.WebServices.Data.AbsoluteDateTransition.WriteElementsToXml(EwsServiceXmlWriter writer)
   at Microsoft.Exchange.WebServices.Data.ComplexProperty.WriteToXml(EwsServiceXmlWriter writer, XmlNamespace xmlNamespace, String xmlElementName)
   at Microsoft.Exchange.WebServices.Data.TimeZoneDefinition.WriteElementsToXml(EwsServiceXmlWriter writer)
   at Microsoft.Exchange.WebServices.Data.ComplexProperty.WriteToXml(EwsServiceXmlWriter writer, XmlNamespace xmlNamespace, String xmlElementName)
   at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.WriteToXml(EwsServiceXmlWriter writer)
   at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.EmitRequest(IEwsHttpWebRequest request)
   at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.BuildEwsHttpWebRequest()
   at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
   at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalCreateItems(IEnumerable`1 items, FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode, ServiceErrorHandling errorHandling)
   at Microsoft.Exchange.WebServices.Data.Item.InternalCreate(FolderId parentFolderId, Nullable`1 messageDisposition, Nullable`1 sendInvitationsMode)
   at Microsoft.Exchange.WebServices.Data.Appointment.Save(WellKnownFolderName destinationFolderName, SendInvitationsMode sendInvitationsMode)

This exception is thrown only if ExchangeService object is instantiated with time zone (UTC+03:00) Moscow, St. Petersburg, Volgograd (RTZ 2). If we use different time zone everything is OK. Date of the appointment is not 2014-01-01T00:00:00.000

So here is the question: why this error may hapen and how it can be fixed?

Any help will be greatly appreciated.

Thanks.

Trouble reading files, error -523 ( service transaction error)

$
0
0
We are backing up mailboxes on an Exchange 2007 server and have recently started seeing a backup error on one mailbox out of about 25.

T-597: PtSend: cmd MbeF/msg RdBg: byte count 1041 exceeds maximum of 1024
Trouble reading files, error -523 ( service transaction error)

Anyone know what this means or what we can do to resolve it?

Exchange is on a different server than Retrospect. We are running Exchange 2007 with the latest service packs and updates. Retrospect is version 7.7.620 and the server with Exchange has client version 7.7.114. Let me know if you need any other information. Thanks. 

EWS managed API getting attendee timezone with daylight savings details

$
0
0
I use the GetUserAvailability operation to get the attendee availability details I am getting AttendeeAvailability, which contains a WorkingHours property, which itself includes TimeZone. BUt the problem is it gives only offset. If daylight savings are there or not how would i know? How to find the actual timezone string or how to know whether the offset is with daylight savings or without daylight savings?

Partha

[office365 Exchange online][MVC5][EWS Managed Api] Need a hack to get access token ?

$
0
0

Hi there, I am using following code example to get access token from Azure AD online. I need to bridge EWS managed api with office 365 Api via Azure AD. The below code is working just fine in my MVC application but I am looking for a way to get the access token in simple string returning  function so that I can use it to make call against EWS mananged api.

private static string tempToken = "";

        public static string GetAccessToken()
        {
            return tempToken;
        }



        internal static async Task<OutlookServicesClient> EnsureOutlookServicesClientCreatedAsync(string capabilityName)
        {
            var signInUserId = ClaimsPrincipal.Current.FindFirst(ClaimTypes.NameIdentifier).Value;
            var userObjectId = ClaimsPrincipal.Current.FindFirst("http://schemas.microsoft.com/identity/claims/objectidentifier").Value;
            AuthenticationContext authContext = new AuthenticationContext(Settings.Authority, new NaiveSessionCache(signInUserId));
            try
            {
                DiscoveryClient discClient = new DiscoveryClient(Settings.DiscoveryServiceEndpointUri,
                async () =>
                {
                    var authResult = await authContext.AcquireTokenSilentAsync(Settings.DiscoveryServiceResourceId,
                    new ClientCredential(Settings.ClientId,
                    Settings.AppKey),
                    new UserIdentifier(userObjectId,
                    UserIdentifierType.UniqueId));
                    return authResult.AccessToken;
                });
                var dcr = await discClient.DiscoverCapabilityAsync(capabilityName);
                return new OutlookServicesClient(dcr.ServiceEndpointUri,
                async () =>
                {
                    var authResult = await authContext.AcquireTokenSilentAsync(dcr.ServiceResourceId,
                    new ClientCredential(Settings.ClientId,
                    Settings.AppKey),
                    new UserIdentifier(userObjectId,
                    UserIdentifierType.UniqueId));
                    return authResult.AccessToken;
                });
            }
            catch (AdalException exception)
            {
                //Handle token acquisition failure
                if (exception.ErrorCode == AdalError.FailedToAcquireTokenSilently)
                {
                    authContext.TokenCache.Clear();
                }
                return null;
            }
        }

This is an excerpt from Microsoft single tenant application in MVC5.  In the code, I have created a function called GetAccessToken() which does nothing.. I am hoping you experts can help me figure out how to transfer the accessToken from EnsureOutlookServcesClientCreated function which is actually returning token, to  my GetAccessToken() so that I can make call against EWS managed Api. Sorry, If I sound pretty stupid but I really need your help in this regard. 

best regards,

Use another identity of the sender

$
0
0

Hi all !

I have exchange server 2007 with an Outlook 2013 client.

I want to configure another name to the sender but I have an error (you are not allowed to send this message with the secified user name [I translate a french error message]), the account is not found. With POP3 it's available, how can I do this with Exchange ? 

The case is that I have a mail box for a service, and I want connected user to be the sender and not the identity user of the mailbox. To my case be complete: the user doesn't have a mailbox.

Can't Delete / Move the Message on OWA Exchange 2010

$
0
0

Hi, I've problem with OWA Exchange 2010. I can't Delete or Move the message from inbox. on Premium OWA I got error message:

Your network connection isn't available. If the problem continues, contact your helpdesk with this HTTP Status code: 302.

but I can delete several message that have attachment lower than 5 MB on Light OWA

I've read all related threads, but no one can solve my problem. hope can solve with this threads.

Thanks & Regards

Fahmi_

service.GetUserAvailability.WorkingHours is not returning the timezone name or id

$
0
0
I am trying to get multiple users' time zone and was using service.GetUserAvailability.WorkingHours to get the timezone for a user. I am getting the offset of an user's timezone, but not getting the timezone name or timezone id(actually a alphanumeric string is received for id). Please help to sort this issue to get the Timezone name

ResolveNamesResponseMessageType.ResolutionSet value is null for location

$
0
0

When I resolve using location name from C# by ExchangeReference I am getting null values for ResolveNamesResponseMessageType.ResolutionSet although the location name is available in exchange server

We are facing issues in application when we try to resolve room name to the room email address.

the exact line of code in EWS service is below

response = bind.ResolveNames(type);
if (response != null)
{
WritetoLogfile("Geetting into rooms");
responseMessage = response.ResponseMessages.Items[0] as myAppEWS.ExchangeReference.ResolveNamesResponseMessageType;

responseMessage.ResolutionSet  is null causing this issue,


Can OWA server always be used an outgoing SMTP server?

$
0
0

I am trying to determine the outgoing SMTP server name. I see no obvious way to retrieve it from an arbitrary machine that can be outside of the domain.

The server is not in the autodiscover XML. MX records cannot be used since they point to the servers that process incoming SMTP messages, and I have no luck authenticating against them to send an outbound message.

Interestingly, the OWA server extracted from the OWAUrl autodiscover element worked as an SMTP server (TLS, post 587) in my limited tests (I tried Office 365 mailbox and a couple of prem Exchange 2013 installations).

Will this always be the case for an arbitrary Exchange installation?

Thanks!


Dmitry Streblechenko (MVP)
http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Version 5.5 is now available!

[EWS Managed Api][office 365 exchange online] How to use EWS managed Api in office 365 exchange online?

$
0
0

Hi there, I have been looking for a way to use EWS managed Api 2.0 with office 365 exchange online via Azure AD. There must be a way to use EWS managed api with office 365 exchange online. Ews managed Api is the only thing which supports full permission with Exchange  Mailbox, I want to take advantage of this beautiful Api.

Or  is there any other way to  access office 365 exchange online without Azure AD ? I am using Azure AD to authenticate against office 365 exchange online and using office 365 Rest api which is not working properly and not supporting full access. 

best regards,

Day Light Savings is not applied to Time Offset of availability.WorkingHours.TimeZone in service.GetUserAvailability

$
0
0

I am using EWS for Exchange 2007 to get a user's time zone . I am getting the BaseUTCOffset value which doesnt consider Daylight savings.

TimeZoneInfo tzi = (TimeZoneInfo)availability.WorkingHours.TimeZone;

TimeSpan tsp = tzi.BaseUtcOffset;

The tsp is giving UTC offset without considering daylight savings.

Thanks & Regards,

K.Saravana Deepak


EDB to PST Converter

$
0
0
Which of the two is the better option? Stellar Phoenix exchange db recovery or Kernel exchange server recovery tool or probably another tool?

I have a couple of EDB files that I need to extract mailboxes from but I don't have an exchange server to fire them up with.

How to Edb to pst?

$
0
0
Hi,

I have the necessity to recover a .edb file into a .pst or other format file, I have only the hard disk with the file.

There is a way to extract the mail from the edb file? Like a trial program or an utility?

Thank you!

exchange .edb corrupt

$
0
0
hi all,

Had an exchange server go down, got the exchange .edb files only to find its corrupt, tried to use eseutil.exe to repair the file but when I try and open it with ontrack powercontrols saying its corrupt still.

Regards



How do I export database from corrupt exchange EDB files?
I wonder, how can I fix corrupt EDB files issue? I was trying to migrate & convert my EDB file to PST. I had my EDB files back-up but, it seems corrupt now. I need recovery of all Calendars, Contacts, Journals, Distribution List and Tasks from corrupt backup EDB file anyhow. Please suggest some valuable steps for quick procedure.

VSTO and WPF with High DPI results in small fonts

$
0
0

I'm currently creating a VSTO AddIn for Outlook 2013 with Custom Task Panes, WPF, C#, .NET 4.5

For the custom task pane I'm using a WinForms UserControl that hosts a WPF UserControl. It works fine on default DPI setting, but I also have a notebook with QHD+ 3200x1800 pixel: Images and for example the rectangle of a CheckBox seems to have a correctly scaled size, but the font is too small.

I'm have the WinForms UserControl AutoScale to Inherit and tried all other options with no effect.

I don't have a font size specified - everything is default

Thanks for your help.

Regards,

Bernhard



Microsoft Exchange Transport Service....Starting (Does not reach a running state, stops and tries starting again)

$
0
0

Hi All,

After installing the lovely update (https://technet.microsoft.com/library/security/ms14-068) that Microsoft released last week. I restarted my exchange 2013 server and now the Microsoft Exchange Transport Service will not start. It is pretty much constantly in a starting state. Tried all the standard stuff, restarting the server etc.

Running on Server 2012 R2

Hopefully someone can shed some light.

Pete

Load gen 2013 Query

$
0
0

Hi,

I have below query in Loadgen 2013. I have gone thorough MS site but still unable to understand or i didn't get answer for below queries

1. what is the meaning of the term Length of a 'simulation day' while creating test?
2. On load gen report, why count of total number of users is always double than count of user provided while creating test (i.e entered no of users at User setting page)?

Thanks & Regards,

Sudhir

EWS 2.0 (Exchange 2007 ) - How to Add a Picture to a Contact?

$
0
0

Does anyone know how to add a contact photo to a contact item using the EWS 2.0 against Exchange 2007?

I have tried the SetContactPicture method which doesn't seem to be supported in 2007.

Thanks

How to send Mimemessage to Exchange server ? (C#)

$
0
0

Hi, I got an url-safe base64 encoded  email message( including headers and body) retrieved from gmail. I need to send this message directly to exchange server without specifying To,From,Subject and body as my message contains it all together. Is there a way to create such message from this gmail message ? I am new to exchange. please let me know any possible solutions. I want to do something similar to..

SendMimeMessage(myGmailMessage);

best regards,

Viewing all 7132 articles
Browse latest View live


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