Kamal_mahendra's Q&A profile
.NET Development SQL Server 2005 Connection with mixed authenticacion
Hi, I have a Web Service created that have to connect to a SQL Server 2005 Database with mixed authentication. If I use the "virtual IIS" provided by Visual Studio I retrieve data, but if I put the project in local IIS, using localhost, I get an error in the connection, it says that I can’t connect with the user ' ' to the database. I think is a problem with the mixed authentication SQL Server has, but I don’t &nb ...Show All
Visual Studio Where do I download the windows installer?
I am having a very difficult getting a simple "hello world" Cyrstal Report to run on my web server. I developing with VS2005 and Crystal Reports for .Net. I have read many help files and support documents from Microsoft and Business Objects that tell me to use: The Windows Installer (install once on the server and be done with it) -or- Merge Modules which must be included with every deployment. What they have not told ...Show All
Visual C# Reading Registry Key
I am working on a C# application that can take a computer name and connect to that computer over the server and check several of the local security policies and create a log of what policies are incorrectly set. In a nutshell, it is an automated way of going through a security checklist rather than manually looking at each policy at each computer. I am currently trying to read the "Audit Policies" such as "Audit Policy Change" etc.&n ...Show All
SQL Server Relative paths
We have a growing issue where we have a relative dtsconfig file (which stores the absolute base path of the ETL packages). This way we can keep the ETL projects failry portable - only having to modify one value in the dtsconfig file. The master package that defines the dtsconfig location (which is config/Default.dtsconfig) usually interpretates this location to be relative the project. The problem is that every now and again when you ...Show All
Visual Studio Tools for Office Saving workbook from template without code & action pane
How can I save workbooks from an excel template without the code nor the actions pane. i want to save simple workbooks having the data that was retrieved by the template. Thanks, samsam You can remove a VSTO customization by calling the RemoveCustomization method on the workbook ( Microsoft.Office.Tools.Excel.Workbook.RemoveCustomization ). This method removes the Runtime Storage Control from the ...Show All
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Thank you for sharing the solution to this msvcr80. ...Show All
Visual C# A newbie question on Interfaces - How to call the methods?
hi, I'm new to C# and OO in general. I can't seem to undestand the pertinence of interfaces. From my understanding, the interfaces define the signature of the methods while the class implements these methods. How is this better than simply doing away with interfaces and simply implementing the method in the class Apologies for the rather novice question, an example to illustrate the pertinence of interfaces would ...Show All
.NET Development How do I read a 250 Meg XML file?
Ok. A vendor is giving me a 250 Meg XML file. I am having a very difficult time reading this, because of the size. I keep getting memory errors in my application. Here is the basic code I am using to read this. I am sure that the xmlDoc.Load is reading the entire document into memory. What I need, is to read it a I go, not all at once. I can't figure out an Xml way of doing it. The only way I can t ...Show All
Visual Studio Express Editions Problem with publishing application
I tried to publish my application for the first time today, and it gives errors because it can't find two folders that I included in the project that have necessary icons in them. The two folders are named "32" and "icons". In the coding, I referred to the icons like this: ..\..\icons\iconname.jpg It worked when I was debugging, but doesn't work once the app is published. Can someone tell me how to refer to the icons in ...Show All
Visual C# Handling large dataset
Hi, i have two questions. 1. what is the best method to retrive large table from sql server 2. what is the best method to handling large dataset e.g searching and sorting in c# not in databse level Thanks Wilson This is a loaded question that neeeds some context. Can you answer a few questions. Are you doing WinForm or ASP.NET development Are you going to hold on to the data or use ...Show All
Visual C++ templates with VC++ event handling
Hi, I'd like to use templates with event handlers. Appreciate any help. Here is the code. The problem is with the hook and unhook methods. #include <stdafx.h> template < class T> class PropertyChangeListener { public : void propertyChange( std::string oldValue, std::string newValue ) { printf("Changed from " + oldValue + " to " + newValue ); } void hookEvent(T* bean) { __hook (& ...Show All
.NET Development IHasXmlNode and XPathNavigator
Reading the docs on IHasXmlNode I assumed an XPathNavigator object would always implement IHasXmlNode. The examples always use CreateNavigator() on an XmlDocument object. I assumed this was just an example. If I use CreateNavigator() on an XPathDocument object, that XPathNavigator object does not implement IHasXmlNode. For example: XmlTextReader reader = new XmlTextReader(@"file.xml"); XPathDocument document = new XPathDoc ...Show All
Windows Forms How to get newly selected item of a ListBox with multiple selection?
I find that the ListBox control does not provide all functions that exist in its Windows native counterpart. For example, I have a ListBox with SelectionMode set to MultiExtended. I need to know its index when a new item is selected. But I failed to find what events to handle. Another less-used function is set focus rectangle to a selected item when a ListBox has more than one items selected. Or I might be wrong. Thanks for DMan1's rep ...Show All
Software Development for Windows Vista The program hang up at DestroyWindow when I'll shut down my camera-program
Hello I use Visual Studio.Net 2003 and W2K. The program freezes at DestroyWindow when I'll shut down my camera-program I use Vfw32.lib to get Pictures from a camera. The program runs without errors. But if the program runs more than one minute and I shut down the program, it stops at DestroyWindow. Here is the function: void V_leavevideo(){ if (V_is_capturing){ &nb ...Show All
SQL Server Tell subscription to append date & time to output report file from called subscription in VB.NET
How can I tell the output report created by the subscription to append today's date and time to the filename. In the subscription, I can tell it to be unique as it appends an incremented number but I want it to append today's date & time as the unique identifyer on excel, pdf, other outputs Public Sub RunsssReport() Dim rs As New ReportingService2005() rs.Credentials = System.Net.CredentialCache.Defau ...Show All
