Answered by:
plugin registeration tool: bad request

Question
-
Unhandled Exception: System.Net.WebException: The request failed with HTTP status 400: Bad Request.
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 PluginRegistrationTool.CrmSdk.Discovery.CrmDiscoveryService.Execute(Request Request)
at PluginRegistrationTool.CrmConnection.RetrieveOrganizations()
at PluginRegistrationTool.ConnectionsForm.OpenConnection(CrmConnection con)dear all i'm getting the above error when connecting to crm server by plugin registeration tool;
i gave label: advcrm
discovery service: http://crm/MSCRMServices/2007/AD/CrmDiscoveryService.asmx
port: 80
domain: advworks.msft
username: crmadmin
AM i missing something??
Thursday, April 22, 2010 10:11 PM
Answers
-
oh i removed url and gave it crm only
and voila connected... thanks
- Marked as answer by DavidJennawayMVP, Moderator Friday, July 2, 2010 8:06 AM
Friday, April 23, 2010 1:44 PM
All replies
-
Can you browse to the discovery service URL from a regular browser window?
Dave BerryThursday, April 22, 2010 11:01 PMModerator -
I believe it just wants the Discovery Server so just crm should be fine.
Blake Scarlavai - http://mscrmdev.blogspot.com/ - Sonoma Partners - http://www.sonomapartners.com/- Proposed as answer by Blake ScarlavaiMVP Friday, April 23, 2010 1:50 PM
Thursday, April 22, 2010 11:35 PM -
what do u mean by just crm would be fine..? can u explain more?Friday, April 23, 2010 12:39 PM
-
yes i can browse to the discovery service urlFriday, April 23, 2010 12:40 PM
-
It wants the name of your Discovery Server. Looking at your url (http://crm/MSCRMServices/2007/AD/CrmDiscoveryService.asmx), crm would be the name of your Discovery Server.
Blake Scarlavai - http://mscrmdev.blogspot.com/ - Sonoma Partners - http://www.sonomapartners.com/Friday, April 23, 2010 12:44 PM -
i gave that url, and still nothing, i get this mesg
Unhandled Exception: System.Net.WebException: The request failed with HTTP status 400: Bad Request.
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 PluginRegistrationTool.CrmSdk.Discovery.CrmDiscoveryService.Execute(Request Request) in C:\Documents and Settings\Administrator\Desktop\plugins CRM\PluginRegistration_2.2\PluginRegistration 2.2\Web References\CrmSdk.Discovery\Reference.cs:line 79
at PluginRegistrationTool.CrmConnection.RetrieveOrganizations() in C:\Documents and Settings\Administrator\Desktop\plugins CRM\PluginRegistration_2.2\PluginRegistration 2.2\CrmConnection.cs:line 428
at PluginRegistrationTool.ConnectionsForm.OpenConnection(CrmConnection con) in C:\Documents and Settings\Administrator\Desktop\plugins CRM\PluginRegistration_2.2\PluginRegistration 2.2\ConnectionsForm.cs:line 836i opened plugin registeration tool and renamed the web ref to mine and build and still same error
it really have something wrong with my discovery service url, i think i'm doing something wrong but what is it..
i gave it the url same u did here .. i even copied it, in browser i can execute method, so it should be right !!!
look; this is what wrote for plugin to connect:
label: crmone
discovery service: http://crm/MSCRMServices/2007/AD/CrmDiscoveryService.asmx
port: 80
domain: advworks
username: crmadmin
Friday, April 23, 2010 1:35 PM -
oh i removed url and gave it crm only
and voila connected... thanks
- Marked as answer by DavidJennawayMVP, Moderator Friday, July 2, 2010 8:06 AM
Friday, April 23, 2010 1:44 PM