wuytens's Q&A profile
Visual Studio 2008 (Pre-release) wcf or wse3.0
I have a simple but deciding query. I need to implement web service security(message level). Should i use WCF or WSE3.0 for this.Which one is latest. Also is the release version of WCF out.If yes, its version number please. Regards What is the level of effort and risk for upgrading services implemented using WSE 1.0 to WCF versus WSE 3.0 For a near term deliverable would it be lower risk to go the WSE 3.0 route for now and tackle WCF in a futuer release TIA, Chip ...Show All
Visual C# How can I code this?
I am writing a text editor. I would like to have a combobox with all the fonts, and I would like the font to change in the rich text box to the one the user selected. How can I code this Matt Error 10 Operator '&' cannot be applied to operands of type 'System.Drawing.FontStyle' and 'bool' C:\Documents and Settings\HP_Owner\My Documents\mRibbon\Sample\Form1.cs 85 17 Sample Thats what I get. Something seems to be wrong with this line: if (style & FontStyle .Bold == FontStyle .Bold) Matt ...Show All
Visual Studio Team System Team Build fails with 0 errors?
I've noticed that in a Team Build, if you use a task like <Exec> with ContinueOnError="true" and it fails, even though the log at the end of the build says Errors=0 (the error was "converted to a warning"), Team Build still sets the status of the build as Failed when it clearly has succeeded. What gives The success/failure of a build is determined by the Team Build logger, which relies on various targets from Microsoft.TeamFoundation.Build.target getting executed. I think you should be able to get your build marked as passing if you make sure to execute a target named "BeforeCompile" and one named "BeforeTest". Internally, these tell the v1 logger that it h ...Show All
.NET Development ADO Recordset Getting Closed in C#
Hi, I am working with ADO / C# and am encountering a problem where I get an error: "Operation is Not Allowed When Object is Closed", when trying to access a recordset. I am making a stored procedure call ("GetNextCustNo"). The stored procedure updates a key table and then returns the next unique key value. The code below calls the stored procedure. If I change the stored procedure so it doesn't update the table, ie it's a straight select query there is no error in the following code. But as soon as I change the value in the stored procedure via either an update,insert, or delete it seems to close the connection. The same code was working fine in VB. Has any one encountered a similar problem. Thank you. ADODB. C ...Show All
SQL Server SP2 Slows Down Time Intelligence
Can somebody else verify that performance decreases in SP2 where time intelligence is concerned. Below is my simple repro on AdventureWorks. I already have an open question in a prior thread to ask why [Year to Date] is so much slower than [Current Date] where fiscal semester [2004][1] is concerned. [Current Date] runs in 2 seconds after clearing the cube cache. My question for this thread is why did my [Year to Date] query go from 1 minute in SP1 to 2 minutes in SP2 Does anyone know how to get the 2 second execution that I would expect from a [Year to Date] query Step 3 below runs in 1 or 2 minutes depending on if you have SP1 or SP2 Step 4 runs in 2 seconds 1. Create Time Intelligence Select Ti ...Show All
Visual Studio 2008 (Pre-release) WCF call fails sometime in CAB application
We are currently developing a software using both CAB (Composite Application Block) and WCF. The client side GUI is written based on CAB. However, it is found that if WCF callback is used, sometime WCF client side call will raise "TimeoutException" exception. I have checked the WCF log file and found that before the exception was raised, the message was already received by the client side; but for some reason, the message was not processed until timeout. If I not to use CAB, it seems everything works fine. I think a dead lock could be generated by ObjectBuilder, which is the main part of all the application blocks. I have wrote a small test program which has the exactly same problem. I cannot locate the problem precisely ...Show All
Visual C# Generic object caster
hi there, i have a superclass CONTACT and subclasses COMPANY, CC, TRUST, LOCALAUTHORITY. I want a generic method/class that takes as input a CONTACT object. This method must determine which subclass this object is (i.e. COMPANY, CC, TRUST or LOCALAUTHORITY) and then return a casted version of the same object. e.g.: MessageBox.Show(CastDown(myContact).idtype.tostring()); public T CastDown(CONTACT theContact) { if company return (Company)theContact; } I can't seem to get it working Can someone help me out Do I need another class or just a method There is already a "castdown" operator in C# known as as . It returns null if the type doesn't match what you expected it to be. If all you wan ...Show All
Visual Studio Team System Failed to create New Team Build Type
Hi, I trye to create a New Team Build Type, but it does not work. An error box is displayed with the next message: "Failed to retrieve data from the server. Please verify that the Team Foundation server is running and try again." But the TFS is running normally, and I work without any problem. I'm using a workgroup version of the TFS, and I'm an administrator of the Server... Can you help me please I have directed this problem to the Version Control team and will get back to you soon. In the mean time I noticed that you did not inform me of your ability (or inability) to access version control via source control explorer (or the command line for that matter). Would you mind playing around w ...Show All
SQL Server a sql statement
This does not display more than 10 rows from the able, varchar(2000) is big enough to bring more rows, where might the problem mbe Declare @ColList varchar(2000) Declare @CrLf varchar(10) Select @CrLf=Char(13) + Char(10) Select @ColList = COALESCE(RTRIM(LTRIM(@ColList)) + ', ' + @CrLf, '') + MyName From MyTable Select @ColList If you are using SQL 2005 please check the following: Tools -> Options -> Query Results -> Results to Text Maximum number of characters displayed in each column (the default is 256) Tools -> Options -> Query Results -> Results to Grid Maximum Characters Received Non XML data (the default is 65536) In SQL 2000 in QA Tools -> Options -> Results ->M ...Show All
SQL Server How to remove all non-system service broker objects
I'm looking for a tool or script that can wipe a database clean of any and all user configured service broker objects. I've got two environments, Development and QA, that I need to have parallel service broker configurations. Each environment is hosted on a different set of servers. I need to make sure the Development environment looks exactly like the QA environment from a Service Broker perspective (other than the specific service broker instance references in the installed routes). I've got a script to build the objects that I want, but the Development environment is full of artifacts of abandoned experiments. Before running the creation script in Development, I'd like to start with a clean slate. Recreating the Development databases ...Show All
SQL Server About Security between views and tables
Hi, I've got a table T1 and a view V1 based on T1's rows (but not all rows). I've granted users to do update and select on my View V1. But i don't want users directly update my table T1. then, i log as a standard user in Enterprise mgr, and open my view V1. I modify a value in a field, and when i validate, an error occurs saying i'm not allowed to make Select neither Update on table T1. Is there a way of doing this (sql 2000). thanks for the link. yes my view is updateable, and when there's no grant restrictions, it works fine. My problem is the following : I'm working on an ms access migration to sql 2000. Then, i use my view as an attached table in access, an users can modify some values. But i don't ...Show All
Windows Forms Datagridview image column
Hi all, I have been trying to get this code to work to no avail The code below I believe should put an image into a datagridview image column , but I could be wrong.. I tried to use byteArrayToImage(e.value) but all it says is systems.drawing.bitmap - it's not giving bytes, it's giving a string. What do you reckon I'm missing to return the byte array Private Sub dgvUsers_CellFormatting( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles dgvUsers.CellFormatting Dim _cell As DataGridViewCell = New DataGridViewImageCell If e.ColumnIndex = 1 Then dgvUsers.Columns(e.ColumnIndex).ValueType = GetType (System.Drawing.Bitmap) _cell.ValueType = GetTy ...Show All
Windows Forms How to set false enabled button?
I want to set false enabled button when I click another button but I don't know how to do that... this is my code: button1->Enabled(False); but it doesn't work...Any suggestions joeycalisay wrote: let me guess button1->Enabled = false; I also tried this but it doesn't work...Other suggestions ...Show All
Visual Studio Tools for Office How would I run a shared add-in from a network location?
Hello - I believe there's a way to run a shared add-in from a network location, correct I developed an add-in for MS project 2003 - I'd like to be able to update the add-in as necessary instead of making the users install it everytime. Is there a way to do this Thanks ... Office add-ins are COM add-ins and must be registered so some kind of installation/registration must be done on each client, at least for the first time. You can do some installer that instead of copying the assembly to hard disk just registers the assembly from the network location as COM (ActiveX) component and as COM add-in. If you keep the AssemblyVersion attribute constant and only change the AssemblyFileVersion to version builds ...Show All
Software Development for Windows Vista Computer freezes when using Vista
I am testing Windows Vista RC1, and I tested Beta 2 too. In the two builds, I have the same major problem while working in Windows: unexpectedly, without doing anything special, the screen freezes completely, and I have to reset power. As far as I know, it doesn't create any report/log/debug to send. When I restart Vista, it reports some corrupted files (normally apps that I was running, shortcuts or folders). ScanDisk can't correct most of that errors, leading me to reformat the partition where Vista is installed. I have no problems installing Vista, and I have no performance problems while using it. I have no problem using XP too (XP is installed in a separate hard drive). I don't know if this is the right place to show my problem. If yo ...Show All
