SuperFox's Q&A profile
Visual Studio Team System Code Analysis in Team Build giving error: No Rules Selected
I've got a Team Build project setup with the <RunCodeAnalysis> set to Always. However, it is giving me an error CA0051: No Rules were selected. How do I inform Team Build which rules to use Do I have to specify this in the build project file I have Code Analysis Rules setup for the Check-In policy in Source Control, I guess I had assumed/hoped it would pull them from there. If I do have to set them up in the proj file for the Team Build, is there a sample somewhere I can look at Out of curiosity, do you have any rules selected within your project's Code Analysis settings My understanding is (and I could be wrong) that if you're using the <RunCodeAnalysis>Always</RunCodeAnalysis> settin ...Show All
Windows Forms Non ASCII characters
Hello, I need to output some non-ascii characters in some of my strings. Basically, chemistry formulas like H2O, NH3 etc. I need subscript 2,3, and possibly 4. Where is this going to be displayed I've become a big fan a outputing all text that needs to be formatted as HTML. There it's just "H<sub>2</sub>O". Then, instead of requiring that your users have some particular font installed, all they would need is a browser --- which everyone computer in the world already has. ...Show All
SQL Server EnterpriseLibrary Multi Owner Stored Procs DeriveParameters Failure
Hi I am having diffuculty with multi owner stored procs with enterprise library deriveparameters. Eg: Create proc dbo.test @p1 int as select 'hi' create proc bob.test @p1 int as select 'hi' Deriveparameters appears to tell us the wrong number of parameters. I gather it is getting ALL the parameters for all procs called 'test' regardless of the owner. If anyone can give me some guidance on this I would appreciate it! Rich Ok, thanks for getting back to me. I fully agree that specifying owner is best practice, and this has only cropped up since I (as DBA) implemented a change to force all developers work on their own schema. The way this should work as I understand it ...Show All
SQL Server How do i find all subscriptions
Hi There I need to get rid of all subscriptions (including cleaning up all associated sql jobs) for RS 2000 and 2005. We have hundreds of reports , going through them 1 by 1 is not an option. When i look at the system tables, i join Subscription to Catalog, but i find reports with subscriptions in the system tables but when i go to Report Manger there is no subscription for the report. In a nutshell , how can i see all valid subscription for all reports in RS, how can i delete all of them and make sur eall sql jobs associated etc are deleted. Thanx Build a cursor to iterate over all Reports (Catalog) Then set up a delete statement in interation Delete from Subscriptions where ...Show All
Visual Basic I can't edit my project in diff machine
I have a project using VB 2005 in my computer but when I'm editing it on another PC using VB 2005. It doesn't update. And the debugger said that the original code is not the same. How can I do the edit in different machine. One in my office and one in my home. maybe you can try this way: 1.Rebulid your project. 2.if your project used DLL in References,please set that dll's "Specific Version" to "True" ...Show All
Visual Studio 2008 (Pre-release) Where to get FindPrivateKey.exe?
im using latest SDK and play with some samples. when run the setup.bat, it fail at locating FindPrivateKey.exe. Obviously, this file is not in my C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin and i searched my whole machine still can't find it. Anyone know where to download it and why it doesn't come with the SDK installation thanks advance ...Show All
Visual Studio Express Editions email snippet "send" does not complete
Hello, I am trying to use the email "snippet". First I found that the snippet is not compete. It did not include code to send the network credentials (username and password) to the email server. Even with that code added, when I send an email, the program hangs and never returns an error. Here is the code. Thanks for any suggestions! Dim server As SmtpClient = New SmtpClient( "mail.myserver.com" ) server.Credentials = New Net.NetworkCredential( "username" , "password" ) Dim email As MailMessage = New MailMessage() email.IsBodyHtml = False email.From = New MailAddress(" myemail@myserver. com ") email.To.Add(" myemail@ myserver.com") email.Subject = "subject" email.Body = "this is my email me ...Show All
Visual Studio 2008 (Pre-release) How to realize, if my own dependency property is already registered?
Hello, I have own dependency property defined. I use it in ResourceDictionary. public String StyledContent { get { return ( String )this. GetValue ( StyledContentProperty ); } set { this. SetValue ( StyledContentProperty , value); } } public static readonly DependencyProperty StyledContentProperty = DependencyProperty . Register ( "StyledContent" , typeof( String ), typeof( Button ), new PropertyMetadata (string. Emp ty )); If I use it in one window, it works well. But if I create another window from the first one (it uses that dependency property too), I get an exception Cannot convert the value in attribute 'Property' to object of type 'System.Windows.Dependen ...Show All
Visual Basic looping through recordsets in vb.net
Hi, I am trying to loop through 2 sql tables and update one table with data from the other if a condition is true. I know how to do this with vb but not with vb.net and can't find any help or examples. I have established a connection to the server to get the data but don't know how to loop through it and make the necessary updates. Can someone give an example Here is what my vb function looks like below, I would like to be able to transform this into vb.net and use in a script task in my sql package. Dim db As Database Dim rec1 As Recordset Dim rec2 As Recordset Dim test2 As Boolean Dim AppID As String Dim SortKey As String Set db = CurrentDb Set rec1 = db.OpenRecordset("qryScoresAll") Set rec2 = db ...Show All
SQL Server DTS Fully process dimensions code
Using the following code to fully process dimension in a catalog on SQL Server 2000. for each objDimension in dsoDatabase.Dimensions dsoDimension = objDimension dsoDimension.Process processFull Next However this appears to do an incremental process of dimension rather than full process. (I would expect the cubes to be unprocessed after a full process. Whats wrong with the code. Cheers. Mark. I assume you are using vbscript to process. If so you need to reference to the Constant "processFull" so that it applies it correctly. Otherwise it always just does it as a process default. ...Show All
Visual C# How to get App.Config file path if it is created along .cs files
Hi In my C# application, I have created an App.config file in C# source file path and this is no way related to the assembly or exe location. when I try using System.Configuration's method and properties I always have found it returns the assembly/exe path but I need to get the source path. Note : Main idea behind this is, I have created some xml elements in App.Config file and I will load this xml using ConfigXmlDocument instance. Thanks.. GopX just add ".config" to the assembly name you get back. As for the configuration subsyste stuff - just load the config file in an XML dom and grab your stuff. ...Show All
Visual Basic Populating DataGrid w/Data in an In-core Array
I am writing a VB 2005 web app and want to display some data in a tabular form. I would like to use the DataGrid control. The data that I want to put into the grid is in a two-dimensional array ... call it Data(10,5) that has already been set-up. I cannot figure out how to populate the DataGrid with this data ... I'm not using a database system or anything like that ... I simply have the data in memory in the Data array. I'd like to do somehting like: For i = 0 to 10 For j = 0 to 5 DataGrid(i,j) = Data(i,j) next next But of course that won't fly. Is there a simple way to populate the grid with the Data array Thanks. ...Show All
Visual Studio Express Editions Voice Talking
Hey, How can I make a program "talk" Like say "Hello, Welcome to this program." Anyone yes, that's what I meant but completely forgot the word for it! :-) I'm not sure if there is an SDK for it..let's see what we can dig up.. perhaps this http://www.microsoft.com/downloads/details.aspx FamilyId=5E86EC97-40A7-453F-B0EE-6583171B4530&displaylang=en ...Show All
Windows Forms Text Rendering on 1600x1200 resolution - Windows 2000
I have developed a windows application and when I have my client run it on his laptop which is set to 1600x1200 resolution with Windows 2000, it enlarges all of the labels on the form and buttons so that the window is unreadable as you can only see part of the text. However, if I run the application on XP or 2000 at a different resolution, it appears just fine. Any ideas on what can be done so that the application looks "normal" at his 1600x1200 resolution If he drops his resolution, the application looks fine. My guess is that the wide screen resolution is distorting the text. Also, this is with VS2005 and I am using Verdana as my font style on all my forms. Ideas or comments Thanks, Greg ...Show All
Internet Explorer Development Internet Component Download Broken under IE7?
Hi All, I have a web application that uses Internet Component Download to install a client-side component. The distribution unit for this component contains an OSD file that declares a dependency on another distribution unit. Both the main and dependency distribution units (and the components they contain) download and install properly under IE6, but fail under IE7. By inspecting the code download error log file for the component, I can see that the reason for the failure is 'ClassFactory cannot supply requested class' (0x80040111), and appears to happen when attempting to download and install the dependency distribution unit... but as far as I can determine the dependency distribution unit is never actually even downloaded. If I remove ...Show All
