Amith's Q&A profile
SQL Server Execution not found when using Dynamic Windows Impersonation
Hello, We're trying to use dynamic windows impersonation and URL access to display our reports in the HTML viewer using ASP.NET. Before switching to dynamic windows impersonation we were using static windows impersonation in our web application's web.config file. For example: <system.web> <identity impersonate ="true" userName="ourUsername" password="ourPassword" /> </system.web> The static windows impersonation worked flawlessly. I could set the report parameters in the PageOnLoad function that had the HTML viewer (using VS2005's .Net Report Viewer) and the report would render properly. However, when we tri ...Show All
Visual Studio Express Editions Setting page size in code
Hi, Can anyone help with this please I am trying to set the paper size for the print page method in code, however, It fails to change I have tried many properties and ways of setting it but it fails Basically I have a app that saves the page size to a xml file as an interger value that represents the paper size. Eg 8 = A3. I cannot seem to change the default value of the PoPrintPage_Printpage method from the value of 9 (A4) Private Sub PoPrintDoc_PrintPage( ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles poprintdoc.PrintPage '\\ Setup paper size Wi ...Show All
Visual C# Context Menu
I had tried adding a context menu to a form with a menu item. But upon running the program, and upon right click, I could not see the context menu appear. Is there any other settings that need to be done Please advise. You should assign the context menu you've created to the control's ContextMenu propery, in order to make use of it. Form for example, you can assign context menu to its ContextMenu property. Hope this helps, -chris ...Show All
Visual Studio Getting VS2005 Trial
Hello, I live in Germany and I wanted to get the new 90-day trial of VS2005. Though the software is a trial version I should enter an address to be send a bill. Is this right If yes, how much will I have to pay Greetings Till All the info you need will be here or subsequent links from it: http://www.microsoft.com/emea/msdn/getthetrials/default.mspx ...Show All
Visual Studio Team System Error 32000 when installing TFS in dual-tier environment
Hi Everyone. I'm installing TFS Beta 2 in a dual-server environment. We have three clean 2003 Standard servers. One is the active directory controller, one is the TFS app tier, and the third is the TFS sql server 2005 data tier. The data tier installed successfully. I get the following error on the app tier install at step 4 of 4 after the system rebooted: Error 32000. The Commandline "C:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\sdk\bin\bisregedit.exe" "http://app01:8080/scc/public/application/ServiceDefinition.aspx" DATA01 BisDB' returned non-zero value: 1 When I run the command line direc ...Show All
SQL Server CLR Performance
We had a CLR function that was running in seconds under the April CTP - now it takes over a minute in the new Sep CTP. We've determined that the bottleneck is in the following line: Dim SqlConn As SqlConnection = New SqlConnection( "context connection=true" ) Is there a new recommended way to open a connection That looks right to me, and I'd be very surprised if it was simply the SqlConnection constructor that was causing this (otherwise everyone would be hitting it). Can you provide any more information Thanks, -Isaac ...Show All
Visual C++ Error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'
I keep getting the following error message every time I try to run or build a C++ application in Visual Studio 2005: Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'. It only comes up with a C++ program. VB seems to be fine. I was working on a "Class Library" when it first started so I tried creating a new project. I tried doing a build before doing anything and the error message still came up. Then I tried creating a brand new "Windows Form Application" and running it without any modifications - same error. I tried uninstalling and then reinstalling Visual Studio 2005 ...Show All
Visual Studio CreateNewWorkItem fails, thus failing the build
Our team build fails due to a number of problems. Apparently, MSBuild tries to add new work items for these build failures. However, adding these work items fails also. I have included the corresponding snippet from the build log: Using "CreateNewWorkItem" task from assembly "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.Hatteras.MSBuild.dll". Task "CreateNewWorkItem" C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamBuild.targets(185,5): error MSB4018: The "CreateNewWorkItem" task failed unexpectedly. System.NullReferenceException: Object reference not set to an in ...Show All
Visual Basic How to add CheckBoxcolumn to Datagridview?
Hi, I'am using DatagridView to display particular data .In this i had already added one checkboxcolumn manually through Datagridview Task. Now i had created new instance of datagridview and i want to show data of different table in it. so i had added column through code. But it is taking the previou CheckBoxColumn though i had created new instance so will u tell me why this is happening.And how do i use one datagridview to display various result with checkBox column.Will you please suggest a good book or site from where i can get information regarding datagridview feature and how to use them. Thank you in advance.Hoping f ...Show All
Visual Studio 2008 (Pre-release) Pre/Post Operation Invokation Extensibility
I am looking for a way to set up some state in thread local storage immediately before operations are invoked and then to clean it up immediately after they have completed. (i.e. the pre/post operation code must run on the thread used to service the request). What would be the best way to do this Thanks. Frank, The IOperationBehavior and IOperationInvoker interfaces will do it for you. The following are the major steps: 1. Create your Invoker class derived from IOperationInvoker and implement its method object IOperationInvoker.Invoke(object instance, object[] inputs, out object[] outputs ...Show All
Visual C# adding a library in a aspx file
Hello, I know that you can add the reference to a library by right clicking on the project and choose add a reference. But I would like to know if it is possible to add a library to an aspx file that is not in a project. I tried the import namespace but it doesn't find the library (namespace could not be found, are you missing a reference error message). The dll file is on the same folder as the aspx file, and in a bin file of the root and I even add it in the globalcache. Can someone help me Thanks 1) Load the *.dlls into the GAC 2) Then add the libraries (*.dlls) to your project ...Show All
SQL Server Install SSMSE - Installation failed
Hello all, I have a problem with install SSMSE on all my PCs! :( I downloaded SQL Server Management Studio Express CTP (v9.00.1399) and I can't install it. I have Windows Installer 3.1 v2, .Net Framework 2.0 and MSXML6 installed. If I launch SQLServer2005_SSMSEE.msi its nothing to do :( I have only screen "Preparing to install" and it's go out. In Event Viewer I've evet id 11708: Product: Microsoft SQL Server Management Studio Express CTP -- Installation failed. 0000: 7b 38 36 37 30 46 35 33 {8670F53 0008: 43 2d 38 41 44 37 2d 34 C-8AD7-4 0010: 46 33 34 2d 42 44 42 41 F34-BDBA 0018: 2d 31 37 42 33 38 41 31 -17B38A1 0020 ...Show All
Windows Forms Delete rows from DataGrid not working?
My DataGrid is bound to a DataSet and showing only those records whose Client_Liability_ID IS NULL and I am using RowFilter to do so. Following is the code: 'Set Select Command for WithdrawalDA. WithdrawalDA.SelectCommand = New SqlCommand With WithdrawalDA.SelectCommand .Connection = myConn .CommandType = CommandType.StoredProcedure .CommandText = "spSelectWithdrawals&q ...Show All
Visual C# Change the sound volume
Does anyone knows how can I control the volume through my windows Application Thanks ...Show All
Visual Studio Custom build step for C# files ?
I would like to define a custom build step to generate C# source code files from a C# interface. The generated files are to be part of another assembly in the same solution. I want the generation to take place whenever the cs file containing the interface has changed. In VC++ it is possible to define a custom build step, with dependencies, in the source file properties page. Not so in VC#. (Using a project pre-build step would mean that the files are generated on every build.) I assume there is some way to do this with MSBuild but I'm having trouble finding information on how. Can anyone point into the documentation for me ...Show All
