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

EventType Modified ErrorItemNotFound by pull-notification

$
0
0
   

Hello,

1. i change a subject on appointment.
2. get pull-notification
3. try to retrieve new subject:

Item.bind(service, new ItemId(itemEvent.getItemId().toString()), new PropertySet(BasePropertySet.IdOnly));

I get whole the time this error:
ErrorItemNotFound
message: The specified object was not found in the store

msdn says: https://msdn.microsoft.com/en-us/library/office/dn424762%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396

  • Removing references to an item when it is deleted from the store. If an item is recovered, make sure that you reinstate required references to the client.

How could i do that????

I have only one Exchange-Server without LoadBalancer



Mail Tip Suppressed By Default Mail Tip in ECP 2013 - Distribution Group

$
0
0

Greetings All,

Please how can I edit the Default Mail Tip for a restricted distribution group as it appears to suppress any other custom MailTip for that group?

Specifically, Is there  a way I can get to the default MailTip code for a restricted distribution group? 

Exchange Server : ASP.NET :- Retriving More that 100 results while searching for DL

$
0
0

* I have Three Questions regarding Exchange server :

1) How can i retrieve more than 100 results from  service.ResolveName? by default always returns 100 results.

2) I need to extract only Distribution Lists from server. is there any specific method/ sample code?  Currently i am using below mentioned code which returns both contacts and groups.

3) Can we restrict results to be returned from exchange server ?? setting up limits to 200/300 results ??  Just to reduce execution time and handle timeouts.

Below is the sample code i am using :- 

public DataTable ListGlobalDistributionGroups(string name)
        {
            DataTable dt = new DataTable();
            try
            {

ConnectToExchange();
                NameResolutionCollection nameResolutions = service.ResolveName(
                    name,
                    ResolveNameSearchLocation.DirectoryOnly,
                    true);

                dt.Columns.Add("Name");
                dt.Columns.Add("Type");
                dt.Columns.Add("Email");

                if (nameResolutions.Count > 0)
                {
                    foreach (NameResolution nameResolution in nameResolutions)
                    {
                         string mailboxtype=string.Empty;
                mailboxtype=Convert.ToString(nameResolution.Mailbox.MailboxType);
                if ((mailboxtype == "PublicGroup") || (mailboxtype == "ContactGroup"))
                {
                    DataRow dr = dt.NewRow();
                    dr[0] = nameResolution.Contact.DisplayName;
                    dr[2] = nameResolution.Mailbox.Address;
                    dr[1] = "Exchange";
                    dt.Rows.Add(dr);
                }
                    }
                }

                                

Bug in EWS: Invalid iCal format if recurrent event modified

$
0
0

Hi,

I have found a Bug in the Exchange EWS interface. I hope by writing it here it reaches the right MS Developers. Otherwise please let me know how I can report the bug on a better way.

Used Exchange Version: 15.1.396.33 (Exchange 2016 CU1)

Problem:

Create a recurring event and modify one instance of this event series. Now if you query the calendar item through EWS, Exchange 2016 creates an invalid iCalendar data in the MimeContent field. I.e., it has a "BEGIN:VCALENDAR", but the "END:VCALENDAR" is missing.

How to reproduce it:

  1. Create a recurring event with no end date. E.g. every Monday at 10am on OWA/Outlook Online (I used as start date 29th of August 2016)
  2. Query the calendar item through EWS and check the MimeContent field. It's OK, it contains a END:VCALENDAR
  3. Change a single instance by moving it to Tuesday 10am (in OWA), I moved the one from 19th September to 20st September 2016
  4. Now query the recurrent calendar item again and voilà: the "END:VCALENDAR" is now missing

Analysis:

I tested it on Exchange 2010 and there it worked as it should. This problem only occurs on Exchange 2016.

First I thought it's a problem in Gnome Evolution Mailer, so here's the original bug report for Gnome:Gnome EWS Bug

Here are the Queried Calendar Items on Exchange 2010 (I decoded the base64 encoded MimeContent):

These are all fine and as you can see on Ex2010 it inserts the END:VCALENDAR

On Exchange 2016:

On the modified sequence CalendarItem you can see that the END:VCALENDAR is missing.

If you delete the modified instance, then it is again correct.

Hope this helps to solve the bug!

Installing EX 2016 on a clean server

$
0
0

Hello!

We installed Windows Server 2012 R2 update 1 x64, made all updates and installed following:

  1. IIS (with MySQL, PHP and asp)
  2. TFS 2015 u1
  3. Active Directory
  4. SQL Server 2014 Enterprise

While running the Exchange 2016 and 2013 (tried both setups) we run into following exception:

'There is a problem with this Windows Installer package. A DLL required for
this install to complete could not be run. Contact your support personnel or... Error code 1603'

The setup fails at the step: "Postfachrolle: Transportdienst" (postroll: transportservice)

It is a x64 .iso. We also tried the 2013 version, which also results in the same error.
We did google the error code 1603 and applied the hotfixes for the AD roles. With no result.
Following .dll or some dependencies are missing: Microsoft.Exchange.CabUtility.dll
We thought maybe the .iso is not complete or defect, but different .iso or .exe from other sources also dont work.

Thanks in advance

[EWS]: How get the current user's own email address or check entered, using Exchange Web Services?

$
0
0
I have to work with external Exchange server. How can I get the own email address or check address entered by the user (that he introduced exactly own address), using EWS?
Email address is not the same as username.

Exchange Server 2007 back up doesn't progress on windows server 2008 R2 using server backup

$
0
0
Good Afternoon, I am trying to do a backup of an Exchange Server 2007 SP3 on a windows server 2008 R2 machine, using windows server backup. When I perform the backups it begins to work fine, but then just stays at the same progress for over 24 hours (27% backing up data). I had to cancel it. The data itself is about 100 GBS with one database being 70 GBs. I tried to use DPM 2012 but the server would freeze up. This is happening when performing a backup of the database stores and the system state. I have tried to research on the subject but have not found anything. There are no errors in the event logs pertaining to the backups. I would appreciate any help with this. Thank you.

"msExchVersion" - This AD attribute has the same value for both 2013 and 2016.

$
0
0
 "msExchVersion" - This AD attribute has the same value for both 2013 and 2016. Any specific reason for this? I am asking this question because, in my code, I depend on this attribute's value to determine the object's exchange server version. Also, is there a better way to perform exchange server's version check ?

[E2010] [EWS] Subscriptions for 10000+ mailboxes [C#]

$
0
0

I'm looking to use EWS to subscribe to a very large number of Project mailboxes within our E2010 R2 Environment.  So far I have successfully written a C# console application which subscribes to multiple mailboxes and collects the required emails from the required mailboxes.  

To do this, I create one Exchange Service, using a service account which has permissions in exchange to administer the mailboxes, I haven't used impersonation at all for this.  From there I then add multiple streaming subscriptions to a streaming subscription connection and set it off.  On notification, it checks the ID of the subscription matches the subscription that fired the notification and it sets to work on collecting the emails.That works fine for a small number of mailboxes (203 to be precise), my concern is when scaling this up dramatically.  My question really is whether this is the best way of achieving this.  The subscriptions count will potentially grow 1000+ mailboxes per month with figures quoted at 10000 – 30000 subscriptions at any one time.

When this is scaled up to these huge numbers, I want to know that it will work and what limitations there might be.  I wonder if anyone has any experience doing this and can offer me any advice to avoid me going too far down a potential dead end.I know that E2013 offers grouping of subscriptions which may be more specific to my needs, but my organisation won't be migrating to E2013, instead looking to E2016 online in 2-3 years time.

Many Thanks

How to export calendar items to csv-file with powershell

$
0
0

Hi guys, 

Does anyone know how to export calendar items, from a specific user to a CSV-file with a Power Shell script? 

Example: 

How do I export all calendar items from the mailbox jordi@domain.com to a CSV-file with a Power Shell script? 

Thanks for you support! 

Kind regards, 

Jordi Martin Lago 

[EWS] CreateItem (Calendar) send english description to attendees while OWA send french description

$
0
0

Hi,

As mentioned in the title, when using the EWS Soap API to create an appointment, the email received by the attendees contains a description in english. Using the same account on OWA, modifying the same event will send an email with a french description.

I looked at the definition (https://msdn.microsoft.com/en-us/library/office/aa564690(v=exchg.140).aspx) , found the Culture (https://msdn.microsoft.com/en-us/library/office/aa563712(v=exchg.140).aspx) attribute but it did not work. I tried sending an"Accept-Language" HTTP header in the SOAP call, nothing. I even tried to insert 'xml:lang="fr"' on many nodes without success.

My guess would be that since the user language is set to "French (Canadian)" in OWA, this preference should be used in EWS too.

Is it a bug or am I missing something ?

Jonathan

P.S. Using Exchange Server 14.3.123.0

Kinds of synchronisations by Exchange

$
0
0

Hello,

i am just new by EWS and i dont understand one point.
First:
I can synchronize changes by: Pull, Push and Stream.
Everytime, when i will be notificated, i can retrieve more information by changes by this three methods.
Second:
Actually  i dont need to subsribe one of three nofitications. Instead of them i can use method: syncFolderItems.

It is correct?
What are advantages or disadvantages?


Subscribe to incoming mails for all users (MTA/EWS API or else?)

$
0
0

Hello,

My goal is to develop an Exchange listener that will intercept the organization mail box for new mails and for each mail it would do some logic. 

After i've researched the subject online - i saw that there are two primary ways to do that:

1) Configure a new MTA (Mail Transfer Agent) that will be situated before the exchange server and will intercept the SMTP messages.

2) Use EWS API to subscribe to a new mail event and run the login on the listener - in this way i have 2 basic problems:

     a) Is there a way to subscribe to all mailboxes on the exchange server? without looping all the users  ? 

     b) How i can block a client to read his email before my listener handled it ? (can i move the whole incoming mail to a specialdefault folder that the users wouldn't have an access to it  - some king of hidden folder ?)

Is there other way besides the two that i mentioned to fulfill the demand ?

Thanks!

Issues with Get-MailboxFolderPermission cmdlet and foreign characters in the name of the folder

$
0
0

Hello everyone,

I am responsible of exchange environment in an international organization, and I have a need to search for mailboxes' calendars that are without any permissions for "Default".

So I went and got all mailboxes to a variable, and ran for each mailbox:

(Get-MailboxFolderPermission "$($_.Alias):\Calendar" -User Default).AccessRights

And for Japanese mailboxes (for example) I received an error that the folder doesn't exists.

So I ran before a Get-MailboxFolderStatistics, in order to get the name of the folder with the folder type "Calendar".

$FolderName = (Get-MailboxFolderStatistics $_.Alias | where FolderType -like Calendar).Name
Get-MailboxFolderPermission  $($_.Alias):\$($FolderName) -User Default

But for my surprise that didn't work as well.

The error is the same error, the command can't find the folder. I believe this time it might be caused due to unsupported characters, such as the Japanese characters. Is there any way of dealing this?

I've opened a thread in "Exchange Server 2013 - Administration, Monitoring, and Performance" and they suggested I'll ask in this forum.


Trying to get detailes of client rules that use public folders but no luck

$
0
0

Hello,

I'm trying to use the EWS API to access client side rules details (Exchange 2010).

I can get all the details fro regular rules, but when I'm trying to get details for a rule that forwards mail to a public folder, the InboxRule only contains the rule's name, rest of the members are empty.

any suggestions?



The expected XML node type was XmlDeclaration, but the actual type is Element.

$
0
0
Hello,

I am new to EWS. I created a C# application which syncs contacts from a database to Exchange using EWS Managed API. This app works great on PCs which are connected to our physical network/domain. Now, I am trying to make it work for remote PCs (which are not directly connected to the domain). The AutoDiscover call returns an error "The expected XML node type was XmlDeclaration, but the actual type is Element." 

Here is my code

private ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
try
{
	service.Credentials = new NetworkCredential("test.user", "password", "mycomp.com");
	service.AutodiscoverUrl("test.user@mycomp.com", RedirectionCallback);
}
catch (System.Exception e)
{
	sErr = e.Message;
}
I have also tried using WebCredentials but I get the same error. Fiddler does not give my any useful information. Any idea what I am doing wrong? Your help is greatly appreciated.

Thanks.
Vishnu




3rd party vendor/developer for Exchange

$
0
0
Hello, my name is Lena, and I am a product manager at 12Twenty, an EdTech startup developing cloud-based software for university career centers. I launched an appointment scheduling product, and our clients would like to have calendar sync with Exchange and/or Outlook calendar. Based on our current dev. capacity, it's a bit hard to do it in-house. I've been looking around for existing 3rd party vendors. <g class="gr_ gr_12 gr-alert gr_spell gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="12" id="12">Cronofy</g> is a good one, but very expensive. So I'd like to see if there are any 3rd party vendor/developer for Exchange/Outlook calendar Microsoft has worked with and would recommend? Thank you!

[E2016][EWSMA]Sending HTML email not working for outside recipients

$
0
0

I am trying to send an html formatted email using EWS Managed API 2.2. The email looks fine when I send it to my exchange email address and view it via Outlook. When I send it to a gmail or yahoo mail account, the received email is plain text only.

Here is the code I am using to send the email:

EmailMessage email = new EmailMessage(service);
email.ToRecipients.Add("kgkayak@gmail.com");
email.Subject = "Hello World";
string msgBody = "<html><body>This is the <b>first</b> email I've sent by using the EWS Managed API</body></html>";
email.Body = new MessageBody(BodyType.HTML, msgBody);
email.Send();

I've also tried this without the html tags and without html or body tags, all with the same result.

Also worth noting is that, using the same exchange server, I can send HTML email using Outlook to compose the email, and it is received in gmail and yahoo email with the html formatting intact.

Can anyone tell me what I am doing wrong?

Note recent edit - I am using Exchange 2016 (not 2013).



Error while running the Get-CASHealth.ps1 script on Exch 2013 CU12

$
0
0

Hi There,

Our Servers CAS servers were on CU4 and recently we upgraded to CU12. Cashealth.ps1 was working fine in CU4 and now with CU12 its giving an error

Cannot process argument transformation on parameter 'Server'. Cannot convert value "Server01" to type
"Microsoft.Exchange.Configuration.Tasks.ServerIdParameter". Error: "Cannot convert hashtable to an object of the
following type: Microsoft.Exchange.Configuration.Tasks.ServerIdParameter. Hashtable-to-Object conversion is not
supported in restricted language mode or a Data section."
+ CategoryInfo : InvalidData: (:) [Get-ActiveSyncVirtualDirectory], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-ActiveSyncVirtualDirectory
+ PSComputerName

any help would be greatly appreciated.

Thanks
Senthams

Posting the script here,

Write-Host"Getting ActiveSync Urls"
foreach($CASin$CASinSite)
{
$CASActiveSyncUrls =@(Get-ActiveSyncVirtualDirectory-Server $CAS-AdPropertiesOnly | Select InternalURL,ExternalURL)
foreach($CASActiveSyncUrlin$CASActiveSyncUrls)
{
if(!($SiteActiveSyncInternalUrls-Contains$CASActiveSyncUrl.InternalURL.AbsoluteUri)-and($CASActiveSyncUrl.InternalURL.AbsoluteUri-ne$null))
{
$SiteActiveSyncInternalUrls+=$CASActiveSyncUrl.InternalURL.AbsoluteUri
}
if(!($SiteActiveSyncExternalUrls-Contains$CASActiveSyncUrl.ExternalURL.AbsoluteUri)-and($CASActiveSyncUrl.ExternalURL.AbsoluteUri-ne$null))
{
$SiteActiveSyncExternalUrls+=$CASActiveSyncUrl.ExternalUrl.AbsoluteUri
}
}
}
if($SiteActiveSyncInternalUrls.Count-gt1) {Write-Warning"More than 1 ActiveSync internal URL found in site"}
if($SiteActiveSyncExternalUrls.Count-gt1) {Write-Warning"More than 1 ActiveSync external URL found in site"}

Exchange WebServices GetRooms results limit

$
0
0

Hi,

We have an application that uses the EWS GetRooms () method call, and there seems to be an undocumented limit of 100 of the number of rooms that can be retrieved.  Our application also communicates with Office 365 and the LDAP approach for retrieving the entire list doesn't work - we are getting either errors or no results on the retrieval.

Is there a plan to remove this limit? 100 rooms is a really small number for the size of the deployments our application supports and there seems to not be a good approach retrieve the entire list in both Exchange 2013, Exchange 2010 and Office 365 deployments.

Thank you for your help

Viewing all 7132 articles
Browse latest View live