Yes, I am able to share with all another programs.
Hello, It is Working Now. Thank you.
Hi, No there isn't block. I had taken look in that direction first.
Hello, This is my connection String for tenant, "Data Source=000.00.000.000;Initial Catalog=tenantDBName;Persist Security Info=True;User ID=00;Password=0000000000"
Hello,
this link is not useful for me. PLease provide another solution.
Hello, Can you guide me for download file code in service file. i am using thi code block for downliading file but getting error on "Response".
public void ExportPdf(Telerik.Reporting.Report report)
{
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = report;
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);
string fileName = result.DocumentName + "." + result.Extension;
string path = System.IO.Path.GetTempPath();
string filePath = System.IO.Path.Combine(path, fileName);
Response.Clear();
Response.ContentType = result.MimeType;
Response.Cache.SetCacheability(HttpCacheability.Private);
Response.Expires = -1;
Response.Buffer = true;
Response.AddHeader("Content-Disposition",
string.Format("{0};FileName=\"{1}\"",
"attachment",
fileName));
Response.BinaryWrite(result.DocumentBytes);
Response.End();
}
Hello, I have made some changes in files to solve my issue. I had removed dependancy on "TwilioSmsSenderConfiguration" file and applied my credentials on "TwilioSmsSender" page as below.
public class TwilioSmsSender : ISmsSender, ITransientDependency
{
public async Task SendAsync(string number, string message)
{
try
{
TwilioClient.Init("AccountSid", "AuthToken");
MessageResource resource = await MessageResource.CreateAsync(
body: message,
@from: new Twilio.Types.PhoneNumber("SenderNumber"),
to: new Twilio.Types.PhoneNumber(number));
}
catch (Exception E)
{
throw new UserFriendlyException(E.Message);
}
}
}