Error while running dbPopulator

Oct 14, 2009 at 6:07 AM

Hi,

I have the Dynamics CRM 4.0 performance toolkit installed on Windows XP with VSTS 2008.

The installation worked fine however when I attempt to run the 'RunPopulation' file it returns the following error in the log file

 

Discovery server name is missing, defaulting discoveryserver to webserver
Partner name is missing, defaulting partner to webserver
Exception when retrieving OrgDetails:System.Net.WebException: The request failed with HTTP status 404: Not Found.
   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)
   at Microsoft.Crm.Sdk.Discovery.Proxy.CrmDiscoveryService.Execute(Request Request)
   at dbPopulator.DbPopulator.RetrieveOrgNames()

 

 

We do not have a discovery server and so I have defaulted it to the CRM Server. I can access the CRM server from the Performance test PC and have created the testing users as a Sys Admin in CRM and the user is also a domain admin.

Any help would be appreciated

Thanks

 

Oct 15, 2009 at 5:52 PM

Hi,

Looks like webservice URL is not found. Can you open the xml file mentioned the RunPopulation and check what your webserver name is? My guess is it is set wrongly. Kindly point it to the CRM server name and try again.

Thanks,

Adi.

Oct 19, 2009 at 8:28 AM

Thanks Adi,

The webserver URL in the runPopulation.cmd file was missing the  port number, once added it all worked fine

Thanks

 

Jul 8, 2010 at 12:49 AM

Hi All,

 

When trying to run dbpopulator on windows 2008 server, with VSTS 2008 installed, i get the following errors.Any help regarding the following error will be appreciated

 

 

 

C:\CRM 4.0 Toolkit\Binaries>SET USERNAME=v-amitga

C:\CRM 4.0 Toolkit\Binaries>SET PASSWORD=Sniper5945

C:\CRM 4.0 Toolkit\Binaries>SET CRMUSERBASE=crmusra

C:\CRM 4.0 Toolkit\Binaries>SET CRMUSERSTART=1

C:\CRM 4.0 Toolkit\Binaries>SET CRMUSERCOUNT=10

C:\CRM 4.0 Toolkit\Binaries>ImportCustomization\ImportCustomization.exe ImportCu
stomization\Account_Customized_10Attributes_form.xml /webserver:itngmidweb01 /or
gname:testorg /domainname:itnextgenlab /username:v-amitga /password:Sniper5945 /
authentication:AD

Unhandled Exception: System.BadImageFormatException: Could not load file or asse
mbly 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3
1bf3856ad364e35' or one of its dependencies. An attempt was made to load a progr
am with an incorrect format.
File name: 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyT
oken=31bf3856ad364e35'
   at ImportCustomization.ImportCustomization..ctor(String[] args)
   at ImportCustomization.ImportCustomization.Main(String[] args)

=== Pre-bind state information ===
LOG: User = REDMOND\v-amitga
LOG: DisplayName = Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, Pub
licKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/CRM 4.0 Toolkit/Binaries/ImportCustomization/
LOG: Initial PrivatePath = NULL
Calling assembly : ImportCustomization, Version=1.0.0.0, Culture=neutral, Public
KeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\
v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neu
tral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/CRM 4.0 Toolkit/Binaries/ImportCu
stomization/Microsoft.Crm.SdkProxy.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

 

C:\CRM 4.0 Toolkit\Binaries>ImportCustomization\ImportCustomization.exe ImportCu
stomization\Contact_Customized_10Attributes_form.xml /webserver:itngmidweb01 /or
gname:testorg /domainname:itnextgenlab /username:v-amitga /password:Sniper5945 /
authentication:AD

Unhandled Exception: System.BadImageFormatException: Could not load file or asse
mbly 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3
1bf3856ad364e35' or one of its dependencies. An attempt was made to load a progr
am with an incorrect format.
File name: 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyT
oken=31bf3856ad364e35'
   at ImportCustomization.ImportCustomization..ctor(String[] args)
   at ImportCustomization.ImportCustomization.Main(String[] args)

=== Pre-bind state information ===
LOG: User = REDMOND\v-amitga
LOG: DisplayName = Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, Pub
licKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/CRM 4.0 Toolkit/Binaries/ImportCustomization/
LOG: Initial PrivatePath = NULL
Calling assembly : ImportCustomization, Version=1.0.0.0, Culture=neutral, Public
KeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\
v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neu
tral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/CRM 4.0 Toolkit/Binaries/ImportCu
stomization/Microsoft.Crm.SdkProxy.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

 

C:\CRM 4.0 Toolkit\Binaries>ImportCustomization\ImportCustomization.exe ImportCu
stomization\Task_Customized_10Attributes_form.xml /webserver:itngmidweb01 /orgna
me:testorg /domainname:itnextgenlab /username:v-amitga /password:Sniper5945 /aut
hentication:AD

Unhandled Exception: System.BadImageFormatException: Could not load file or asse
mbly 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3
1bf3856ad364e35' or one of its dependencies. An attempt was made to load a progr
am with an incorrect format.
File name: 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyT
oken=31bf3856ad364e35'
   at ImportCustomization.ImportCustomization..ctor(String[] args)
   at ImportCustomization.ImportCustomization.Main(String[] args)

=== Pre-bind state information ===
LOG: User = REDMOND\v-amitga
LOG: DisplayName = Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, Pub
licKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/CRM 4.0 Toolkit/Binaries/ImportCustomization/
LOG: Initial PrivatePath = NULL
Calling assembly : ImportCustomization, Version=1.0.0.0, Culture=neutral, Public
KeyToken=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\
v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neu
tral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/CRM 4.0 Toolkit/Binaries/ImportCu
stomization/Microsoft.Crm.SdkProxy.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

 

C:\CRM 4.0 Toolkit\Binaries>DbPopulator\UserConfigGen.exe /domain:itnextgenlab /
webserver:itngmidweb01 /userbase:v-amitga /password:Sniper5945 /threadcount:1 /c
rmuserbase:crmusra /crmuserstart:1 /crmusercount:10 /orgname:testorg

C:\CRM 4.0 Toolkit\Binaries>DbPopulator\dbPopulator.exe UserPopulate.xml

Unhandled Exception: System.BadImageFormatException: Could not load file or asse
mbly 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3
1bf3856ad364e35' or one of its dependencies. An attempt was made to load a progr
am with an incorrect format.
File name: 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyT
oken=31bf3856ad364e35'
   at dbPopulator.DbPopulator.RetrieveOrgNames()
   at dbPopulator.DbPopulator.Initialize()
   at dbPopulator.DbPopulator.Start(String configFile)
   at dbPopulator.DbPopulator.Main(String[] args)

=== Pre-bind state information ===
LOG: User = REDMOND\v-amitga
LOG: DisplayName = Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, Pub
licKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/CRM 4.0 Toolkit/Binaries/DbPopulator/
LOG: Initial PrivatePath = NULL
Calling assembly : dbPopulator, Version=1.0.0.0, Culture=neutral, PublicKeyToken
=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\
v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neu
tral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/CRM 4.0 Toolkit/Binaries/DbPopula
tor/Microsoft.Crm.SdkProxy.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

 

C:\CRM 4.0 Toolkit\Binaries>DbPopulator\dbPopulator.exe DbPopulator\ProductSuite
.xml

Unhandled Exception: System.BadImageFormatException: Could not load file or asse
mbly 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3
1bf3856ad364e35' or one of its dependencies. An attempt was made to load a progr
am with an incorrect format.
File name: 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyT
oken=31bf3856ad364e35'
   at dbPopulator.DbPopulator.RetrieveOrgNames()
   at dbPopulator.DbPopulator.Initialize()
   at dbPopulator.DbPopulator.Start(String configFile)
   at dbPopulator.DbPopulator.Main(String[] args)

=== Pre-bind state information ===
LOG: User = REDMOND\v-amitga
LOG: DisplayName = Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, Pub
licKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/CRM 4.0 Toolkit/Binaries/DbPopulator/
LOG: Initial PrivatePath = NULL
Calling assembly : dbPopulator, Version=1.0.0.0, Culture=neutral, PublicKeyToken
=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\
v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neu
tral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/CRM 4.0 Toolkit/Binaries/DbPopula
tor/Microsoft.Crm.SdkProxy.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

 

C:\CRM 4.0 Toolkit\Binaries>DbPopulator\dbPopulator.exe DbPopulator\NestedSFAEnt
itiesWithState_Custom.xml

Unhandled Exception: System.BadImageFormatException: Could not load file or asse
mbly 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3
1bf3856ad364e35' or one of its dependencies. An attempt was made to load a progr
am with an incorrect format.
File name: 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyT
oken=31bf3856ad364e35'
   at dbPopulator.DbPopulator.RetrieveOrgNames()
   at dbPopulator.DbPopulator.Initialize()
   at dbPopulator.DbPopulator.Start(String configFile)
   at dbPopulator.DbPopulator.Main(String[] args)

=== Pre-bind state information ===
LOG: User = REDMOND\v-amitga
LOG: DisplayName = Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, Pub
licKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/CRM 4.0 Toolkit/Binaries/DbPopulator/
LOG: Initial PrivatePath = NULL
Calling assembly : dbPopulator, Version=1.0.0.0, Culture=neutral, PublicKeyToken
=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\
v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neu
tral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/CRM 4.0 Toolkit/Binaries/DbPopula
tor/Microsoft.Crm.SdkProxy.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

 

C:\CRM 4.0 Toolkit\Binaries>DbPopulator\dbPopulator.exe DbPopulator\ReportsData.
xml

Unhandled Exception: System.BadImageFormatException: Could not load file or asse
mbly 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3
1bf3856ad364e35' or one of its dependencies. An attempt was made to load a progr
am with an incorrect format.
File name: 'Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, PublicKeyT
oken=31bf3856ad364e35'
   at dbPopulator.DbPopulator.RetrieveOrgNames()
   at dbPopulator.DbPopulator.Initialize()
   at dbPopulator.DbPopulator.Start(String configFile)
   at dbPopulator.DbPopulator.Main(String[] args)

=== Pre-bind state information ===
LOG: User = REDMOND\v-amitga
LOG: DisplayName = Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neutral, Pub
licKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/CRM 4.0 Toolkit/Binaries/DbPopulator/
LOG: Initial PrivatePath = NULL
Calling assembly : dbPopulator, Version=1.0.0.0, Culture=neutral, PublicKeyToken
=null.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\
v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.Crm.SdkProxy, Version=4.0.0.0, Culture=neu
tral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/CRM 4.0 Toolkit/Binaries/DbPopula
tor/Microsoft.Crm.SdkProxy.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.


C:\CRM 4.0 Toolkit\Binaries>