question

TomaszRyndziewicz-0292 avatar image
0 Votes"
TomaszRyndziewicz-0292 asked TomaszRyndziewicz-0292 answered

Exchange 2019 and eDiscovery web.config issue

Guys,

for some time the eDiscovery search has not been working for me.

When I try to run a search job, after some time I have got an error. From log I am able to see that info:

Export failed with error type: 'FailedToSearchMailboxes'. Details: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.

Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to 'C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\web.config' because access is denied.

But the problem is that in that location is not any web.config file and I believe that has never been.

I have no clue what to do whith that. Below I am sending full log.

I will be really gratefull for any help here.

Thanks.

183717-image.png


office-exchange-server-administrationoffice-exchange-server-mailflowoffice-exchange-server-itpro
image.png (105.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KyleXu-MSFT avatar image
0 Votes"
KyleXu-MSFT answered KyleXu-MSFT commented

@TomaszRyndziewicz-0292

Here is a related thread, it is solved after changing the IIS backend configuration, you can also have a check about it:

183889-qa-kyle-10-35-47.png
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



· 12
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi KyleXu, thank you for your answer.

I checked and in my case everywere is Application user set. It seems that it is not that case. I do not have any problems with Autodiscover.

I think that this line can give some ideas: Export failed with error type: 'FailedToSearchMailboxes'. Details: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
What does it mean?

Tomek

0 Votes 0 ·
KyleXu-MSFT avatar image KyleXu-MSFT TomaszRyndziewicz-0292 ·

Try to create eDiscovery search from EMS: Use the Exchange Management Shell to create a search

If there still exists issue with it, I would suggest you have a check whether there exists issue with e-Discovery system mailbox, or this mailbox is missing. You could follow this article to recreate it, or try to migrate from one database to another.

 Get-Mailbox -Arbitration -Identity "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}"

If there doesn't exists issue when create search from EMS, it means this issue is related with ECP, you could try to create ECP virtual directory.


0 Votes 0 ·

The same error when I tried with Shell:

[PS] C:\Windows\system32>Get-MailboxSearch "Discovery-CaseId012" | Format-List Name,Status,LastRunBy,LastStartTime,LastEndTime,Sources,SearchQuery,ResultSizeEstimate,ResultNumberEstimate,Errors,KeywordHits


Name : Discovery-CaseId012
Status : Failed
LastRunBy :
LastStartTime :
LastEndTime :
Sources : {/o=Enterprise Investors/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=f4e45e048c5f486785cf507bf11182e1-Tom}
SearchQuery : "Contoso" AND "Project A"
ResultSizeEstimate : 0 B (0 bytes)
ResultNumberEstimate : 0
Errors : {An unknown error occurred on the search server. Please contact your administrator for assistance. The message from the search server is 'Export failed with error type: 'FailedToRetrieveSearchConfiguration'. Details: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--

0 Votes 0 ·
KyleXu-MSFT avatar image KyleXu-MSFT TomaszRyndziewicz-0292 ·

Did you check whether there exists an issue with e-Discovery system mailbox? I also suggested you create a new e-Discovery search, it could help us to know whether this issue is caused by a damaged search.

0 Votes 0 ·

Yes I did. I also checked on other mailboxes and the same issue.

0 Votes 0 ·
Show more comments

[PS] C:\Windows\system32>Get-Mailbox -Arbitration -Identity "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}"

Name Alias ServerName ProhibitSendQuota


SystemMailbox{e0dc1c29... SystemMailbox{e0d... exchange Unlimited

0 Votes 0 ·
KyleXu-MSFT avatar image KyleXu-MSFT TomaszRyndziewicz-0292 ·

If you could get this system mailbox successfully, it means there doesn't exist issue with that system mailbox. I would suggest you try to rerun prepare command for your Exchange server.

By the way, do you mean that you could create e-Discovery search successfully? Does this issue only occur when try to get e-Discovery search result?

0 Votes 0 ·

Yes, there is no problem to create e-Discovery search. Error comes after few minutes after run it.

0 Votes 0 ·
Show more comments
TomaszRyndziewicz-0292 avatar image
0 Votes"
TomaszRyndziewicz-0292 answered KyleXu-MSFT commented

ok I will.
Is it save to run Prepare commands on production?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The rerun action will not break Exchange server.

0 Votes 0 ·
TomaszRyndziewicz-0292 avatar image
0 Votes"
TomaszRyndziewicz-0292 answered

Just installed the latest CU12 and still the same problem.
Do you have any other ideas?

Do you know how can I take a help from Microsoft?

Tomek

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.