Chris M Turner's Q&A profile
.NET Development Can a WSE 3.0 client talk to a WSE 2.0 server
I have developed a new client webservice using .net 2.0 so I had to upgrade to WSE 3.0 security. The webservice that I have been using is secured with WSE 2.0. Is it possible to encrypt and sign my usernameToken using 3.0 in a way that the 2.0 server will accept the message. I have had no luck so far and I am starting to think that is may not be possible. If anyone know how this can be done please advice. The code I used in my 2.0 clients to sucure the message follows: Dim token As New UsernameToken( "name" , "password" , PasswordOption.SendNone) Service.RequestSoapContext.Security.Tokens.Add(token) Service.RequestSoapContext.Security.Timestamp.TtlInSeconds = 60 'message signature Dim tokenKeys ...Show All
Visual Studio Team System I am have a problem with getting TFS to consume my web service on WorkItemChangedEvent
I have a web service installed on my local IIS. I can access it via IE. But TFS does not comsume it. How do I go about seeing what the TFS eventService is trying to do I am pasting the Subscription (which I ran before changing a work item in the IDE) and my web service code (both cut from a blog referenced on this forum). Thanks in advance for any debuging suggestion. Subscription... static void Main( string [] args) { // Connect to TFS TeamFoundationServer tfsServer = TeamFoundationServerFactory .GetServer( "crvl1-3s184" ); //TeamFoundationServer tfsServer = TeamFoundationServerFactory.GetServer // (ConfigurationManager.AppSettings["crvl1-32184"], new UICredentialsProvider()); ...Show All
SQL Server How to upload a file to a Server URL using Web Service Task?
Hi, I have been trying to setup a web service task to use my http connection manager that connects to a server url. What I want to do is to upload a file to a web server... can this be done using web service task and what is the WSDL and what happens when my target server usis SSL so instead of http, it should use https I need help with this one... can't quite imagine how to get things rolling.. Thanks in advance! Kervy Thanks for that info, I'll try to play around with it ... I'll come back with some news Kervy ...Show All
Visual Studio Express Editions Help on AxHost.InvalidActiveXStateException
Help!!! I am using VS Express and I got a form. I included a DLL, (SMSCCSDK.dll), in my project. It generated 2 dlls, AxInterop.SMSCCONNECTIVITYSDKLib.dll and Interop.SMSCCONNECTIVITYSDKLib.dll. When I am using any classes in Interop.SMSCCONNECTIVITYSDKLib.dll, it works fine, but when I am using AxInterop.SMSCCONNECTIVITYSDKLib.dll, it throws an exception, AxHost.InvalidActiveXStateException in the runtime. I can't figure out where the problem lies. Please help. I am fairly new to VB.Net Public WithEvents SMPP_Handler As AxSMSCCONNECTIVITYSDKLib.AxSMPP Me.SMPP_Handler = New AxSMSCCONNECTIVITYSDKLib.AxSMPP Sub SMPP_Handler.SMSCResponseTime = 10000 (throws exception here) End Sub Thanks in advance, Noorul ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Putting a hole in a sprite
Hi all I am currently wondering how I could put a hole through a sprite "on the fly" during gameplay, such that the background behind will show through Some sort of blending, or combination in the spritebatch class I suppose, but I havn't yet worked out how. Any suggestions Chris J. Actually, recently I've made an example on exactly what you described. Here it is: http://www.hot.ee/qstorage/AlphaTest2.rar There are 2 different ways to do that: 1. With the separate mask file (you apply a predefined masking texture to another texture). The advantage of this method is that you can make a hole of any shape (just edit the mask file). 2. Without the mask texture, just using some s ...Show All
Visual Basic collection vs. array
hello, what is the difference between a collection and an array i know array well, but don't have a clear picture on what a collection is. i've only heard that it comes from OOP. thanks. Hi, I think a collection can have items ( objects ) of more than one type in them in the similiar way that a STRUCTURE or a CLASS can. Another thing as well is an ArrayList. Regards, S_DS ...Show All
Software Development for Windows Vista ActivityTrackingPoint / ActivityDataTrackingExtract
I have created a very simple Tracking Profile for my workflow as attached below. I am trying to track on Public properties from my Activity, yet when I run an instance I get an error saying it is unable to find this property on the actualy Workflow instance. eg. it will say cannot find "SampleWorkflow.Property" when I expected it to look in the current activity for the properties, not at the Workflow instance level - Does this make sense to anyone else < xml version="1.0" encoding="utf-16" standalone="yes" > <TrackingProfile xmlns=" http://schemas.microsoft.com/winfx/2006/workflow/trackingprofile " version="1.0.0.0"> <TrackPoints> <ActivityTrack ...Show All
Visual Studio Team System Hi, could i catch the "return null" statment in the code
Hi All: I want to create a Rule, the detail is: "if you declare a method, when the return type is Array, String or Collections, you should not explicit return null in the code, otherwise, some unpredictable result maybe will happen." For example: A method like: public int[] tryMethod() { return null; } the method violates the rule, because the method's return type is Array, but in the code, it explicitly returns null in the code. My question is: could i get the "return null" in the IL code by view the IL instruction. I had tried to get it, but i only get the "ret" instruction, i couldn't get the real return value, so could help me to find it, I'll be very g ...Show All
Visual C# Object Test bench is not visibile
Hi, I am using Visual studi team system RTM version(8.0.050727.42). I am working with a e-commerce project. I have written some classes in Business layer. I need to check it by creating objects of these classes before creating aspx forms and checking it from there. I heard that object test bench is useful. But I cant see any sign of this facility.That is, I cant see 'create Instance' option when I right-click on classes from class view or class designer. can anybody explain why it is like this Thanks in advance... akajal You must install the J# components when installing visual studio in order to get the OTB to work. OTB was written by the J# guys and thus requires the J# co ...Show All
Windows Forms User control - The constructor should not run in design time
Hi, I am trying to make a user control that consist in a combobox with a certain table. The constructor loads the combo with a table with a dataset that is defined at run time. So, when I put the control at a Windows form I have an error because there is not dataset defined at this moment. The solution : the constructor must run only at runtime. Is it possible Thanks in advance. Hi, you could check the DesignMode property to check whether control is in design mode or running: if (!DesignMode) { // fill dataset } However, putting such code in constructor isn't a very good idea; you should try to expose a separate method for filling the dataset, which you'd call ...Show All
SQL Server DBCC CHECDB REPAIR does not fix errors ?
Hi There This is on Sql Server 2000, SP3. When i run DBCC CHECKDB i get the following errors: ============================================================================================ Server: Msg 8928, Level 16, State 1, Line 1 Object ID 2, index ID 255: Page (1:76914) could not be processed. See other errors for details. Server: Msg 8939, Level 16, State 1, Line 1 Table error: Object ID 2, index ID 255, page (1:76914). Test (IS_ON (BUF_IOERR, bp->bstat) && bp->berrcode) failed. Values are 2057 and -1. CHECKDB found 0 allocation errors and 2 consistency errors in table 'sysindexes' (object ID 2). CHECKDB found 0 allocation errors and 2 consistency errors in database 'OLTP3PRO'. repair_allow_data_loss is the min ...Show All
SQL Server Question for creation the user defined data type easily like mysql
Hello, I cannot find out to create enum data type in SQL Server 2005 Express. Can I easily create the enum type just like the MySQL does.(please the MySQL example below) CREATE TABLE myTable ( myid INT UNSIGNED NOT NULL, myclass ENUM('FIRST','SECOND','THIRD') DEFAULT 'FIRST' PRIMARY KEY(myid) ); The ways to do this are either with another related table, if you want the ENUM to actually be numbers (like an ENUM in a functional language) which I would suggest against. (I don't know anything about MySQL...) But if it is character data you are after, use a check constraint: CREATE TABLE myTable ( myid INT NOT NULL, myclass varchar(6) CHECK (myClass in ('FIRST','SECOND','THIRD')) DEFAULT 'FIRST' PRIMARY KEY(myid) ); Also, th ...Show All
Visual Studio VC++ 2003 Code Model not returning certain functions - please help!
I am using Visual Studio .NET 2003 and writing an add-in to the IDE. I am writing in C++ and am experiencing difficulties with the following problem: Certain functions are not being returned by the VC code model in it's code elements collection. =============== Here is my understanding of how this all works. The development environment (DTE) is described with a Code Model. This is similar to my previous work where I was working with XML documents described with a Document Object Model (DOM). The Code Model describes structures that are commonly seen in source code. This would be classes, functions, variables, parameters, enumerations, structures, and more. The DOM equivalent would be words, paragraphs, sections, chapters, titles, and more ...Show All
SQL Server How to schedule to run Integration Packages using SQL Agent/Job?
Hi Folks, I deploying a couple of integration packages which needs to be run sequentially. Currently, I quite puzzled how come i cannot run them as a SQL Agent job. It always fail with "Executed as user: Servername\Administrator. The package execution failed. " But if I had put import these integration packages into the SQL Server 2005 Integration Services FileSystem, it does run but i need promptly as there is a dialog requesting whether to execute the packages. Is there a way to automate the running of these packages through SQL agent. Pls help need to get it up and running asap. Thanks first. Hi garynkill23, This is complicated. It touches a lot of moving parts in your SSIS package, SQL Servers, and enterprise ...Show All
Smart Device Development deploying
Hello, how can i install sql ce and cf 2.0 when my application is installed with the same file, without the user to run diffrent cab files. thnx in advance. and how can this be done by using msi installer files is there any free software for this or is there a program implemented in vs 2005 thnx in advance. ...Show All
