• ms0713
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 8
    Replies

Hi,
I have created .net(c#, Framework 4.0) application using SharpSvn.dll

It runs fine on my IIS.

When it is loaded on live, it gives the error like

"Unable to find assembly 'SharpSvn, Version=1.7002.1998.12257, Culture=neutral, PublicKeyToken=d729672594885a28'."

Dont know the reason what is happening.

i have referenced SharpSvn.dll in my Application and it automatically adds the other two named
1. SharpSvn-DB44-20-Win32.dll
2. SharpSvn-SASL21-23-Win32.dll
and one of its exe file.

I am using SharpSvn to commit files.

It is creating SharpSvn.SvnClient Object successfully, but when it tries to perform the SvnClient.Update(file) it get the error like mentioned above. 

Code:

 

SvnClient client = new SvnClient();
client.Authentication.DefaultCredentials = new NetworkCredential(repoid, repopassword);

client.LoadConfiguration(commitPath, true);
log.Info("Going To Update Retrieved File");  //this line gets executed fine and i m geting log in my logfile
client.Update(file); 

SvnAddArgs saa = new SvnAddArgs();
saa.Force = true;
saa.Depth = SvnDepth.Infinity;
log.Info("Going to Add In Svn"); // but i m not getting this log in my log file

 

i am writing this code in some another thread.
Does that thread causing any problem?

 

If anyone has faced problem like this and come with solution please help.
Its urgent.

  • March 06, 2012
  • Like
  • 0

Here is my source code..

 

SforceService binding = null;
LoginFault loginFault = new LoginFault();
LoginResult loginResult = null;

binding = new SforceService();
binding.LoginScopeHeaderValue = new LoginScopeHeader();
//binding.Url = ConfigurationManager.AppSettings["sfLoginUrl"];//Config.SforceLoginUrl;
binding.Timeout = 60 * 1000 * 10;
try
{
loginResult = binding.login(ConfigurationManager.AppSettings["ProductionEmailId"], ConfigurationManager.AppSettings["ProductionPassword"]);
binding.Url = loginResult.serverUrl;
binding.SessionHeaderValue = new SessionHeader();
binding.SessionHeaderValue.sessionId = loginResult.sessionId;
log.Debug("LoginResult Urls : "+ binding.Url);
}
catch (System.Web.Services.Protocols.SoapException exception)
{
binding = null;
log.Error( "sforceService Object not set : " + exception.Message, exception);
}

 

 

 

i m getting the error like  "INVALID_LOGIN: Invalid username, password, security token; or user locked out."

 

when i login in my developer accouont it works fine.

but in my .net (c#) application it is giving me this error.

can anybody knows what could be the problem?

 

should i set that Url in sforceService Object?

 

what difference it makes when i set it?

 

I deployed it in live and having the same problem.

 

thanks in advance!

  • March 01, 2012
  • Like
  • 0

I want list of all Standard objects.

 

please help.

 

reply asap.

 

thnaks.

  • February 16, 2012
  • Like
  • 0

How to get List Of Standard Object in C# or in SOQL or ApexCode.

 

Please Help ASAP.

 

Thanks.

  • February 16, 2012
  • Like
  • 0
ListMetadataQuery query = new ListMetadataQuery();

 query.type = "ApexClass";

 double asOfVersion = 23.0;

 // Assume that the SOAP binding has already been established.

 FileProperties[] lmr = metadataService.listMetadata( new ListMetadataQuery[] { query }, asOfVersion);

if (lmr != null)
{
  foreach(FileProperties n in lmr)
{
  string filename = n.fileName;
}
}


 I m using this code to get list of Apex classes.

I want list of folders for //***query.type = "EmailTemplate";***// component type.

Is it possible using listMetadata() method or any other way to achieve this?

please reply asap.

thanks in advance.
  • February 13, 2012
  • Like
  • 0

I want to rerieve list of Metadata Component's like ApexClass using Salesforce Metadata API's.

I'm getting list of all the Apex Classes(total no is 2246) that are on the Salesforce using the following Code and its taking too much time to retrieve these file names:

ListMetadataQuery query = new ListMetadataQuery(); query.type = "ApexClass"; double asOfVersion = 23.0; // Assume that the SOAP binding has already been established. FileProperties[] lmr = metadataService.listMetadata( new ListMetadataQuery[] { query }, asOfVersion); if (lmr != null) { foreach(FileProperties n in lmr) { string filename = n.fileName; } } 

My requirement is to get list of Metadata Components(Apex Classes) which are developed by my organizasion only so that i can get the Salesforce Metadata Components which are relevant to me and possibly can save my time by not getting all the classes.

How can I Achieve this?

Reply as soon as possible.

Thanks in advance.

  • February 08, 2012
  • Like
  • 0

Here is my source code..

 

SforceService binding = null;
LoginFault loginFault = new LoginFault();
LoginResult loginResult = null;

binding = new SforceService();
binding.LoginScopeHeaderValue = new LoginScopeHeader();
//binding.Url = ConfigurationManager.AppSettings["sfLoginUrl"];//Config.SforceLoginUrl;
binding.Timeout = 60 * 1000 * 10;
try
{
loginResult = binding.login(ConfigurationManager.AppSettings["ProductionEmailId"], ConfigurationManager.AppSettings["ProductionPassword"]);
binding.Url = loginResult.serverUrl;
binding.SessionHeaderValue = new SessionHeader();
binding.SessionHeaderValue.sessionId = loginResult.sessionId;
log.Debug("LoginResult Urls : "+ binding.Url);
}
catch (System.Web.Services.Protocols.SoapException exception)
{
binding = null;
log.Error( "sforceService Object not set : " + exception.Message, exception);
}

 

 

 

i m getting the error like  "INVALID_LOGIN: Invalid username, password, security token; or user locked out."

 

when i login in my developer accouont it works fine.

but in my .net (c#) application it is giving me this error.

can anybody knows what could be the problem?

 

should i set that Url in sforceService Object?

 

what difference it makes when i set it?

 

I deployed it in live and having the same problem.

 

thanks in advance!

  • March 01, 2012
  • Like
  • 0

I want list of all Standard objects.

 

please help.

 

reply asap.

 

thnaks.

  • February 16, 2012
  • Like
  • 0
ListMetadataQuery query = new ListMetadataQuery();

 query.type = "ApexClass";

 double asOfVersion = 23.0;

 // Assume that the SOAP binding has already been established.

 FileProperties[] lmr = metadataService.listMetadata( new ListMetadataQuery[] { query }, asOfVersion);

if (lmr != null)
{
  foreach(FileProperties n in lmr)
{
  string filename = n.fileName;
}
}


 I m using this code to get list of Apex classes.

I want list of folders for //***query.type = "EmailTemplate";***// component type.

Is it possible using listMetadata() method or any other way to achieve this?

please reply asap.

thanks in advance.
  • February 13, 2012
  • Like
  • 0

We have a deal registration page written several years ago that recently has begun to issue the following error result:

 

Server Error in '/' Application.


INVALID_LOGIN: Invalid username, password, security token; or user locked out.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.Services.Protocols.SoapException: INVALID_LOGIN: Invalid username, password, security token; or user locked out.

Source Error: 

Line 313:        [return: System.Xml.Serialization.XmlElementAttribute("result")]
Line 314:        public LoginResult login(string username, string password) {
Line 315: object[] results = this.Invoke("login", new object[] {
Line 316:                        username,
Line 317:                        password});


Source File: c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\2e8459de\3693a8ff\App_WebReferences.rp7ndgxb.0.cs    Line: 315 

Stack Trace: 

[SoapException: INVALID_LOGIN: Invalid username, password, security token; or user locked out.]
   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413081
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
   sforce.SforceService.login(String username, String password) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\2e8459de\3693a8ff\App_WebReferences.rp7ndgxb.0.cs:315
   Exinda.SalesForce.SFConnection.Connect(String username, String password) in c:\inetpub\wwwroot\exindaweb2\App_Code\SForce\General\SFConnection.cs:21
   DealRegistration_Default.ConnectToSalesForce() in c:\inetpub\wwwroot\exindaweb2\DealRegistration\Default.aspx.cs:62
   DealRegistration_Default.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\exindaweb2\DealRegistration\Default.aspx.cs:40
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428



Version Information: Microsoft .NET Framework Version:2.0.50727.3623; ASP.NET Version:2.0.50727.5053

 

The firm that coded thsi for us is long gone.  Any ideas what we should be looking for?