• squarewave
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I have no problems connecting to salesforce api from a console app.

however, when I execute the same call from a web project, it hangs and times out on this line:

    Svc.login(_username, _password + _token);

where Svc is

    SFDC2.SforceService : System.Web.Services.Protocols.SoapHttpClientProtocol

again, this same code is used no problem from a console app within the same solution

i am connecting using a web reference, based on a the generated WSDL from salesfroce.com admin screen.

there is a hidden exception

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
I have no problems connecting to salesforce api from a console app.

however, when I execute the same call from a web project, it hangs and times out on this line:

    Svc.login(_username, _password + _token);

where Svc is

    SFDC2.SforceService : System.Web.Services.Protocols.SoapHttpClientProtocol

again, this same code is used no problem from a console app within the same solution

i am connecting using a web reference, based on a the generated WSDL from salesfroce.com admin screen.

there is a hidden exception

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

HI,

   Iam using a simple code in .net for creating a new account in salesforce.com.While iam calling this  method iam getting below error "CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY Error message: entity type cannot be inserted: Account " .

Any suggestions.

  • April 19, 2010
  • Like
  • 0