K.S.RamakrishnaPrasanna's Q&A profile
Visual Studio Team System Unit Test Wizard on WPF based Window and User Control
Hi, I am trying to do auto generation of unit test cases for my WPF based project using the VSTE Unit Test Wizard. However, when I tried to use the wizard it seems like it displays only the project's namespace without any of the classes. In effect it doesn't generate any of the test cases for the project at all. Is there a patch for Visual Studio Team System to allow me to auto generate test cases for my WPF based projects Thanks and Advance. Regards, Alex Hello Alex, Unfortunately test generation for WPF projects is currently unsupported. We will be addressing this issue in future versions of Visual Studio. The current workaround is creating your test stubs manually. Thanks, David Gorena Elizondo ...Show All
SQL Server Dimension cannot have more than one hierarchy.Hierarchy must be specified explicitly.
Hi I am new to Analysis services 2005.I have a calculated measure.costval which has following: CREATE MEMBER CURRENTCUBE .[Measures].costval AS IIf ([Dim Date_Financial]. CurrentMember . Level . Name = "Date" , [Measures].[Cost Value], IIF ([Dim Date_Financial]. CurrentMember . Level . Name = "(All)" , ([Dim Date_Financial]. CurrentMember . lastChild ), IIf ([Dim Date_Financial]. CurrentMember . Level . Name = "Year" , ([Date].[Financial]. CurrentMember . lastChild ), IIf ([Dim Date_Financial]. CurrentMember . Level . Name = "FQuarter" , ([Dim Date_Financial]. CurrentMember . lastChild ), IIf ([Dim Date_Financial]. CurrentMember . Level . Name = &qu ...Show All
SQL Server Excel 2007 and SqlServer sp2
hellow all, i installed SqlServer 2005 sp2 on my server. now, how do i import excel 2007 files in SSIS i don't have office 2007 installed on my computer, but i've got some .xslx that i would like to try ro import. i tried to create an OLEDB connection, but i don't know which provider to choose. anyway, can i do it without the sp2 or office 2007 installed on my server thanks for tour reply! Data Sources/Microsoft Office (2007) - ssis ( http://ssis.wik.is/Data_Sources/Microsoft_Office_(2007 )) ...Show All
Visual Studio 2008 (Pre-release) How To: Attach event handler to element in DataTemplate?
This question/problem is a little bit esoteric, but hopefully someone has seen it before... I need to attach an event handler to the Loaded event of Image elements within a DataTemplate. The Loaded event handling method is in a utility class, so I can't use XAML to attach the handler. In a Window's Loaded event handling method I call this method in the utility class : FrameworkElementFactory factory = listBox.ItemTemplate.VisualTree; while ( factory != null ) { if ( factory.Type == typeof ( Image ) ) { factory.AddHandler( Image .LoadedEvent, new RoutedEventHandler ( OnImageLoaded ) ); break ; } factory = factory.FirstChild; } There are two problems, one is not too bad (just odd) and t ...Show All
Visual Studio Team System Bad mapping DebugActiveProcess in UseManagedEquivalentsOfWin32Api rule
The mapping for the UseManagedEquivalentsOfWin32Api rule says to use Debugger.Launch instead of kernel32!DebugActiveProcess. "Remove the declaration for 'NativeMethods.DebugActiveProcess(UInt32):Boolean'. Callers should use the following managed alternative: System.Diagnostics.Debugger.Launch " This is a bad mapping. The APIs are radically different and aren't interchangable : System.Diagnostics.Debugger.Launch will (i) launch a (ii) managed debugger with the intent of attaching it to the (iii) current process. The debugger process will be determined by (iv) registry settings . In contrast, kernel32!DebugActiveProcess will tell the current process to start (i) attach as a (ii) native debugger to the (iii) specifi ...Show All
Visual Studio Express Editions Using ijl15.dll
Hi all, I have problem with ijl15.dll, i'm found samples in vb6.0 and convert to vb.net. dim jcprops as JPEG_CORE_PROPERTIES dim jerr as IJLERR jerr = ijlInit(jcprops) 'OK try jerr = ijlWrite(jcprops, IJLIOTYPE.IJL_JBUFF_WRITEWHOLEIMAGE) Catch ex As Exception mesagebox.show(ex.message) end try Cannot marshal 'parameter #2': Invalid managed/unmanaged type combination (Int32/UInt32 must be paired with I4, U4, or Error). Where is the problem Joker77 Joker_77, Before you use the dll file that can compile in VB6 and upgrade to VB.NET, you should register the component in your operating system registry. 1. regsvr32 ComponentName.dll, the command is in %Windows%\System32. 2. Imports ComponentName at th ...Show All
SQL Server Report Builder Formatting Currency
Hi all I need Report Builder to format Certain Numbers as Currency by default. According to the documentation I need to set the culture setting in the report's datasource. I'm using a SSAS2005 Cube The Report Manager then let's me create the Model wich is used by Report Builder. My Question is: Where do I set the culture setting I cannot find it in the Cube and viewing the model's xml hasn't helped. Any help will be dearly appreciated G Thanks X But I know how to format the textbox. The problem is that I want my measures to default to currency format like this: (R #,##.##0.00;R (#,##.##)0.00;R ##.#0) when added to the table/matrix The docementation for Report Builder says that it can be done by setting the " ...Show All
SQL Server counter of the group by statment
hi, Lets say I have a table called test create table test( number int, [str] nvarchar(50) ) table content, for example: 8,'a' 8,'b' 8,'c' 5,'a' 5,'h' I want to get a result with one more column that indicates on the asc counter of the group by clause. i.e. somthing like this: number counter 8, 1 5, 2 and so on... it does not realy matter regarding the query - All I want is to add one more column to the query that indicates on the count of the group by.so if i have 2 rows ...Show All
.NET Development Connection Pooling randomly throwing COM exceptions
We randomly get the following exceptions: [COMException (0x80070006): The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0 System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) +34 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +636 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Data.Common.DbDataAdapter.FillInternal ...Show All
Visual Basic RectangleF.IntersectsWith - Precision?
What precision does the IntersectsWith have regarding Rectangle vs. RectangleF I had assumed that since values for RectangleF were singles and not integers that this was also a factor in the IntersectsWith routine. However, consider the following example: Dim rect1 As New RectangleF(13.45, 5.15, 1.51, 1.51) Dim rect2 As New RectangleF(10.3, 5.15, 3.15, 3.15) Dim rect3 As New RectangleF(1345, 515, 151, 151) Dim rect4 As New RectangleF(1030, 515, 315, 315) MsgBox(rect1.IntersectsWith(rect2)) ' Returns True MsgBox(rect3.IntersectsWith(rect4)) ' Returns False This may be the expected behavior, but it created more than one problem with my current application. Thanks! ...Show All
Smart Device Development GPRS Disconnection
I have a small app that switches between 2 gprs connections. The call to ConnMgrReleaseConnection does not stop the current connection as stated in the docs, does anyone know a fix for this. thanks Take a look at my post at http://blogs.msdn.com/anthonywong/archive/2006/10/27/terminating-a-gprs-connection.aspx . Cheers, Anthony Wong [MSFT] ...Show All
Visual Studio Team System Install Team Foundation Server Proxy on a Domain Controller
I know that an installation of Team Foundation Server on a Domain Controller is not supported. But, can I install the Team Foundation Server Proxy on a Domain Controller Does the Team Foundation Server restriction also apply to the Team Foundation Server Proxy Thanks, Julio ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Games for Windows Certification
Does anyone have a different contact email than: getgfw@microsoft.com I've sent several emails to this address over the last month in attempt to get the certification process going on a new title we are going to be releasing with no response. Alternately if the application packet for this is online a url would be helpful. Thanks in advance. Hi Chuck. Thank you for following up. The requirements are intended to be universal with respect to retail product. How they will apply to online only distribution is still under discussion as the program is focused on retail at the moment, but the requirements that would only apply to retail product have already got wording around applicability in ...Show All
SQL Server Can SSRS 2005 Handle Stored Procedures or SQL Subqueries that Rreturn Rowsets Based on Multiple SQL Updates?
Hello, I have a stored procedure that creates a temporary table, and then populates it using an INSERT and then a series of UPDATE statements. The procedure then returns the temporary table which will contain data in all of its columns. When I call this procedure from SSRS 2005, the rowset returned contains data in only those columns that are populated by the INSERT statement. The columns that are set via the UPDATE statements are all empty. I read (in the Hitchhikers Guide to Reporting Services) that SSRS will only process the first rowset in a stored procedure that generates multiple rowsets. Is this true Is this why SSRS does not retrieve data for the columns that are populated by the UPDATE statements Here is the stored proced ...Show All
Windows Forms Data grid Problem Master/Detail update
Hi Guys i am new to vb.net and i am using visual studio 2003. I have created a master detail relationship between two tables. My problem is i am not able to update the changes. I am pasting the code please help me. Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Public Class AsnEdit Inherits System.Windows.Forms.Form Dim cn As New SqlConnection(ConfigurationSettings.AppSettings("constring")) 'OleDbConnection i Dim cmd As New SqlCommand("Select * from asnhdr_sql", cn) Dim da As New SqlDataAdapter(cmd) Dim ds As New DataSet Private Sub AsnEdit_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load da.Fill(ds, "asnhdr_s ...Show All
