Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web.config error: duplicate ‘mimeMap’ #9

Closed
lfurzewaddock opened this issue Feb 10, 2018 · 2 comments
Closed

Web.config error: duplicate ‘mimeMap’ #9

lfurzewaddock opened this issue Feb 10, 2018 · 2 comments
Assignees

Comments

@lfurzewaddock
Copy link

To resolve the following IIS error;

Cannot add duplicate collection entry of type ‘mimeMap’ with unique key attribute ‘fileExtension’ set to ‘.’

I needed to add the following line to the generated web.config

<remove fileExtension="." />

Perhaps its worth adding this by default?

<configuration>
  <system.webServer>
    <staticContent>
      <!--
        ACME server requires that the verification file is served either without
        Content-Type header or with "text/json". This setting ensures that.
      -->
      <remove fileExtension="." />
      <mimeMap fileExtension="." mimeType="text/json" />
    </staticContent>
  </system.webServer>
</configuration>

Great work by the way and thanks for the clear step by step instructions!

@ridercz
Copy link
Owner

ridercz commented Feb 10, 2018

Good idea,

@ridercz ridercz self-assigned this Feb 10, 2018
@ridercz
Copy link
Owner

ridercz commented Feb 10, 2018

Fixed in 1.5.2

@ridercz ridercz closed this as completed Feb 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants