nmfns's Q&A profile
SQL Server How to open multiple SqlConnection objects in a SqlServer project
I have a sql server project where I have added 1 stored procedure (named StoredProcedure1) and 1 class (named MyClass). MyClass has two functions Func1() and Func2(). The stored procedure simply instantiates MyClass and calls Func1(). Func1() creates a SqlConnection object using "context connection=true" - opens the connection and then calls Func2(). Func2() also creates a SqlConnection object using "context connection=true" ...Show All
Visual Studio Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectModel.dll
My VB .Net Windows application using SQL Reporting runs fine on my development machine. But when I deploy it to a user's machine and try to run a report, I get the message: Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectModel.dll This file is in the GAC on my machine, but not on the deployment machine. I tried installing SQL Reporting Services on the deployment machine, but that didn't resolve the problem.&nb ...Show All
Visual Studio 2008 (Pre-release) Element Operators: First vs. Single
After perusing the Standard Query Operators doc (available here ), I'm a bit curious about the differences between - [1.13.1] T First(IEnumerable<T> src, Func<T, bool> predicate) and - [1.13.5] T Single(IEnumerable<T> src, Func<T, bool> predicate). At first glance, they appear to be synonymous. Are they the same What motivated the decision to provide two methods which perform the same action Also, as an aside, why is Fun ...Show All
Visual Basic How to create user interface for Fileloader in VB.NET
Dear Sir/Madam, I am trying to create user interface in VS.NET that allow the user to choose and open a file (Browse) like MS Word, etc... It is like Fileloader in Java but I just don't know how to it in VS.NET Any help is greately appreciated. Thanks. Sincerely, Ramy. Hi Bridgette From the toolbox add an Openfiledialog to you form and name it OPNFD Private Sub Cb ...Show All
Visual Studio Team System code coverage "off road"
I've tried using the sample from http://blogs.msdn.com/ms_joc/articles/406608.aspx to get the off-road experience of code coverage. However, when I run the tests on my instrumented binary, I'm getting the coverage results for the test project instead of my instrumented binary. Am I missing something here! Can you send me information about TS-ing into your machine via email to munjald@microsoft.com I am pretty sure the problem is ver ...Show All
Visual Studio Team System Migrations from 2003 to 2005
Hi I have following scenario I have VS 2003 solution that was involved for some time already. I would like to migrate it to VS 2005 but it will surely take some time since I would like to do some code clean up and testing. But even though I don't have new features in schedule client one in a while calls me that we need to change something. Usually this changes need to be "now" and they don't take more then 3-4 hours. But due to ...Show All
Smart Device Development WriteFile
Is anyone familiar with error 87 - invalid parameter from the SetCommState function Here's what I have : BOOL gs2 = GetCommState(hCOM2, &dcb2); dcb2.BaudRate = 312500; dcb2.ByteSize = BIT; dcb2.Parity = PARITY; dcb2.StopBits = STOP; bStatus2 = SetCommState(hCOM2, &dcb2); DWORD dw = GetLastError(); I open the first serial port (which is a USB) & the handle is valid, GetCommState returns OK, & Se ...Show All
Software Development for Windows Vista Designer Problems - The Exception...
I’m experiencing some problems while working with wf in visual studio. Sometimes while building or rebuilding the solution, the build fails, and NO exceptions are given . Opening the workflow file (workflow.cs) will show an exception in the designer: “ Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information .” I don’t know what it means. However sometimes, restarting VS will resolve the prob ...Show All
Visual C# Setting CommandButton's BackColor programmatically.
I am trying to set the BackColor of a CommandButton in the Load event of my Windows Form. However, when I set the BackColor via the code it does not change the BackColor - instead it appears to set the outline of the CommandButton to the Color. I am using Express Edition. Thank you. strColor = "16776960" ; cmdReadyColor.BackColor = Color .FromArgb( Convert .ToInt32(strColor)); Is the code ...Show All
Visual Studio Not precompiling Web Project from MSBuild
In the property pages of a Web Project, there are options to set the MSBuild behaviour for precompilation of the solution. There does not, however, seem to be any way of actually turning this functionality off. I want to be able to call 'build' on the solution so that MSBuild sorts out all the reference projects, but then doesn't call aspnet_compiler as we need to do this manually in our build script (we can't replicate the command line we requi ...Show All
Visual Studio Team System Get TemplateId of Project in TFS
I’m trying to get the process template used to create a project in TFS. I use this code. where "server" is an instance of TemFoundationServer class css = ( ICommonStructureService )server.GetService( typeof ( ICommonStructureService )); string projectName, projectStatus; int projectTemplate; ProjectProperty [] projectProperties; //Obtener la lista de proyectos disponibles. foreach ( ProjectInfo projectInfo in ...Show All
Visual Basic Value of type 'ADODB.Parameter' cannot be convert to
If I accidently posted this is in the wrong section would someone please let me know. Thanks. I get the following compiling errors: Value of type 'ADODB.Parameter' cannot be convert to 'Long'. Value of type 'ADODB.Parameter' cannot be convert to 'String'. This is where I get the compile error: .Parameters.Append(.CreateParameter("@RetCode", ADODB.DataTypeEnum.adInteger, ParameterDirectionEnum.adParamOutput)) .Parameters.Append(.CreateParam ...Show All
Visual C# Please help with Datasets.....
Hi all. I'm lost in the world of datasets. I have filled a dataset (single table) from one database (Interbase using ODBC connection) and I now want to take that dataset and poplate an MSDE database table (using a sqlclient connection) with it. How do I do it All the documentation I can find refers to updating the data source the dataset was populated with, not updating a different database. Please help, Thanks in advance, Kevin.& ...Show All
Visual Studio 2008 (Pre-release) Loosely Coupled Events
What's the equivalence to COM+ Events in WCF I would like consumers to be able to subscribe to datagrams from my service in a loosely coupled fasion like COM+ Events. /Jonas There is no equivalence to LCE COM+ in the WCF. The Pub/Sub notification has been removed from the V1, see the link: http://www.longhornblogs.com/robert/articles/VSLive_DonBox.aspx Have a look at the W ...Show All
Visual Basic I wan't a sample code
I am already used dao to add/update delete on simple supplier form,indentor form and buyer form. I wan't a simple souiltion as I have give above how rows are added deleted. Then how on the bases of added rows I could enter values in database. How to check new product selected in the combo box is not aready selected like all these stuff.If there is somebody knows simililar example stuff then please give me a link I have to add ...Show All
