skrsanac's Q&A profile
Visual Studio Team System Error "Cannot pass a GCHandle across AppDomains." while creating New WorkItem in TFS with SP1
HI, I am getting following error while creating WorkItem through WorkItemTracking API. " Cannot pass a GCHandle across AppDomains. Parameter name: handle " I am having single server installation of TFS. Previousy I read that this is a known bug and it is resolved in SP1. I installed Sp1 on my server. But I am still getting the same error. Please help. Thanks in Advance.. It's Version in GAC is "8.0.50727.147". But installation of SP1 went without any error. What can be the cause Do I need to re-install SP1 Please suggest.. ...Show All
Visual Studio SandCastle - MRefBuilder (IndexOutOfRangeException)
Hi, silly question, but does 'SandCastle' work with the XML comments in a VB GUI application I ask because when I tried, I get the following error (which may or may not be related to the fact that my assembly is a reasonably complicated VB GUI app). MRefBuilderStatic (v2.0.2459.30849) Copyright Microsoft Corp. 2005 Info: Loaded 1 assemblies for reflection and 5 dependency assemblies. Unhandled Exception: System.IndexOutOfRangeException: Index was outside the boun ds of the array. at Microsoft.Ddue.Tools.Reflection.OrcasNamer.WriteProperty(Property property , TextWriter writer) at Microsoft.Ddue.Tools.Reflection.OrcasNamer.GetMemberName(Member member) at Microsoft.Ddue.Tools.ManagedReflectionWriter.WriteTypeElements(TypeNode ...Show All
SQL Server Logging Query Messages From ExecuteSQL Task
The ExecuteSQL task makes it easy to capture the resultset of a query or stored proc in a variable. But what about the messages that would normally appear in the Messages tab when running queries in Management Studio or Query Analyzer There must be a way to display and log rowcounts and other messages that a query normally produces. Various package/task logging configrations haven't helped. I've read discussions about logging rowcounts in data flow tasks, but what about capturing messages in ExecuteSQL and other control flow tasks that run T-SQL I only have enough time to dabble in this technology so I may be missing something obvious or approaching this incorrectly. Any sug ...Show All
.NET Development ExecuteNonQuery not working within CLR Stored Procedure
I've written a CLR stored procedure that pulls the results from a SQL stored procedure using a SqlDataReader. I send out the information via a web service and then try to log information returned by the web service using another SQL stored procedure via the SqlCommand.ExecuteNonQuery method. The information never gets written back and I get no exception. Any thoughts on how I can get this to work Thanks. CLR UDF code: [SqlFunction(FillRowMethodName = "FillRow", TableDefinition = "AccountNumber decimal (18, 0)," + "PurchaseOrder nvarchar (50)," + "OrderDate decimal (18, 0)," + "OrderTime decimal (18, 0)," + "VendorCode nvarchar (50)," + ...Show All
Visual Studio Empty Subreport in Table
I have a problem with an subreport. I have master-detail relatinship between tables. My table has three rows, 1st row is table header, 2nd row is Master data and 3rd row is place where I put mine child table(subreport). If my subreport doesnt have any data this row is still visible(empty space), I search all over internet and didnt find resolve for this problem. Im working with Visual Studio 20005. Is there any way for finding out number of rows in subreport, and use that in Visibility expression of the 3rd row Thanks in advance, Alen Husanovic ...Show All
SQL Server Problem installing SQL Express
SQL Server 2005 Setup has detected incompatible components from beta versions of Visual Studio, .NET Framework, or SQL Server 2005. Use Add or Remove Programs to remove these components, and the run SQL Server 2005 Setup again. Loaded DLL:C:\WINDOWS\system32\msi.dll Version:3.1.4000.2435 Product "{2AFFFDD7-ED85-4A90-8C52-5DA9EBDC9B8F}" versioned 9.00.1187.07 is not compatible with current builds of SQL Server.Expected at least version: 9.00.1399.00 I used Add/Remove Progs and used the list in the order suggested to remove all beta versions of VB, SQL, .NET and etc. Nothing is listed. I do have VB6 PRO. I have looked for directories and removed all. I have searched for SQLexpress in the registry and eliminated all I co ...Show All
SQL Server OK, Now a datetime Question
Trying to select from invoices where date is between today and today -30 days WHERE Invoices.Date< DATEADD (d, -30, GETDATE ()) gets no results Does the invoices.date contains date & time Is both date inclusive where invoices.date >= dateadd(day, datediff(day, 0, getdate()), -30) and invoices.date <= dateadd(day, datediff(day, 0, getdate()), 0) ...Show All
Visual C++ Reinstalling VC++ 2005 - New machine
Hi, This week, I acquired a new computer. Before I erase former computer, I installed and configured my development environment. No problems except when I tried to install and configure Visual Studio 2005. Everything went OK except the fact that after successfully compiling a sample C++ application, I cannot run it... I even tried to run a few C++ applications (.exe) I made in the past (out of VC++ 2005 environment on former computer), directly from Windows explorer, and I cannot run them either... Seems something is missing... I compared programs installed between my former machine and my new machine and the only difference I could see  ...Show All
.NET Development Find all TraceSources
I am defining several TraceSource Objects throughout my application: TraceSource ts = new TraceSource("test1"); When configuring a config entry for each one of them they all trace just fine: <sources> <source name="test1" switchValue="All"> <listeners> <add name="myLogger" /> </listeners> </source> </sources> But is there a way to configure a listener to log every TraceSource (Please note that I am not talking about assigning a listener to several TraceSources (I know about SharedListeners), I really mean EVERY TraceSource.) The reason for this might be that you have several components and you don't know exactly which TraceSource ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Standalone graphics compiling app?
Hi, Is there an application that will allow the artist to convert graphics files to xna format, without the need for GSE Or even with GSE installed, just not having to use the GSE IDE With our previous developments in Java, it was really useful for him to be able to amend graphics then simply replace them in the latest Jar I sent him. At present I have to build the whole thing myself, then upload 17MB each time, which isn't ideal! Thanks, Mark Yeah, its called msbuild. See this post here from Shawn Hargreaves blog and there's been at least one other thread discussing this that you could search for. Cheers, Leaf. ...Show All
SQL Server dynamically creating a select statement
I have a stored procedure in my database which will be used to search for records matching given criteria, such as within a date range or containing a keyword. The procedure stub is looking like this at the moment: ALTER PROCEDURE [dbo].[search] @file_id int, @title_includes varchar(50), @notes_includes varchar(50), @updated_after datetime, @updated_before datetime, @deleted_after datetime, @deleted_before datetime, @size_bigger_than int, @size_smaller_than int AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; -- Insert statements for procedure here --SELECT <@Param1, sysname, @p1>, <@Param2, sysname, @p2> END Ideally I would lik ...Show All
Visual Studio Express Editions I am quite upset I am trying for few hours already
I need to work with some files that professor provided for us from the VB.Net 2005 Express Edition book and I am not Successful I am in the process of Register this product , but then again no luck. I need to see these files in my application I guess I am not seeing them because I did not register. Please let me know what is the way here. When I try Open/Project and so on I am not able to see any files in the bin folder of this particular project is the reason that I am not register. Thank you What files are you looking for... remember that you do need to compile the application to get the files in the bin directories... you should have a release and debug directory under the bin in your project... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D rotation question
These are probably pretty Noob questions but this is my first game ever. I'm looking for the XNA way of doing things for the following: 1. I have a sprite that is a simple rectangle. When I spriteBatch.Draw I rotate the sprite say 90 degrees. I have a bounding box that corresponds to the sprite which I also need to rotate so it matches what is drawn on the screen. Origin is (0,0) but I could make it the center of the sprite if that is easier. I'm guessing I have to use Matrix.CreateRotation (x,y,z ) then a Vector2.Transform This is the part I'm kind of confused on. 2. I want my enemy ship to face the player ship. I have the position of both objects. How do I calculate the angle between them 3. Calculate the distance between two points. ...Show All
SQL Server How to Speed up Database
I have database that contains over 500000 rows. The speed of data excution is extremely slow. Is there any way to speed up the operation Thanks. Hello bonni, use a index on the table columns on which you query. Means for example: Select a, b, c from d where a = 100 then a should be indexed. The same for Update Statements. Best wishes Markus ...Show All
Visual Studio Tools for Office VSTO Addin unload?
Hi, I have developed vsto addin that has a button on toolbar and custom menu options at context menu. The problem I have is periodically main button stops working (when you click on it nothing happens) custom menu options doesn't show at all (I'm using CommandBars_OnUpdate event to insert my menu options) it looks like Outlook unload my addin or addin does not receive any events from Outlook. When you close/open Outlook addin starts working again. Has anyone noticed same behavior with Outlook especially when you run Outlook for a long time 2-3 days Thanks This sounds like the classic "why does my button stop working" problem. This behavior arises if you declare the button obje ...Show All
