Klaus Hoeltgen's Q&A profile
Visual Studio “Disconnected Context” & VSPackage
I am getting a “ Disconnected Context” error with the vsPackage that I am developing. When a command is invoked I give control to an external program and wait until the External program completes. The external program can take a long time to return control. Once control is returned if I try to access any of the interfaces I get the “Disconnected Context” error. Is this a CLR bug or I am doing some thing wrong How can I fix this error Thanks ...Show All
Visual Studio Team System VSTS & VSTE for Software Developers on same machine?
I currently have Visual Studio Team Edition for Software Developers on my laptop. I would like to try the new Database Professional product and I need Visual Studio Team Suite Trial installed to do this. My question is this. Can I leave VSTE for SD on my laptop and install the VSTS Trial without harming or overwriting my VSTE for SD installation I would like to have both products on my laptop. Thanks - Amos. Richard, Thanks for the response. If I understand correctly, since I currently have VSTE for Software Developers installed, if I try to install the trial edition of Team Suite, it will upgrade my copy of VSTE for S.D. to the trial Team Suite edition If so, will it keep all my current VSTE set ...Show All
Visual Studio Team System exceute precompile command thru team build
Could anybody tell me how to execute the following command thru team build (how the exec command will look like ). The command is to precompile a website and drop at a certain location: -------------------------- C:\Program Files\Microsoft Visual Studio 8\VC>aspnet_compiler -v /EnvironmentMan agement2 -p "C:\Configuration Management TFS\Environment Management2\UI" c:\temp\web where: v is the virtual directory on the server (i.e. EnvironmentManagement2) p is the source code location (after get) ( C:\Configuration Management TFS\Environment Management-082106\UI ) c:\temp\web is the final drop location ----------------- Thanx. well that publi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GameComponent.Draw()... why?
I'm a bit confused about the GameComponent class, and its intended use. It would seem that it would be perfect for inheriting particular subsystems. InputComponent, NetworkComponent, etc... but you wouldn't want to draw any subsystem. So what was the logic behind having a Draw method for GameComponent Did the cart come before the horse, so to speak, with the GraphicsComponent How exactly is GameComponent meant to be used I thought I'd get it straight from the horse's mouth... and I have no idea what's with all the horses in this post. (My suggestions are in third post, if anyone cares). The concern (which is a bit dramatic... it's more of a suggestion) is a design issue. If GameComponents are to be reusa ...Show All
Visual Studio 2008 (Pre-release) Problem when changing BasicHttpBinding to WsHttpBinding WebService blocks
Hello, I'm working in a Tutorial about WCF. I have build a webservice which interacts with a database SQL Server 2005. An a Win32 Client to consume the WebService. Everything works fine, but when I change tu binding form BasicHttpBinding to WsHttpBinding, the webService blocks. I have worked a lot of time to find a solution, but nothing. :-( Here is my contract : namespace BankingService { [ServiceContract()] public interface BankingContract { [OperationContract] [FaultContract(typeof(BankingServiceException))] string DebiterCompteTrans(Transac t); [OperationContract] [FaultContract(typeof(BankingServiceException))] string CrediterCompteTrans(Transac t); [OperationContract] [FaultContract(typeof(Bank ...Show All
.NET Development How To Handle HTTP Header
Hi Experts, How to add a http header which says: HTTP/1.1 200 OK and send it back as response Regards, Suman Assuming that we are talking about a ASP.NET web application the The HTTP status code 200 is set by default unless somewhere in the HTTP request pipeline the StatusCode is changed. If you need to change the status code you should do this by setting the StatusCode property of the Response object. Then you can stop the execution of the page with a call to Response.End(). ...Show All
Smart Device Development Access command prompt in the emulator
Can any way we can go to the command prompt in the emulator. I want's to start one service using services.exe on the command prompt OK try this: public void StartService( string serviceArgs) { ProcessStartInfo psi = new ProcessStartInfo (); psi.FileName = "services.exe" ; psi.Arguments = serviceArgs; Process .Start(psi); } ...Show All
Software Development for Windows Vista Problems incorporating WorkflowCommitWorkBatchService
Hi I'm currently building a state machine workflow with the OOB web service activities. I'm using the OOB persistence service and i'm also saving information into a custom data model. To ensure the consistency between the workflow state and the custom data model I am following the work batch approach. This works fine however I have the following problem with this arrangement. The problem is that I want to let the client using the web service know if there were any problems commiting the work, ie: I want to give them back a soap exception indicating any failure. Is this possible using these standard activities and services Just as an example of the problem, I found this problem when I moved my source to a ne ...Show All
SQL Server Data Dictionary
Hi, Is there anything analogous to a "data dicitionary" tool that is bundled with SQL Server 2005 Something that could be used to store and manage enterprise data meta-data. Thanks, JR Hi, Thanks for the info. May I assume that these system tables and their contents are officially documented somewhere Any pointers to any such docs would be greatly appreciated. Regards, JR ...Show All
Visual Studio 2008 (Pre-release) TreeListView dosen't work with HierarchicalDataTemplate
Hi everybody, I want to create a TreeListView-control like the "property-tree-explorer" in XAMLPad. So, I started using the TreeListView implementation from the ATC-Team and removed the explicit declarations of TreeListViewItems in the XAML-file. Instead I set the ItemsSource-Property of the control to an oberservable collection (which has an ObservableCollection for second level items in it)and set the CellTemplate of the first column to an HierarchicalDataTemplate. Here's the XAML-code of the TreeListView <l:TreeListView x:Name="TreeListView"> <l:TreeListView.Resources> <HierarchicalDataTemplate x:Key="CellTemplate_Name" DataType="{x:Type l:TestType}" ...Show All
Audio and Video Development Getting Absolute Positioning from Photoshop into my Markup.
I receieved alot of art elements today and I am trying to find a good way to position all of the items in the Photoshop .psd in my markup. Is there a way to have photoshop tell me the absolute position of items in a .psd relative to the whole document How is everyone translating from .psd to markup accurately Up untill now I have just been eyeballing it but I would like a good formula to go forward with. Thanx all! Spent most of the day developing a system for this...it works very well and will improve my authoring speed. Basically you use Imageready to define "Slices" You make up,over,down states for them and then you export as XHTML and it gives you the perfect cuts and a .txt with all of the absolute coordinate data. So for ever ...Show All
Windows Forms Find width and length of an image w/0 loading it
Is there away to find the width and length of an image without loading it I can't use this method because it loads the image: static void GetDimensions( string imagePath, ref int height, ref int width) { width = System.Drawing. Image .FromFile(imagePath).Width; height = System.Drawing. Image .FromFile(imagePath).Height; } This code is brittle and only works on .bmp files but gets the job done without loading the bitmap: using System.IO; ... public static Size GetBmpSize(string path) { using (FileStream fs = new FileStream(path, FileMode.Open, FileAccess.Read)) { byte[] hdr = new byte[0x1A]; fs.Read(hdr, 0, hdr.Length); return new Size(BitConverter.ToInt32(hdr ...Show All
Audio and Video Development MFCopyImage
hi all when copying a YUV (nv12) sample from src to dest using MFCopyImage, for some reason it turns out to be greyscale even though though the original image has color. The UV bytes are not being set properly...anyone else have this issue Hi Mike, Thank you for your feedback. I think the image format was a problem. I tried using IYUV instead of NV12 and I actually got color but I noticed some things had changed. For one, only one call to MFCopyImage was needed (2 would crash the program). Also I had to multiply the width by 2 in the MFCopyImage argument. I was under the impression that MFCopyImage copied only the Y plane first And why did I have to multiply the width by 2 The original yuv stream is ...Show All
SQL Server Scheduled Subscription recurrence
I've read the blogs on setting up a scheduled subscription that fires more than once a day. It blows my mind that you actually have to create a separate subscription for each time you want the schedule to fire in one day. Forget duplicate notifications, how do you handle the resulting duplicate subscriptions (except for the start time) from a subscription management standpoint If we created a scheduled subscription for a user that fired once per hour in our Subscription Management interface, when the user returned to maintain that subscription they would see 24 copies of virtually the same subscription ( ) The only solution I see to this is to create a "dummy" subscriber (with the same E-mail address etc...) that corresponds to ...Show All
SQL Server creating and scheduling job for SSIS
Hi All I want to create and schedule job for my SSIS packages. But I have no idea how to do that. Paarul wrote: Hi All I want to create and schedule job for my SSIS packages. But I have no idea how to do that. Search for SQL Server Agent and SSIS. ...Show All
