Michel Blairon's Q&A profile
Visual Studio Team System circular loop bug in compare tool??
We have been having an interesting problem while checking in a file in team systems. The file in question was modified by 2 different people, and they had been modifying similar code blocks. After the 2nd person tries to check his code in he is presented with the standard files need to be merged and then the 'keep your changes, use server's copy, etc' dialog, but after trying to merge his changes the screen freezes up and there seems to be a lock on the file. Afterwards we forced the changes in manually by copying the file somewhere else, undo checkout, checkout with lock, paste of the copied file and just used that version instead of trying ...Show All
Visual Studio Team System AvoidNamespacesWithFewTypes
I'm rather new to fxCop, and I've managed to resolve all other issuse with my class lib but this one. With this error,what exactly is mean't by "Types". In my class lib I have 6 or 7 methods that deal with pdf files, they all return string, or datatable. Is that what this error is referring to the return types Or is it the number of methods Prescott W. Chartier, Sr. Scientist Naval Undersea Warfare Center, Division Newport Ah, ok. That makes sense to me now. We're in the process of "moving" to a shared code environment and will be implementing stricter coding standards. I h ...Show All
.NET Development How to refresh the CA Server database
Hi, I am working on certificate management services. I created an application for Revoking, Suspending and Resuming the certificates. When i go to test the methods through NUnit i am facing one problem. I wrote a test method that contains suspending the certificate, checking the validatation, resuming, agian checking the validation. all these things are included in a single test. I wrote five to six simillar tests. When i run the tests individualy it is working fine, when i run it as groups some certificates are not resuming. I think this is due to not refreshing of CA. So i need to refresh the (certificate authority server). ...Show All
SQL Server Getting the name of the updated table
I am writing a generic trigger in VS 2005 that selects records from the inserted table, and updates an audit table. I am, however, unable to retrieve the name of the table that the insert occurred on. I am using the following code to select the records, and obtain the name.. Can anyone offer any alternatives to accomplishing this task Thanks in advnace for any help you can provide. Craig SqlDataAdapter tableLoader = new SqlDataAdapter ( "SELECT * FROM inserted" , connection); DataTable insertedTable = new DataTable (); tableLoader.Fill(insertedTable); string insertedTableName = insertedTable.TableName; ...Show All
.NET Development System.Math.Round(Double, Integer) bug?
I'm not sure if I'm missing something here but there seems to be a bug in the System.Math.Round function from the .NET 2.0 For example, this code: Math.Round(4175 /1000, 1) Returns: 4.1999998092651367 The exact same code compiled in VB2003 (.NET 1.1) returns: 4.2 Does anyone knows why is this Thank you SO much for such a great explanation! I tried the FpuPreserve flag and it worked. ...Show All
Visual C++ BK4504: Impact/How to circumvent numeric limit
Hi, for an evaluation of a possible migration from VC++6 to VC++2005, I get for a file with some huge tables foo.cpp(14736) : BK4504 : file contains too many references; ignoring further references from this source The same file compiled without problems for VC++6. Questions: 1) is this critical 2) if yes, a) in which situations b) how can I circumvent the respective numeric limit Cheers Michael 1) I would say no: this is not critical: the only thing that this will impact is browsing for references. It won't impact the correctness of your program. A possible workaround might be to try ...Show All
SQL Server Setting Permissions using Management Studio
We're beginning to use Management Studio with some of our SQL Server 2000 databases and are having difficulty viewing and assigning permissions on objects to roles &/or users. Even though permissions currently exist they do not appear in the "securables" tab on the properties page. In order to view the various permissions you must first manually select all of the objects and they will then appear. Is there some way to get Management Studio to automatically display the objects that currently have permissions setup for the particular role or user Basically, I'm looking for the same functionality as the permissions button gave fr ...Show All
Windows Forms Problem with UserControl Showing up in IE
I have a user control I've created. On a remote machine it is getting downloaded and shows up in IE fine. On my Development machine, where I am serving the page and object from, I intermittently run into problems with it not showing up in IE. At the moment I'm stuck with it NOT showing up. Reboots notwithstanding. Both IE are version 6. In the WWW ...Show All
Windows Forms Cookies
Hi All, Is there a way for me to read/write to cookies generated by my web application using my Win32 Application Thanks in advance ...Show All
SQL Server sys.objects vs. sysobjects in master..sp_ stored procs
use master go create procedure sp_GetObjects as select * from sysobjects ; calling this procedure from different databases will return different results (behavior similar to 2000). use master go create procedure sp_GetObjects as select * from sys.objects ; calling this procedure from different databases will return results for master db only... (ditto for all other sys. catalog views) how can I create database agnostic stored procedures using the new catalog views thanks! Clifford Dibble wrote: BTW - In SQL 2005 you can GRANT/DENY/REVOKE at different levels of scope. This can be an ...Show All
Software Development for Windows Vista WWF or Skelta
I need to design a workflow application. If we set aside the fact that the WWF is still in beta phase, what would you recommend ; skelta or WWF. I think that WWF misses some features like email etc but has a strong support. Skelta makes the work very tedious like mentioning the workflow variables in different xml's, using its own libraries to access database etc. Please give recommendations with reasons in support Thanks in advance Skelta's next major version code name Aquilla is going to be completely based on WF framework, and will provide complete migration path from the current version ...Show All
Windows Forms DataSource XSD Problem
Every time I make a change to my datasource xsd file, it automatically sets the CommandCollection access level to protected. This causes me to get compile errors for "Inaccessable due to protection level" and I have to go change it to public. Am I possibly doing something wrong in the way the xsd is set up, or is this unexpected behavior thanks dave The DataGridView doesn't support subsequential drops from the Data Sources Window. You can use the Edit Columns Smart Tag to add the additional column to the DataGridView. If you created a new DataGridView, but dragging the table to the form d ...Show All
SQL Server Which AS 2005 Edition is running?
How can I find out whether Development or Enterprise Edition of AS 2005 is running ...Show All
Visual Studio Team System FxCop Visit* methods
Hi Guys, Does any one have any documentation about what visit* like visitmethod do I need to check if any method uses lock in any method or not through custom rules in FxCop. Any pointers will be of help. Thanks in advance. Hi Rajeev, There currently is no documentation on what the Visit methods do. Basically all that the Visit methods do is walk the tree representing the binary (e.g. VisitType visits all members inside the type). upon overriding these methods you get a chance to inspect that part of the tree. Make sure to call base.Visit* from your override to ensure that the complete tree ...Show All
Visual Studio Team System Can't connect to the tfs
hi, in our project we work (five users) with the team foundation server (RC). All is good and we haven't problems at all. In that time a colleague ask me, whether he could connect to the server. i said to him that the only thing he has to do is to install the team explorer and connect to our project server. He get the following error even though he works in the same domain. Error: TF31002: Unable to connect to this team foundation server: ServerIP conditions: Team Foundation Sever (RC) on Windows 2003 Server (Application and data tier on the same maschine) Any ideas. Y ...Show All
