Peter Jausovec - MSFT's Q&A profile
Visual Studio Team System Need a silent mode for MSTest to run unattended.
Is there some (undocumented ) way to run mstest silently from the command line Currently if a test raises an unhandled exception, mstest will open up an "Unhandled Exception" dialog box. This essentially prevents me from being able to run unattended through a list of tests via the command line. Hi Boris, I have confirmed that when I get this message box it is indeed due to an (unhandled) exception being raised by the app under test on a separate thread. That in itself is obviously a bug in the app under test and we're thankful for the Unit Test Framework for helping us find it :) The issue I have with VSTestHost's behavior in this case is that it raises a message box and halts the unattended exec ...Show All
.NET Development RSA Sign without using SignData or SignHash
Does anyone know if there is possible to encrypt a byte array with an RSA private key and decrypt with the public key In all the examples I've seen, they encrypt the data with the public and decrypt it with the private. I've tried the other way round but it doesn't work. I just want to sign a byte array but without the function signData or signHash. I want to calculate my own hash and sign it. I've try the following code: RSACryptoServiceProvider rsaBob; RSACryptoServiceProvider rsaAlice; ASCIIEncoding ByteEncoding = new ASCIIEncoding(); rsaAlice = new RSACryptoServiceProvider(); rsaBob = new RSACryptoServiceProvider(); rsaBob.ImportParameters(rsaAlice.ExportParameters(false)); byte[] EnAlice = rsaAl ...Show All
.NET Development Having a hard time with a Nullable<int> issue
I pass parameters to a Web Service api which require a Nullable<int> x = 1 or 0, and I should get back a auditlist.. Here is what I do !! System.Nullable<int> operationResults = 1; auditList = AuthdAdminService.AuditLogGetRecords(dateStart, dateEnd, OpIds, searchString, operationResults, startIndex, range); Here is what the service requires! public AuditRecordListResult AuditLogGetRecords(string dateStart, string dateEnd, string[] operationIds, string searchString, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] System.Nullable<int> operationResult, int startIndex, int range) { object[] results = this.Invoke("AuditLogGetRecords", new object[] { dateStart, dateEnd, ...Show All
.NET Development filter xml and XMLHttpRequest
I am not sure if this is the right forum but here goes... I am using the javascript and XMLHttpRequest object to retrieve the contents of an xml file into my web page. I was wondering how I can limit (filter) the results from the xml file, using this method, based on an element in the xml file. Typically, I would load the xml into a dataset and use the datarow.filter method, but since I am using javascript I was wondering if there was a way without having to use an xml stylesheet. Here is my code: var xmlObj = null ; if (window.XMLHttpRequest) { xmlObj = new XMLHttpRequest(); } else if (window.ActiveXObject) { xmlObj = new ActiveXObject( "Microsoft.XMLHTTP" ); } else { retu ...Show All
Windows Forms cascading
When i open the first child form, it is getting displayed a right location but when i open second child form and so on, they are cascaded I want but child windows to be displayed properly and not cascaded how can i do this When showing new MDI children, try setting their location manually: Dim form As New Form2 () form.MdiParent = Me form.StartPosition = FormStartPosition .Manual form.Location = New System.Drawing. Point (( Me .ClientSize.Width - form.Width) / 2, ( Me .ClientSize.Height - form.Height) / 2) form.Show() Andrej ...Show All
Visual Studio 2008 (Pre-release) ParserContext and IOException (file in use)
Hi, I have a custom package file where there is a flowdocument and all related images. I use ParserContext to make the parser resolve images uri, using the pack:// syntax to my package file. This works. But if I try open for writing the package (adding a new resource, for example) I receive an IOException (The process cannot access the file .... because it is being used by another process). The other process is my application itself, and the file is being locked from the loaded WPF. This means that the Image object locks the package file since its source is the package itself. In fact commenting this line, the IOException goes away: object obj = XamlReader .Load(myStream, myParserContext); Now the problem is: how can I update the ...Show All
SQL Server Generating and Printing Reports
I've created a data flow where I have linked to an OLE DB Source then created a Flat File Destination. My file is now on my c: drive. I'd like to use that data to create a report, then print to a PDF. How would I do that Currently I was doing this in Access, but I am moving my processes to SSIS. I was also assuming that I could put this in a Script Task, but I didn't know how far I could go with generating a report from there. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA and a map
good morning guys ;) whats the best way to develop a map (greater the screen) and scroll it with XNA any tips thx greg The current sprite system doesn't appear to have much support for this functionality at the moment (although I certainly have not explored it extensively !). You might implement map panning by offsetting each maptile sprite position by the inverse of the map's 'camera' position. Personally I think a more elegant solution would be to write a sprite class that renders sprites on the x/z or other plane in 3D and then incorporate a camera class with an orthographic projection for use in rendering. All you would need to do then is set the camera's ...Show All
Visual Studio Tools for Office Question: VSTO2005 + ASP.NET + Excel XP
I have a question about VSTO 2005 + ASP.NET(C#) + Excel Actually I just want to: 1. Get data from DB 2. Put (better like "CopyFromRecordSet" back in ADODB) the resulted DataTable to Excel 3. (If no Excel automation needed) Change something like Excel Column width, borders... 4. Save the file on server 5. Allow download by user 6. Users open the Excel file by EXCEL 2000, XP I want to use VSTO's ability to change the data directly without touching Excel (no need to install Excel on server) , that way I can't have Step 3 As I know...(maybe wrong)...the VSTO approach needs Excel 2003 to bind the Data Island and the View when the user opens the document, but I want user to open the file using Excel 2000 or XP, (this is my ma ...Show All
Visual Studio Express Editions Vb 2005 just keeps quitting
Hi All i am running WindowsXP Pro SP2 (.Net 1.0 / 2.0 and 3.0 framework installed) i have being using VB for a few years now. i was soo pleased when they released VB 2005 but i havce a problem. 1) I installed vb2005 from the microsoft's web site and installed it, then i went to created a new form it just closed the program down so i thought i would try loading the program again and creating a form but the same problem happend. i have disabled the SQL SERVER that can be accompanied which vb2005, would that cause a problem and make the program quit thanks alistair p.s this also happens with Visual Web Developer hi again i had a look in the Event Viewer but there was nothing to say that VbExpress caused a ...Show All
Software Development for Windows Vista TrackingRecord not serializable
Hi, I have written a custom tracking service and the corresponding tracking channel. I have overriden the Send method which the runtime would invoke by passing the tracking record. I need to pass this info to some remote object hosted in a Windows Service using Remoting. However while passing this data, I got a serialization exception and subsequently I realized that WorkflowTrackingRecord and ActivityTrackingRecord are not serializable. Any particluar reason why these two classes are not serializable. Now that they are not, I need to extract the contents into a serializable class and pass it across the remoting boundaries which could have been avoided had the class been serializable. Thks Giri ...Show All
.NET Development Query an online database?
Ok I am trying to write a program that will grab a list of all the AddOns that I have installed for World of Warcraft and then it will query at least one of the UI websites to see if a newer version is out and if so download it and wait for me to install it. My question is how can I get the information about the addon from the net I have read about Web Services a little bit and after search 2 out of the 3 I have found no documentation about a web service at all. Is there another route I can take Ok I will research that, but I have one more question. the three websites I am trying to use are wowinterface.com, ui.worldofwar.net, and cursegaming. So how can I find out if their website supports the XML feed w ...Show All
SQL Server Connect to Database in SQL 2005 Express
I am trying to connect to the sample databases in SQL Express. I am getting this error. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Name Pipes Provider, error: 40 - could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53) I have downloaded and installed AdventureWorks, Northwind, and Pubs. If I have to allow remote connections how do I do that I am a studen and I am brand new at this. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, t ...Show All
Windows Forms ComboBox Resize Oddity
I've got a problem when my ComboBoxes get resized. If a ComboBox has items populated and the Text property matches the start of one of the items, any change in Width on the ComboBox will cause the Text to change to the full item. Example: private void btnShowBug_Click(object sender, EventArgs e) { comboBox1.Items.Add("Annapolis"); comboBox1.Text = "A"; comboBox1.Width = 100; Console.WriteLine(comboBox1.Text); // Prints "Annapolis" } If I change comboBox1's Text property to "B" before resizing, this doesn't happen. Is this a bug in the framework or am I doing something wrong Alright, I finally just decided to implement a custom ComboBox that gets around thi ...Show All
SQL Server Calculated members not shown on browser
Hi, I have created some simple calculated members. But when i drag the parent hierarchy in to the browser window, it does not list the created members like the listing of members created by BI Wizard. Please help. Here is the sample script . CREATE MEMBER CURRENTCUBE .[DIM SCENARIO].[SCENARIO COMPARISONS].[Ladder vs Actual FY] AS ({[DIM SCENARIO].[SCENARIO_PARENT].&[LADDER]}-{[DIM SCENARIO].[SCENARIO_PARENT].&[ACTUAL], ParallelPeriod ([DIM CALENDAR].[FY_YEAR],-1,[DIM CALENDAR]. CurrentMember )}), FORMAT_STRING = "#,#" , VISIBLE = 1 ; Regards, Jiju ...Show All
