Ranjeeta Nanda's Q&A profile
.NET Development Access to a smartcard key
Hi all, I'm trying to sign using a key stored in a smartcard and I'm going crazy. I use the following code: CspParameters csp = new CspParameters(1, "SafeSign CSP Version 1.0"); csp.KeyNumber = 1; csp.KeyContainerName = "86332793-9965-41e2-9fff-6ce481e86889"; RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(csp); But then I get the error "More info is available". What's that If I do not specify any container name then the constructor doesn't complain but when specifying a container name then I got the exception. Any idea Any help will be really apreciated! Thanks in advance ...Show All
.NET Development Method returning DataTable of a MBR object fails.
Hi, I have remoted a MBR object to the client using TCP channel. Now when a call is made to a method returning data table having large data, it gives following error. {"Underlying connection was closed: Either there was a fatal error on the server or client authentication failed"} Server Stack Trace "\r\nServer stack trace: \r\n at System.Runtime.Remoting.Channels.SocketHandler. ReadFromSocket (Byte[] buffer, Int32 offset, Int32 count)\r\n at System.Runtime.Remoting.Channels.SocketHandler. BufferMoreData ()\r\n at System.Runtime.Remoting.Channels.SocketHandler.Read(Byte[] buffer, Int32 off ...Show All
Windows Forms User Controls Vs Custom Controls
Hi, I'm currently using VS 2005 and designing Winforms. We have a need to develop new controls. During this tenure, we are stuck which control to design, either "User Controls" or "Custom Controls" What do you suggest and specific reason for that In other words, which is the best option between User & Custom Controls Any light on this aspect will be highly appreciated. Regards, The difference is in the design. User control can bo design with drag 'n drop Custom control must be all coded In windows form there's not a big difference but in asp.net if you want to distribute a user control, you also need to distribute the ascx not ju ...Show All
Visual Studio 2008 (Pre-release) binding combobox selectedindex/item in a listbox itemtemplate
I am having an issue with comboboxes contained in a listbox (using the itemtemplate). I want to be able to change the value of a property on the selected item, by choosing it from a combobox containing a collection of the properties type. Is this possible Currently I've tried binding the combobox itemsource to an objectdatasource, which works fine (apart from the fact that when I change the selecteditem, it changes in EVERY listbox item), and binding the combobox.selecteditem to the corresponding property on the listbox datasource. But this doesn't work. I hope that makes sense. Simon < DataTemplate x:Key = " ...Show All
Visual Studio Connecting to DB
Ok heres the run down guys. This is the final step in the program I have created so thanks to all that have helped me thus far. 1. Report was created in Crystal Reports XI, database connected fine through it yada yada yada all works fine. 2. Combined the Report into Visual Basic .net application (windows application not web) and have got everything to show up via CrystalReportViewer. 3. I have an ini file that has the path to the database in which the report should pull its data from (an access db) so I have created some coding (with the help of the vb people in the vb forum) code to read that ini file, pull the line that has the path to dat ...Show All
Windows Forms Combobox Databinding
I want to achieve a new way of databinding. Let's say i have 2 TYPED Dataset : Employee and Category. Employee.xsd has only a table with the employee Information and a CategoryID in the Category.xsd has categoryID and Description. I'd like to achieve the following with BindingSource. When I click on my DataGridView that is bind to the employee Dataset. I'd like the combobox to also bind to it but instead of displaying the CategoryID, I want it to display the Description Field in the Category Table in my category dataset .... Can it be done So instead of having Employee and Category in ONE Typed DataSet i want to have them in seperat ...Show All
.NET Development RSA. Encrypt with private key , decrypt with public key
Hello, I am trying to use RSACryptoServiceProvider to encrypt a value with the private key ( so i can be the only one to encrypt values ) , and give out a public key so any user can decrypt this value. I have read the RSA does support this.Also the implementation of digital signature in RSACryptoServiceProvider actually uses the keys in the above manner,but manually using the private key to encrypt and public to decrypt generates a "bad key" exception. Is what i am asking possible using the RSACryptoServiceProvider If not is there any other way to achieve this kind of behaviour Thank you ...Show All
Windows Forms ClickOnce: Installing two instances of same application on a machine
I would like to install two instances of the same application on a given machine. I've having issues that I believe began with RTM of .NET 2.0. (worked in Beta2). Scenario: "MyApp" is a ClickOnce application. I do a build of my binaries, and publish the app to the URL http://myapp-QA. I named the application "MyApp-QA" in the publish properities. With the same binaries, I publish the app to a differenent URL with slightly differnent data in the *.config files (database connection strings to be exact). I publish to http://myapp-Prod. I name the app "MyApp-Prod" in the publish properties. In the Bet ...Show All
Visual Studio Express Editions What is the best book for Visual Studio C# 2005?
Hi, I can program in C++, and I would like to know more about Visual Studio C# 2005. Could you tell me what is the most suitable book available nowadays Eric One of my fav books are the Wrox's one http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764578472.html http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764575341.html and there is another book from Microsoft Press named C# Reference written by the C# Architect ...Show All
Software Development for Windows Vista WF Runtime and Sharepoint Services 2.0
I'd like to "Go Live" with WF but I need a host! Given that Sharepoint 3.0 won't be out until later this year, can I host the WF Runtime in Sharepoint Services 2.0 Is there any documentation on installation, configuration, limitations, etc. Hi Gustavo, Thanks for your quick response. I will look thru the code and let you know, if I need any help. Thanks once again, Chandru ...Show All
Windows Search Technologies Search string?
I get a little problem: all projects on our server are named YY-XXX (06-422, for example). When I search on 06-422, I can' find nothing but unrelated documents. I presume it has something to do with the '-' sign. looks like it plays it '06 but NOT 422'. Searching for "06-422" doesn't help neither. Is there a workaround TIA Hugues Hello Hugues, This one is interesting. Your line of reasoning makes perfect sense (the - acting as the 'NOT' operator). Strangely, I've been unable to replicate this problem on any of my test machines. I've been able to find files named 06-442, tr ...Show All
Visual Studio Competitive upgrade license
If we upgrade from a competitive project, are we still entitled to use the competitive product The license is a little vague. Legal got back to me. The End User License Agreement only had verbage concerning microsoft software. We also don't do competitive licenses much anymore at MS so my legal contact couldn't find any information on it. There is no verbage preventing you from using the competitive product. ...Show All
Visual C# exit application after aborting thread
Hi there. During my application a thread is started by the user. however when the user closes the app from the X button at the top right hand corner of the form, the application (or form) closes but app still remains in memory running how can i kill the thread and remove the application from memory, as it should do normally when you run and close an application (like MS word etc...) I have put this in my closing event handler of the form but doesnt seem to remove it from memory: private void frmMain_Closing( object sender, CancelEventArgs e) { i f ( this .listenToClientThread != null ) { if ( this .listenToClientThread ...Show All
Visual C++ help for Visual Studio 2005 and ddraw
Hi, guys, I got a project with existing source code where ddraw is used. But now I am using visual studio 2005 to compile and build the existing solution. I have some problems as follows: 1. Shall I install directX SDK again after the installation of PSDK 2. There are always some compiling problems in the existing solution when using the VC 2005. Although I did not try VC6, are there any version problems to compile an existing VC6 project using VC 2005 express Thanks a lot. Damon Thank you for your reply. Another question is why I cannot find the file ddraw.h in SDK ...Show All
Architecture Saving Composite Data Model
I have a composite data model defind as: class DocumentModel{ string _name; List<PermissionModel> _permissions; } Currently I have two classes in my DAL one handling the core document information (in the example above, Name), and another handing permission related data. So to successfully save a DocumentModel, I would have to make at a minimum 2 trips to the database (assuming I can bulk save List<PermissionModel>). Suppose I to want to improve my current design pattern, would the following methods be better or worse 1) Have a single class in the DAL that takes in the entire Document model and calls th ...Show All
