Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

jmavn

@jmavn
About
Posts
21
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Thread abort exception from windows service when call WCF service method
    J jmavn

    I have one windows service, which is invoked using commandline client C# application. The functionality of windows service is to execute some Batch jobs. In one of the Batch job, it calls an email service (WCF service) and send mail based on the values passed. It has one operation contract 'SendMail' with the signature as 'SendMail(object[][] parameters, string[] recipients)'. I am getting 'Thread was being aborted exception' after all the mails have been sent. But when I call the email service from console application, I did not receive any exception. I tried changes in configuration to increase timeout, but still the exception is occurring. I checked solution in the net, but I could not solve my problem yet. Can anyone have idea about the reason for this exception. Thanks in advance. The following is the stack trace of the exception which I received. Exception in sendmail : Thread was being aborted. Trace : at System.Net.ConnectStream.WriteHeaders(Boolean async) at System.Net.HttpWebRequest.EndSubmitRequest() at System.Net.HttpWebRequest.GetResponse() at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at SampleBatchJob.EmailServiceRef.IService.SendMail(Object[][] parameters, String[] recipients) at SampleBatchJob.EmailServiceRef.ServiceClient.SendMail(Object[][] parameters, String[] recipients) in c:\Projects\BatchFramework\Arivazhagi\ACA.Batch5.0WC\Samples\SampleBatchJob\Service References\EmailServiceRef\Reference.cs:line 62 at Avanade.ACA.Batch.Batch.SampleBatchJob.EmailBatchJob.Execute(JobExecutionContext context) in c:\Projects\BatchFramework\Arivazhagi\ACA.Batch5.0WC\Samples\SampleBatchJob\EmailBatchJob.cs:line 71

    Thankfully, jm

    WCF and WF csharp wcf data-structures debugging help

  • How to export into Excel in asp.net 1.1 with proper formatting
    J jmavn

    Hi, I have used the Response method for exporting to excel sheet. The Date field values are displayed not properly . Snapshot of the code which I used: Response.Clear() Response.Buffer = True Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("Content-Disposition", "attachment; filename=""" & strFileName & """") Response.Charset = "" Response.Cache.SetCacheability(HttpCacheability.NoCache) Me.EnableViewState = False Dim oStringWriter As New System.IO.StringWriter Dim oHtmlTextWriter As New System.Web.UI.HtmlTextWriter(oStringWriter) Dim a As New System.Web.UI.HtmlTextWriterStyle Excelgrid.RenderControl(oHtmlTextWriter) Dim sExcel As String sExcel &= oStringWriter.ToString() Response.Write(sExcel) Response.End() My requirement is Date to be displayed in dd/MM/yyyy format. But in exported excel sheet, some values are treated as Date and others (it assumes the first 'Date' part as month and if it is greater than 12, it treats as String instead of Date) What way I can solve this problem. Any possibility to formatting the columns in excel thru coding and what else can I do to get the values properly. Expecting ur swift reponse. I need solution for this as soon as possible coz I was dragging with the issue for past 3 days and not find any solution. :(

    Thankfully, jm

    ASP.NET help csharp swift asp-net design

  • How to use UNC name (remote computer) in the @outputfile parameter of sp_makewebtask ?
    J jmavn

    Hi friends, In my application (developed in asp.net 1.1), I am going to implement the Cache dependency mechanism. I want to automatically invalidate the Cache object, once any manipulations done on a particular table in SQL Server. My application and DB is running in different system. I found in one of the site, to create a trigger on the table which in tern calls the sp_makewebtask System stored procedure and write output of the query into a file. EXEC sp_makewebtask @outputfile = 'c:\testcache.txt' @query = 'select top 1 Problem_Category_Code from SMD_Problem_Category' But the 'C:\testcache.txt' is pointing the local system in which SQL is running. I want to write a file which is available in remote system. I shared a folder from the system and made a mapped drive in the SQL system. (as z:\ drive) I used the statements as : @outputfile = 'Z:\testcache.txt' also as @outputfile = '\\10.160.1.4\wc\testcache.txt' But in both the cases I got the error as: Msg 16821, Level 11, State 1, Procedure sp_makewebtask, Line 131 SQL Web Assistant: Could not open the output file. But in one site it is mentioned that, we can use the UNC name if we want to write file in remote system. How can I run the SP? Can anyone please help me to solve this problem? I need some swift reply on this issue, as it is very urgent for me.

    Thankfully, jm

    Database database help question csharp swift

  • How to set the Default Export FormatType in crystal reports?
    J jmavn

    Hi Sync, Yes I tried the code, but I could not get you what "Report" means in the code. Is this the ReportDocument Name or something else? :( Also the diskOpts.DiskFileName = fileName (filename??) what value can I give to it? Is it the name of the xls file which is to be store the exported report? It must be set at runtime isnt it? I am not sure about it.. Can you clarify my doubts, please?

    Thankfully, jm

    ASP.NET tutorial question

  • Help needed urgently - regarding Crystalreport default options
    J jmavn

    Hi all, I am working with crystal reports XI. When exporting the crystal reports, by default "Crystal Reports (RPT)" is selected in the FileFormat dropdownlist. Is it possible to set this option as "Microsoft Excel 97-2000 data only (XLS)"? If it is possible how can we set it? In the design time or thru coding? Please if any one knows about it reply me.. I need the answer urgently..

    Thankfully, jm

    IT & Infrastructure design help question

  • How to set the Default Export FormatType in crystal reports?
    J jmavn

    Hi, I am working with crystal reports XI. When exporting the crystal reports, by default "Crystal Reports (RPT)" is selected in the FileFormat dropdownlist. Is it possible to set this option as "Microsoft Excel 97-2000 data only (XLS)"? Please if any one knows about it reply me.. I need the answer urgently..

    Thankfully, jm

    ASP.NET tutorial question

  • Help needed urgently on ASP.Net - AJAX...
    J jmavn

    Hi, Thanks for your reply. But where should i change it? When it is binded, value is taken from DB. But when I select the item (I enabled the AutoPostBack = True) for the checklistbox. (Also I do have same kind of value in one of my Dropdownlistbox). When i selected in the dropdownlist, The SelectedIndexChanged event not firing, instead it gives the Exception. In this case what should I do to avoid it..

    Thankfully, jm

    ASP.NET help question csharp asp-net visual-studio

  • Help needed urgently on ASP.Net - AJAX...
    J jmavn

    Hi, I am using AJAX in my appl using VS 2005. In one of the checkboxlist, set of values are binded and one of the value is " -" When I select that particular item, I got the error as: Sys.WebForms.PageRequestManagerServerErrorException: an unknow error occured while processing the request on the server. the status code returned from the server was: 500 What is the cause of the error? Is this problem using AJAX? What is remedy for this problem? Can anyone help me? Thankfully, jm

    ASP.NET help question csharp asp-net visual-studio

  • Regarding problem in viewing crystal reports
    J jmavn

    Hi, I have created a crystal report in crystal report XI and using a typed dataset xsd file for the report (I have given same column name which i used in the query) And I used Load method to load the report and set the datasource. I use the dataset 'Merge' to merge the XSD schema dataset with the dataset which I populate using the query. I have created some reports. It works fine. But I have one cross tab report. For that cross-tab report, in runtime after the dataset is filled and merged fine. Also it binds it to the crystal report without any error. But at last it gives the page showing the 'The report you requested requires further information.' - message and asking userid, password... Even after I gave the info, it didnt display the cross-tab report. I am annoyed with this problem. Can anyone please help me out in this problem? I am very much thankful to you.. Expecting ur replies eagerly...

    Thankfully, jm

    ASP.NET help database xml question

  • Need clarifications regarding ASP.Net AJAX
    J jmavn

    I want to know what are differences between ASP.NET 2.0 AJAX Extensions and ASP.Net Atlas I have a problem that is first I installed ASP.NET 2.0 AJAX Extensions in my system and I used ScriptManager, UpdatePanel controls in my project. But it gave some errors while running the application. So I checked some other sample applications of my friend, he used Microsoft.Web.Atlas.dll in his project. So I also installed the setup for Atlas. But during installation process, it gave me error that "Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of the product use Add/Remove Programs in the Control Panel." So is it not possible to have both in the system? Which one is latest (ASP.Net 2.0 AJAX Extensions 1.0 or ASP.NET Atlas July 2006 CTP) Can anyone kindly help me regarding this? I would be very thankful to you friends. I am looking forward to hear ur reply as soon as possible. Thanks in advance.

    Thankfully, jm

    ASP.NET help csharp asp-net question announcement

  • how can i get radio button in datagrid
    J jmavn

    Hi srini, If at all you want to use the radiobutton only for the selection the answers, why not you try with the Radiobuttonlist (instead of datagrid), because it also involves less complexity. Its my suggession, pls try for the radiobuttonlist control. Regards, jm

    Regards, jm

    C# csharp question

  • how can i get radio button in datagrid
    J jmavn

    Hi srini, how r u? Good evng. I think you might have option to include the template column inside the datagrid. In that template column, you might insert a radio button control by the Edit Template option. Is this helpful for you? If not let me know. Where r u working? R u frm tamilnadu?

    Regards, jm

    C# csharp question

  • how can i get radio button in datagrid
    J jmavn

    Hi, Is it windows application or asp.net web application? Also which .Net version are you using (ie. Visual Studio 2003 or Visual Studio 2005?) I am not clear about these details, if i would know i can give some suggestions (I havent done this, I have used checkboxes inside grid using Web application(in VS 2003) and i have used comboboxes inside datagridview using Windows Application (in VS 2005)).

    Thankfully, jm

    C# csharp question

  • Regarding Systemtray - contextmenu using Windows Services
    J jmavn

    Hi, If you know the answer for my question, pls let me know, else where can i find solution? I didnt intendly put the question twice, I clicked submit button two times so it posted the same question twice.

    Thankfully, jm

    C#

  • Regarding Systemtray - contextmenu using Windows Services
    J jmavn

    Hi, I have created a sample Windows Service, in which I want to provide a notify icon on the system tray. I have placed a notify icon and a contextmenustrip on the Service's Designer form, and on the OnStart() method of the Service I have assigned a value to the contextmenustrip property of the notifyicon. The following code snippet is written on the OnStart() event of the service, **contextMenuStrip1.Items.Add("Login"); contextMenuStrip1.Items.Add("ViewRecentDocuments"); notifyIcon1.ContextMenuStrip = contextMenuStrip1; notifyIcon1.Text = "Notifier"; notifyIcon1.Visible = true;** After that I have installed the Service in the system, and started the service. The notifyicon get displayed, but while right-clicking on it, contextmenu didnt displayed. Is my code is correct one, if not what change should I do, to make the contextmenu to be displayed on notifyicon's right-click event.. Anyone knows the solution, please reply me. :confused:

    Thankfully, jm

    C#

  • Regarding Systemtray - contextmenu using Windows Services
    J jmavn

    Hi, I have created a sample Windows Service, in which I want to provide a notify icon on the system tray. I have placed a notify icon and a contextmenustrip on the Service's Designer form, and on the OnStart() method of the Service I have assigned a value to the contextmenustrip property of the notifyicon. The following code snippet is written on the OnStart() event of the service, **contextMenuStrip1.Items.Add("Login"); contextMenuStrip1.Items.Add("ViewRecentDocuments"); notifyIcon1.ContextMenuStrip = contextMenuStrip1; notifyIcon1.Text = "Notifier"; notifyIcon1.Visible = true;** After that I have installed the Service in the system, and started the service. The notifyicon get displayed, but while right-clicking on it, contextmenu didnt displayed. Is my code is correct one, if not what change should I do, to make the contextmenu to be displayed on notifyicon's right-click event.. Anyone knows the solution, please reply me.

    Thankfully, jm

    C#

  • How to use notifyicon with contextmenustrip in Windows Services using .Net Framework 2.0 or 3.0
    J jmavn

    Hi, I have created a sample Windows Service, in which I want to provide a notify icon on the system tray. I have placed a notify icon and a contextmenustrip on the Service's Designer form, and on the OnStart() method of the Service I have assigned a value to the contextmenustrip property of the notifyicon. The following code snippet is written on the OnStart() event of the service, contextMenuStrip1.Items.Add("Login"); contextMenuStrip1.Items.Add("ViewRecentDocuments"); notifyIcon1.ContextMenuStrip = contextMenuStrip1; notifyIcon1.Text = "Notifier"; notifyIcon1.Visible = true; After that I have installed the Service in the system, and started the service. The notifyicon get displayed, but while right-clicking on it, contextmenu didnt displayed. Is my code is correct one, if not what change should I do, to make the contextmenu to be displayed on notifyicon's right-click event.. Anyone knows the solution, please reply me.

    Thankfully, jm

    C# csharp dotnet tutorial

  • How to load class file dynamically in C# .Net
    J jmavn

    Hi, Why i am in need of this is i need to generate an XML by reading the properties from a Class file (in any language C#, VB.Net..etc).. for that i have to know the properties defined in those class files and based on the properties and datatype of those properties i need to generate a dynamic XML files example If a class file is something as public Class A { private int number; private string name; public int Number { get {return number;} set {number = value;} } public string Name { get {return name;} set {name = value;} } } based the above shown class, i have to generate by getting the properties of the class Like this i have to generate XML file.. For this i need to get the reflection of class, isnt it? Is any other way available to get the properties declared in a class file? Expecting your reply. Thankfully, jm Thankfully, jm Thankfully, jm

    C# csharp tutorial question

  • How to load class file dynamically in C# .Net
    J jmavn

    Hi, Why i am in need of this is i need to generate an XML by reading the properties from a Class file (in any language C#, VB.Net..etc).. for that i have to know the properties defined in those class files and based on the properties and datatype of those properties i need to generate a dynamic XML files example If a class file is something as public Class A { private int number; private string name; public int Number { get {return number;} set {number = value;} } public string Name { get {return name;} set {name = value;} } } based the above shown class, i have to generate by getting the properties of the class Like this i have to generate XML file.. For this i need to get the reflection of class, isnt it? Is any other way available to get the properties declared in a class file? Expecting your reply. Thankfully, jm

    Thankfully, jm

    C# csharp tutorial question

  • How to load class file dynamically in C# .Net
    J jmavn

    I am loading the source file not the assembly file. In this case how can i get the class properties and fields??

    Thankfully, jm

    C# csharp tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups