The type initializer for 'DacIEServiceCli.DataCenterMapper' threw an exception.

Sep 13, 2011 at 8:30 AM

I got this error.

Microsoft (R) SQL DAC Import Export Service Sample version
Copyright (C) Microsoft Corporation. All rights reserved.

An error has occurred:

The type initializer for 'DacIEServiceCli.DataCenterMapper' threw an exception.
An error occurred creating the configuration section handler for DataCenterMappi
ng: Request failed. (C:\Users\Antti Makkonen\Desktop\daciesvccli\DacIESvcCli.exe
.Config line 25)

Request failed.

If someone has a idea what I am doing wrong, I would greatly appreciate the help.


Antti Makkonen


Sep 13, 2011 at 5:41 PM

The configuration section in the config file may be corrupt.

DacIESvcCli.exe.config (sits in the same folder alongside with DacIESvcCli.exe) file should look like below:

<?xml version="1.0" encoding="utf-8" ?>
    <section name="DataCenterMapping" type="DacIEServiceCli.DataCenterMappingSection, DacIESvcCli"/>
      <endpoint address=""
        <binding name="SecureConfig">
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
            <message clientCredentialType="Certificate" algorithmSuite="Default" />
      <add dns="CH1-1" name="North Central US" endpoint=""/>
      <add dns="SN1-1" name="South Central US" endpoint=""/>
      <add dns="DB3-1" name="North Europe" endpoint=""/>
      <add dns="AM2-1" name="West Europe" endpoint=""/>
      <add dns="HKN1-1" name="East Asia" endpoint=""/>
      <add dns="SGP1-1" name="Southeast Asia" endpoint=""/>

Do you see anything different in your file?

Sep 13, 2011 at 7:00 PM

See that item for instructions.  Most likely your EXE is blocked from downloading.

Sep 14, 2011 at 6:47 AM

Thanks, this did the trick.

After I unblocked exe and config file things starte to work.