Pr1nce's Q&A profile
Visual Studio Team System Include / Exclude target to drop
Hello, We have loads of solutions being build as part of our TFS builds, and each solution contains the main project (class library) and one or more test projects, containing either unit tests or test harness controls. I obviously want all the projects in a solution to be build so the unit tests can run, but ALL the compiled projects are copied to the drop folder, rather than just the main class libraries. Is there a way to specify that you want to build all projects in a solution but only copy one of them to the drop location I don't think I need to go so far as to build a custom task to do something that the MSBuild copy task can already do for me ( http://msdn2.microsoft.com/en-us/library/3e54c37h.as ...Show All
Visual Studio Tools for Office Excel Object Releasing from memory
Hi, i've developed a web application to retrieve the data from Sqlserver 2000 and fill it in the Dataset then, using the dataset i'l write the data into the Excel templatefiles by opening the Excel and copying the excel sheet writing the data into it. After writing the data i'l save the template file as a new file with different name. then i'm closing the Excel books, sheets and quits the excel application. My problem is after closing and quiting the Excel application also the Excel.exe is still running idle, so i can't open the excel file, after killing the Excel.exe only i'm able to open the saved Excel File. In my application multiple user can access the same application so multiple Excel.exe will be runni ...Show All
Visual Studio Express Editions Copy files from 1 dir to another
Hello: i know how to Copy files from 1 dir to another but how would I display messagbox like 'Finished' when it has copied all the files over Btw its because im making an installer :) Thanks! :) ahmedilyas wrote: MessageBox.Show("Finished") If this is a custom action within an installer module, it does not reference System.Windows.Forms. You may need to add that as a reference to the project and access the messagebox accordingly: Code Example System.Windows.Forms.MessageBox.Show("Done") ...Show All
SQL Server problem with the "ImpactDetailCollection"
Hi everybody, I have a problem updating a dimension used by some cubes. I added some attributes to a dimension, then to update the dimension I ran this code, using AMO: Dimension AmoDimension = (my dimension, i just added some attributes to it) XmlaWarningCollection xmlaWarningCollection; ImpactDetailCollection impactDetailCollection; xmlaWarningCollection = new XmlaWarningCollection (); impactDetailCollection = new ImpactDetailCollection (); AmoDimension.Update( UpdateOptions .ExpandFull, UpdateMode .CreateOrReplace, xmlaWarningCollection, impactDetailCollection, true ); IMajorObject [] objectsToUpdate = new IMajorObject [impactDetailCollection.Count + 1]; ...Show All
Visual Studio Team System How to get emailNotificationAddress and SMTP server name programatically
Hi All, I need to get the emailNotificationAddress and SMTP server name which is configured in the web.config file[<Drive>:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services\web.config]...programatically... Please give me the code snippet for the same.....using the TFS API.. Thanks, Kathir The emailNotificationFromAddress and SMTP server name are not exposed through the TFS APIs. The only way I know of for you to read those values is to pull them directly from the web.config file. If you can share the scenario you are trying to enable we may be able to suggest other ways to solve the problem. For example, if you are just trying to source e-mail from ...Show All
SQL Server Sql Connection errors
I dont know why but.. I keep getting an sql error here.. private void button1_Click(object sender, EventArgs e) { SqlConnection sqlcon = new SqlConnection( @"Server=(local)\sqlexpress;Integrated Security=True;" + "Database=mydb" ); sqlcon.Open(); } this is the erro that I keep getting.... {"Cannot open database \"mydb\" requested by the login. The login failed.\r\nLogin failed for user 'XLORDT\\xlordt'."} now.. Im using sqlexpress the one that comes with visual studio.. what do i need to do to fix this well what type of authentication are you using SQL or Windows try this connection string: "data source=.\SQLExpress;initial catalog= databaseName ;Trusted ...Show All
.NET Development Serializing a large data structure
I want to serialize a class that contains a great deal of data (up to many tens of megabytes), nearly all of which is in unmanaged memory. All the methods I can find for serializing a class end up with SerializationInfo.AddValue calls, which would be hugely wasteful and slow if performed pixel-by-pixel. (The class is a .Net wrapper for an unmanaged image object. I want to implement ISerialize so that I can provide a VStudio debugger Visualizer). So far I have achieved my objective by transferring each row of the image into a managed array, then serializing the array. The disadvantages are (a) I need to keep 'inventing' a new name for each row, (b) I can't re-use the managed array (or the serializer conclud ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Projecting 2D Coordinates Into 3D Coordinates
I just got started with XNA (and C# for the most part, though my experience with Java seems to help) and ran into a snag. I did the tutorial about display points using the VertexBuffer object and wanted to take it to another level. I wanted to get the mouse coordinates when the mouse is clicked and put a new point on there. I got the input and figured out how to add points to my array, but unfortunately I can't figure out how to take my 2D screen coordinates from the mouse and put it into 3D coordinates. Does anyone know how I can do this If it matters, here's the code I used to create my projection and view matrices: viewMatrix = Matrix.CreateLookAt( new Vector3(0, 0, 5), Vector3.Zero, Vector3.Up ); ...Show All
SQL Server Parameter Display
I need to display parameter value on my report.This parameter is coming from web application. Example:I am passing parameter Dealer Name from web application to Report. How to display that Dealer Name on Report. Drag a textbox control in the report. go to edit expression for that textbox. select parameter on ur left side, it displays all the parameters listed in ur report on the right hand side.(dealer name as u said for example). incase it is not used in query, u can create one parameter which also be listed in the right hand side. double click the parameter you want to display in the text box. ...Show All
.NET Development Aggravating WinFX Runtime Components 3.0 - Beta 2 uninstall problems...
I'm using the uninstall tool provided by microsoft to remove previous versions of winfx. It tells me i'm missing 2 files to complete the uninstallation. indigo.msi and vs_setup.exe. I will admit b4 i knew about this tool, i just went in to the add/remove programs and started uninstalling so thats probably when the needed files were removed. My question is how to i get these files back. What do i need to install to get them back. I tried reinstalling WinFX Runtime Components 3.0 but still no avial. Any help is much appreciated. Brian Please send the log files to labshmo-at-hotmail so that we can review and debug the situation. You should find them under (%temp%\dd*.*). ...Show All
Visual Studio How to generate Dyamic crystal reports ?
I am having two dropdown list box . Which the use has to select the starting date and ending date . With the help of his input i should develop crystal report . How to do it . I am using c# and Sqlserver . Regards, Raghu Thank u very much . As i am new to crystal report i dont have any idea about it . Can u please send any sample code or any others source code url . Regards, Raghu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem creating a render target.
I'm just having issues because I'm trying to create a render target with a surface format of RGBA5551 is it unsupported With SurfaceFormat.Color it doesn't raise an exception, so I'm guessing it has to do with that. Surface renderTarget = this.graphics.GraphicsDevice.CreateRenderTarget( 1024, 512, SurfaceFormat.Bgra5551, MultiSampleType.FourSamples, 0, true); Am I doing something wrong here do I need to prepare the device first I don't think it's that my vidcard doesn't support it since it's a Geforce 7800GT... Well, any answer would be greatly appreciated. I wasn't trying to render a picture in 16-bit, I was traying to make some calculations ...Show All
Visual Studio 2008 (Pre-release) Mysterious Exception when using WsdlImporter...
Hi, When trying to collect some data from a running service via MEX, I get zero ServiceEndpoints returned, after a little investigation I found there's an exception happening and it's being swallowed somewhere down the line: < TraceRecord xmlns = " http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord " Severity = " Error " > < TraceIdentifier > http://msdn.microsoft.com/en-GB/library/System.ServiceModel.Diagnostics.ThrowingException.aspx </ TraceIdentifier > < Description > Throwing an exception. </ Description > < AppDomain > RegistrarHost.vshost.exe </ AppDomain > < Exception > < ExceptionType > System.ServiceModel.Description ...Show All
SQL Server Help - How do I create a new instance
Hi Guys Im new to SQL and I need to create a new instance Help hi, you need to install (and not create) a new instance if no other instance has been already installed.. If you install a SQLExpress instance, by default a named instance named SQLExpress will be installed... it's actual full name will be <ComputerName>\SQLExpress to do that, just run the SQLExpress installer.. if you like to "play" with the advanced options, you can modify the instance name (or install a default instance as well, if not already installed), if remote connections will be enabled (network protocols are disabled by default), modify (if required) the collation settings for sort order and comparations, allow standard S ...Show All
Audio and Video Development Animation not holding.
I implemented a menu tray that raises and lowers. It worked in the first version of the iHDSim, but in the new version the menu tray raises and then disappears. Then the lower tray button key assignment will make the tray appear again and then lower. Why is the tray not staying visible <style id="BUTTON_TRAY" style:backgroundImage="url('MENU/BTN_TRAY.png')" style:position="absolute" style:x="190px" style:y="720px" style:width="900px" style:height="200px" /> <!-- effects for raising and lowering menu tray --> <g id="RaiseTray"> <animate style:y="720px;520px" /> </g> <g id="LowerTray"> <ani ...Show All
