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

'' is not a valid value for LegacyFreeBusyType

$
0
0

Can you shed some light on what is going on with this error below?

I am not sure why i'm getting this when using ExchangeServiceBinding GetItem method

Is there anyway I can fix this?

System.InvalidOperationException: There is an error in XML document (64, 3190). ---> System.InvalidOperationException: Instance validation error: '' is not a valid value for LegacyFreeBusyType.
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExchangeServiceBinding.Read3_LegacyFreeBusyType(String s)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExchangeServiceBinding.Read107_CalendarItemType(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExchangeServiceBinding.Read110_NonEmptyArrayOfAllItemsType(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExchangeServiceBinding.Read107_CalendarItemType(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExchangeServiceBinding.Read205_ArrayOfRealItemsType(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExchangeServiceBinding.Read214_ItemInfoResponseMessageType(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExchangeServiceBinding.Read219_ArrayOfResponseMessagesType(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExchangeServiceBinding.Read237_GetItemResponseType(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderExchangeServiceBinding.Read427_GetItemResponse()
   at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer120.Deserialize(XmlSerializationReader reader)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)



Public Folders missing From exchange to exchange

$
0
0

  HI ,

    I have been working in a scenario with three exchange servers 2003,2007 and 2010.What problem i face is,

   The Public Folders of Exchange 2003 get displayed in Exchange 2010 whereas not in Exchange
   2007.Even Exchange 2007 Public Folders not getting displayed  in Exchange 2010.Only Few Public Folders    are not getting displayed.

How to secure all outgoing mail from SMTP server

$
0
0

Hi,

We would like to encrypt all outgoing mail send out from our exchange server use of TLS encrpytion with SMTP. We discover microsoft exchange server have features Transport layer security (TLS). 

We have standalone server, whereby server install with domain controller, mailbox, Cas & Hub transport server.

Can we obtain a valid SSL certificate, install it using Exchange certificate wizard. The exchange SMTP server should be able to sending STARTTLS command when communicating with other TLS-capable servers.

Welcome feedback or  comment from expertise.

Thanks!

 

Active directory synchronization with remote domain controller “with using extend ASP”

$
0
0


Hello

I believe you know well about extend ASP tool

Just brief information about my infra, I need to sync remote domain controller with my host domain controller

I’m using ‘Extend ASP’ web site Panel and i need to sync customer domain controller

I complete all configuration as per deployment guide provided by Extend ASP

after complete all configuration I’m try to run “ExtendASP.EPS.ProvisioningManager.Client.exe” for Verify Workflow Engine Functionality but in this scenario I received error

now I checked all required services is running and not at all error event  in application and administrative event in windows event viewer

I’m struggling with this issue Please help me on this issue

I appreciate if you share any valuable  point or step for kill this issue

Thanks for understanding

Regards

Girish Bakshi


Girish Bakshi | MCITP: 2007 | MCTS: 2010, MCITP: Server 2008 | E-Mail girish.bakshi84@gmail.com

Would like to get the sAMAccountName or email for the meeting organizer (organizer property of a CalendarItemType object)

$
0
0

Hi,

I am involved in a project to provide room availability on a web page.  Basically, I dump calendar information to a SQL database that our web developers access via PHP to build the page.  the one thing I'm not able to pull fom the calendar object is the organizer's name.I thought the following get me the email address which is unique so a good identifier:

     SingleRecipientType organizerType = cal.Organizer;
     String organizer = organizerType.Item.EmailAddress;

What I got was an empty string.

When I change from the EmailAddress property to the Name Property as follows:

      SingleRecipientType organizerType = cal.Organizer;
      String organizer = organizerType.Item.Name;

I get the display name, which is not necessarily unique.

I need something that uniquely identifies the organizer.  What do I need to do to get the organizer's sAMAccountName (or uid which should be the same) or their email

Thanks,

Rob Tanner

Linfield College

What is the Exchange URL for EWS SOAP Autodiscover

$
0
0
Hi,

I want to develop an application in blackberry 10 to get meeting room related information by using Exchange web services. For this i am following the approach(Get user settings by using EWS SOAP Autodiscover).

In this, soap request and response xml is given.

But what will be the URL for SOAP request?



Thanks in Advance.

Exchange 2010 Raw mail.

$
0
0

Hi Everyone,

Got a question about the raw mail content in Exchange 2010 smtp receive.

I am working on a validation plugin(Spf and Dkim) now is spf working but for dkim i need the complete untouched raw 
mail including the headers.

Atm i got a working plugin(SmtpReceiveAgent) with on onendofdatahandler.

 e-mail: Date: Tue, 04 Jun 2013 05:53:25 +0200
Exchange: Date: Tue, 4 Jun 2013 05:53:25 +0200

e-mail: From: "test" <peter@contoso.com>Exchange: From: test <peter@contoso.com>

So its altered when it comes in at the onendofdata event. And it needs to like the way it was send in order for Dkim to work.

Anyone suggestions about the problem. Like its the event you are using or some settings that are wrong.

I hope to hear from someon soon.

Kind Regards Michael,




[E2010] [EWSMA] [C#] [Windows version] - Invitation in Israel timezone received with incorrect date

$
0
0

Hi everybody

Microsoft.exchange.webservices.dll 15.0.516.14

Scenario:

Send invitation in Israel timezone with start time =09/09/2013 4.30 Israel.

But it is displayed in outlook 09/09/2013 6.30 Israel.

\It works properly for other time zones for example for EST.

Does anybody has any idea how to fix this?

Sample:

                

service.AutodiscoverUrl(loginForm.tbEmailAddress.Text, f);
                TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("Israel Standard Time");

                Appointment appointment = new Appointment(service);

                appointment.Subject = "subj";
                appointment.Body = new MessageBody(BodyType.Text, "body");
                appointment.StartTimeZone = timeZoneInfo;
                appointment.Start = GetDateTime(new DateTime(2013, 09, 09, 04, 0, 0));



                appointment.EndTimeZone = timeZoneInfo;
                appointment.End = GetDateTime(new DateTime(2013, 09, 09, 04, 30, 0));
                appointment.IsAllDayEvent = false;

                appointment.Importance = Importance.Normal;

                appointment.RequiredAttendees.Add("Lena", "email...");

                appointment.Save(SendInvitationsMode.SendOnlyToAll);

....

private static DateTime GetDateTime(DateTime dateTime)
        {
            return new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, dateTime.Hour, dateTime.Minute,
                                dateTime.Second, dateTime.Millisecond, DateTimeKind.Unspecified
                                );
        }

View Schedule for other employee

$
0
0

How to view the meeting schedule of other employee(calendar)?

currently i am able to get the schedule of logged in user but unable to get the schedule for other persons.

Is there any java EWS Api for the same?

Please help me.

Exchange 2013 impersonation: Invalid UserPrincipalName The impersonation principal name is invalid

$
0
0

Hello,

I have granted a user impersonation rights on Exchange 2013.

Yet, impersonation is not working with the Exchange 2013 EWS.

I get the following error:

MsgFolderRoot ErrorInvalidUserPrincipalNameThe impersonation principal name is invalid

I appreciate your comments.

Thanks!

using EWS managed API with multiple streamingsubscriptions on Office 365

$
0
0

try to add two streamingsubscriptions (each for a different Mailbox) inside one StreamingSubscriptionConnection, got an exeception from office 365 server

"microsoft.exchange.webservices.data.ServiceResponseException: One or more subscriptions in the request reside on another Client Access server. GetStreamingEvents won't proxy in the event of a batch request."

What does it mean ? and how to do it ?

BTW, I am using Office 365 enterprise version.

Retreiving attachment from digitally signed messages

$
0
0

Managed API 2.0 / VS2012 / Exchange 2010SP2

I'm working for an insurance company and we receive many signed emails. We have automatic document storage solutions that extract documents from emails and store them in a separate server. We have a problem with signed emails where the extraction cannot manage to get at the attachments in signed emails (multipart/signed mime type).

When we traverse the attachment collections on these emails they invariably only contain one attachment, which is the smime content. When we load that content into a new instance of EmailMessage and save it, that email also only contains that very same attachment, making it all look a bit like a pandora's box.

Following is a code snippet that I've been tinkering with to try to resolve this issue.

            var msg = new EmailMessage(service);
            // Create and load a new message with the mime content of the p7m attachment (containerAttachment)
            msg.Save(containerMessage.ParentFolderId);
            msg.Load(PropertySet);
            msg.MimeContent = new MimeContent("ascii", containerAttachment.Content);
            // Update the message to the server
            msg.Update(ConflictResolutionMode.AlwaysOverwrite);
            msg.Load(PropertySet);
            foreach (FileAttachment attachment in msg.Attachments)
            {
                // Now lets get at the juicy attachments within
                var m = new EmailMessage(service);
                m.Save(containerMessage.ParentFolderId);
                m.Load(PropertySet);
                m.MimeContent = new MimeContent("ascii", attachment.Content);
                m.Update(ConflictResolutionMode.AlwaysOverwrite);
                m.Load(PropertySet);
                // Oh, no, at this point the only attachment is identical to the original container attachment....
                var c = msg.Attachments.Count;
            }

I'd be grateful for any pointers in the right direction


Powershell Automation Public folders

$
0
0

Hello,

Would it be possible to use powershell with exchange 2007 to manage and automate the movement of folders within public folders? So to group folders toghther within a new folder based on matching or similar titles?

Sharing a calendar using EWS and PHP-EWS without sending share invitation

$
0
0

We are currently working on a system to create calendars and appointments automatically using EWS and PHP-EWS. The calendar is created in the owner's mailbox, the permissions are set for every user able to access this shared calendar.

Now I was wondering if it was possible to add the shared calendar to every other users able to access this calendar automatically. We would like to do it without sending the email asking to share calendar.

Thanks for your help, it is really appreciated.

EWS Managed API - Appointment creation with empty RequiredAttendees Problem

$
0
0
Hi,

I'm using the EWS Managed API.

I'm having trouble with appointment creation. My RequiredAttendees is an empty attendeeCcollection.

When I do a Save() on my appointment, i get the folowing exception :

The request failed schema validation: The element 'RequiredAttendees' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types' has incomplete content. List of possible elements expected: 'Attendee' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types'.

Can anyone tell me why please ?

Thanks in advance

Problem with receive connector

$
0
0

Hi,

We have an exchange server install with hub, cas, mailstore & DC. We have install 3rd party SSL certificate, we noticed that the event log keep prompt the error message below:

Event ID : 12014

Microsoft Exchange could not find a certificate that contains the domain name mail.abcd.com in the personal store on the local computer. Therefore, it is unable to support the STARTTLS SMTP verb for the connector Default mail with a FQDN parameter of mail.abcd.com. If the connector's FQDN is not specified, the computer's FQDN is used. Verify the connector configuration and the installed certificates to make sure that there is a certificate with a domain name for that FQDN. If this certificate exists, run Enable-ExchangeCertificate -Services SMTP to make sure that the Microsoft Exchange Transport service has access to the certificate key.

Our SSL was for domain abcd.com and we have assigned SMTP services to the abcd.com

We have two receive connectors, Client and Default. The connector for Client seem to be no problem, however the default connector keep give us the error message above. How do we resolve this issues? 

How do I decode an S/MIME e-mail message with EWS (E2010)

$
0
0

When I get an Email:

                PropertySet itempropertyset = new PropertySet(BasePropertySet.FirstClassProperties)
                itempropertyset.Add(ItemSchema.MimeContent);
                itempropertyset.Add(ItemSchema.Attachments);
                itempropertyset.RequestedBodyType = BodyType.Text;
                src = _Exchange.LoadPropertiesForItems(findMails, itempropertyset);

and the message was sent with S/MIME, how do I get the Text decoded?

Assume: EmailMessage em;

em.Body.Text is null

em.MimeContent.Content is a byte array, but I need to decode this


Custom Transport Agent for Address Rewrite

$
0
0

Hi All, 

I have done a lot of research on writing a code for custom Transport Agent.

What I need to achieve is that one of Linux server sends an email @linux.com through our Exchange system here and I'd like the receiver will get @domain.com instead of @linux.com. Because there are a couple users in that domain, so whoever sends from this linux.com will get changed (@domain.com) at the destination. 

From my research and modify the codes from number of websites

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Exchange.Data.Transport;
using Microsoft.Exchange.Data.Transport.Email;
using Microsoft.Exchange.Data.Transport.Smtp;
using Microsoft.Exchange.Data.Transport.Routing;
using Microsoft.Exchange.Data.Common;


namespace RoutingAgentOverride
{
    public class SampleRoutingAgentFactory : RoutingAgentFactory
    {
        public override RoutingAgent CreateAgent(SmtpServer server)
        {
            RoutingAgent myAgent = new ownRoutingAgent();

            return myAgent;
        }
    }
}
public class ownRoutingAgent : RoutingAgent
{
    public ownRoutingAgent()
    {
        //subscribe to different events
        base.OnResolvedMessage += new ResolvedMessageEventHandler(ownRoutingAgent_OnResolvedMessage);
    }

    void ownRoutingAgent_OnResolvedMessage(ResolvedMessageEventSource source, QueuedMessageEventArgs e)
    {
        try
        {

            if (e.MailItem.FromAddress.DomainPart.Contains("linux.com"))
            {
                e.MailItem.FromAddress = new RoutingAddress("Localpart", "domain.com");
                e.MailItem.Message.From.SmtpAddress = "localpart" + "@" + "domain.com";
                e.MailItem.Message.Sender.SmtpAddress = "localpart" + "@" + "domain.com";


            }
        }

        catch 
        {

        }
    }

}

I have not tested, would it work?

Thanks


Connecting with Office 365-Autodiscover could not be located

$
0
0

Hi ,

I have built a VB project where I was using API 1.2 to connect to exchange server 2010 using webservices.

To be more specific , I was connecting in my Office 365 which had exchange 2010.

I was using the below code where the Me.ExchangeVersion1 is an enumaration.

1 for exchange 2007 ,etc... Exchange 2013 has number 4.

But I'm getting now in exchange 2013(office 365) and error which says.

The Autodiscover service couldn't be located.

 I'm changing the exchangeversion to 4 and leave the rest of the code intact.       

Am I doing anything wrong ?

I have asked a long time ago about if there will be changes between API 1.2 and API 2.0 and ,don't remember the name ,someone from Microsoft told me that no changes will be made unless you want to use new features of Exchange 2013 which I didn't want that. In other words , business as usual. Can anyone assist me on this ? Is it something that I need to look for ?Or change in my code ?

 Public Function GetBinding() As ExchangeService
        ' Create the binding.
        Dim service As New ExchangeService(Me.ExchangeVersion1)

        ' Define credentials.
        service.Credentials = New WebCredentials(UserName, PassWord)


        ' Use the AutodiscoverUrl method to locate the service endpoint.
        Try


            service.AutodiscoverUrl(UserName, _
                    New AutodiscoverRedirectionUrlValidationCallback( _
                        AddressOf MycustomClass.RedirectionUrlValidationCallback))


        Catch ex As AutodiscoverRemoteException
            Me.ErrorCode = -1
            Me.SetErrorMessage(ex.Message)
            Throw ex
        End Try


        Return service
    End Function

  ' Create the callback to validate the redirection URL.
    Private Shared Function RedirectionUrlValidationCallback(ByVal redirectionUrl As String) As Boolean
        ' Perform validation.
        Return (redirectionUrl = _
                "https://autodiscover-s.outlook.com/autodiscover/autodiscover.xml")
    End Function


Exchange 2010 linked mailboxes OWA access

$
0
0

We have 2 domains Domain A and Domain B. we have user account in domain B and a linked mailbox in domain A.
Via TMG (member of domain B) we want to enable OWA for that user.
Is this possible when using the TMG which is member of domain B ?

Account in A is offcourse a disabled mailbox enabled account. From within OUtlook client connection works fine on the internal network. (we have one way trust between domain A and B

Beside OWA, EAS must also going to work with the credentials of domain B. 
The Exchange version used is Exchange 2010.

 Is there somewhere an article which describes the configuration of this situation?

Regards,
Peter

Viewing all 7132 articles
Browse latest View live


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