ttfo's Q&A profile
.NET Development Instrumentation problems using latest Jan 2006 version of Enterprise Library
Has anyone ever tried instrumenting a component using InstrumentationListener and InstrumentationProvider from the latest Enterprise Library I am following a sample code from the documentation but it fails during run-time when I try to raise OnDbConnect event from the code below. The error that I get is "Object reference not set to an instance of an object". I am sure it is an easy fix but I cannot seem to find what is wrong. ObjectBuilder is supposed to link an OnDbConnect event from the InstrumentationProvider with the function ConnectObserved() from the InstrumentationListener, but that is clearly not happening :-( Here is the code: public partial class Form1 : Form { public Form1() { InitializeComponent ...Show All
Visual Basic Default Geteway and Subnet Mask how to get them into string?
Hi Ok Im going a bit crazy but can some one help me to get Defauld Geteway and net mask I assume the only way to get it is to use WMI, and I have no expiriance in doing that :-( So would really apreciate some help :-) Thanks! PS: Oh yes im running 2005, maybe there are some new easy ways Just ran the tool and selected a few parameters ... Create a new console project and paste this in Imports System Imports System.Management Imports System.Windows.Forms Namespace WMISample Public Class MyWMIQuery Public Overloads Shared Function Main() As Integer Try Dim searcher As New ManagementObjectSearcher( _ "root\CIMV2", _ "SELECT * FROM Win32_NetworkAdapterConfiguration") ...Show All
Software Development for Windows Vista Visual Studio 2005 Desiner
Hello, I have im my computer: - windows xp sp2 - visual studio 2005 team edition - .net 3.0 - windows vista sdk - Visual Studio 2005 extensions for .NET Framework 3.0 (Windows Workflow Foundation) My problem is that I can't see the project group "Visual C#->Workflow" whem I make New->Project Can anyone help me Can you go to the gac and give me the version numbers for System.Workflow.Activities.dll and Microsoft.Workflow.VSDesigner.dll. To get to the gac go to Start / Run and type assembly. Find the assemblies, right click on them and click on the version tab. Do you have a Workflow directory under either of the following paths %P ...Show All
Visual Studio Team System PropertyGroup and ItemGroup
When do these values get set I have an itemgroup that is trying to copy files that no longer exist I have the following which I use to copy files ... <PropertyGroup> <SourcePath>\\DropZone\$(BuildNumber)</SourcePath> </PropertyGroup> <ItemGroup> <CopyFiles Include="$(SourcePath)\Copyfiles\**\*.*" /> </ItemGroup> <Copy SourceFiles="@(CopyFiles)" DestinationFiles="@(CopyFiles->'$(OutputLocation)\$(BuildNumber)\Setup\%(RecursiveDir)%(Filename)%(Extension)')" /> This should copy all the files from Copy Files location to the Output Location, but when I removed a file from the Output Location, it said it ...Show All
.NET Development SSL handshake always fails when using AuthenticateAsClient from ssltream class
Hi, I tried to use the SSLStream class to implement ftp with ssl. I first open a normal socket connection and send AUTH TLS command and after i get the right reply i try to initiate the ssl handshake. But this always fails with illegal data exception. I setup a cert verify callback that always returns true. I tried to set the different sslprotocols in AuthenticateAsClient call, but no luck. The server I tested uses openssl (handshake works with clients using openssl). Any ideas what could be the problem I include the trace log: Thanks, Markus System.Net.Sockets Verbose: 0 : [2732] DNS::GetHostAddresses(192.168.1.1) System.Net.Sockets Verbose: 0 : [2732] Exiting DNS::GetHostAddresses() -> IPAddress[]#8963119 System.Net.Socket ...Show All
.NET Development How can I retrieve Recordset from webservice?
I have a server and a client the server is implemented by c# and the client is programmed by vb(not vb.net) so how can I get the recordset from the webservice thank you Let's assume you mean a DataSet. If you are using SOAP Toolkit 3.0, you need to use XML DOM as a type of the parameter. Refer to SOAP Toolkit 3.0 documentation on how to do that. Note that SOAP Toolkit is not supported product, betting on it in production is risky. Supported mechanism is to use .Net framework (ASMX proxy) via interop layer. In this case you need to implement a wrapper for both web service proxy and for the DataSet parameter. Wrappers would have COM Interop attributes. DataSet wrapp ...Show All
SQL Server Cluster 2005 need help please
quick overview 2 nodes-cluster setup from node 1 I setup a cluster, created 4 groups 1.cluster 2.msdtc 3.sqlinstance1 4.sqlinstance2 I want to create an active\passive on both nodes. (onenode will be the active node for on sql install while the other is passive. I want to repeat this fo rthe second node, the second node being active and node 1 passive. I logged into node 1 and I installed sql 2005 in failover cluster into sqlinstance 1., everyhting was fine, failover etc. Now I logged into node 2 and ran sql 2005 setup to create a failover cluster. I chose to install into sql instance 2. Database unable to install with error "failed to set registry settings for server network libraries. acition is setdefault ...Show All
SQL Server Prediction Join to MDX with nested table
If your prediction join is to a SQL datasource, you can easily write a SQL query which returns a nested table like: SELECT Predict([Subcategories],2) as [Subcategories] FROM [SubcategoryAssociations] NATURAL PREDICTION JOIN (SELECT (SELECT 'Road Bikes' AS Subcategory UNION SELECT 'Jerseys' AS Subcategory ) AS Subcategories ) AS t What about if your datasource is a cube Is there some special MDX syntax similar to the SQL syntax above Or do you have to utilize the SHAPE/APPEND syntax as follows SELECT t.*, $Cluster as ClusterName FROM [MyModel] PREDICTION JOIN SHAPE { select [Measures].[My Measure] on 0, [My Dimension].[My Attribute].[My Attribute].Members on 1 from MyCube } APPEND ( { select [Measures].[Another Measure] on ...Show All
.NET Development How can I run an User Control using a Web Application...
Framework Version1.1. I have a User Control inside a Windows Control Library named WCL1. I embed that User Control inside the web Application(named WA1) using <Object> tag.. Along that I have Add the reference for the WCL1 Now if I access through. http://localhost/WA1/WebForm1.aspx means it works... But if I access through IP Address for eg.. http://IP/WA1/WebForm1.aspx means it will not works... Please anyone give me an Idea.. Hello Ramesh, Me also facing the same problem in my application,If you have the solution please forward to me.My mailId is shankar@cgvakindia.com . Regards, Sankar.S ...Show All
Visual Studio SandCastle Getting Started Help
So I've become completely spoiled with msdn-style help and with tutorials. I've never used nDoc so this is all new to me. I have a C# console app with xml (///<summary>... etc.) comments for every method both public and otherwise. I've used the SandCastle Help File Builder to execute against my solution file. The solution has xml comments and I get no errors at all. The problem is that I also don't get any documentation. I get a chm file with "Namespace" at the top and none of my classes or the program.cs are represented in the chm. Is there a getting started, 101 tutorial out there that will help me figure out what I've done wrong and get me grooving I have a major asp.net application that I have to document for a cl ...Show All
Visual Studio Team System schedule instrumentation profiling
Hi, I would like to know how can I schedule an instrumentation o sample Profiling to run multiple times, using a timer. I’m using Team Suite. I know that to schedule a unit test, for example, I can create a test list (including this unit test) and then schedule it using the MSTest.exe...but my question is...can I include an instrumentation profiling in that list test Thanks!!! There's no slick trick in the VS 2005 UI that will allow you to trigger and schedule profiling sessions like this, but it is possible if you're willing to go off-road a bit. The MSDN documentation for vsperfcmd.exe (or in a pinch, vsperfcmd - ) should have enough details for you on how to script all of this from the command line.   ...Show All
Software Development for Windows Vista Pb with ManagementClass API, probably linked with Media Center update
<post moved from .Net development forum - it is not about Vista but good old media center :) > Hi, We have designed an HTML application for the Media Center (2005 edition) : an applet is downloaded from a web server located on another PC. In order to check that the applet has been downloaded from the local network we have implemented a .Net security policy giving fulltrust to assemblies coming from the same subnetwork. The corresponding condition is called LanMembershipCondition (see below). At first the ManagementClass APIs was used in that membership condition in order to get the collection of network adapters so that the Subnet mask was dynamically retrieved (1). And it worked fine ! But one day it stopped working, becau ...Show All
Windows Forms Controling the Browser Window in ASP.NET
Is there a '.NET way' of controlling the browser window attributes, such as height, width, toolbars etc I have a page with a link which i want to open a pop-up second window of a specific size, without toolbars, scroll bars etc etc. I would usually do this with javascript's "window.open" but this doesn't seem in-keeping with the .NET mythology of seperating code and content. Is there a better way Can .NET open a new browser window from an OnClick event Or can I open a new window using <A Target="_Blank" > and control the attributes of the window in the new page's Load event I would guess this isn't possible - how can the .NET webserver control the number and sice of the clients browsers - but i thought i w ...Show All
Visual C# How to delete a control during runtime?
Hi, I would like to know how to delete a control when the user presses the Delete key on the keyboard (For example, there is a label in the form, and the user clicks on it and presses Delete). I was trying to use the KeyEventArgs but it always gives me an error message stating that it is not set to an instance of an object.. There is no real way of finding out which control was clicked upon in runtime mode - and besides you cannot select a label control during runtime AFAIK however to remove the control in an easy way: this.Controls.RemoveByKey( "ControlName" ); you can perhaps go through each control in the Controls collection and see if the control has focus, if so, remove it with ...Show All
Visual Studio 2008 (Pre-release) wsHttpBinding: CreateService error reading IIS metabase SSL settings
I switched from basicHttpBinding that worked to wsHttpBinding on my WCF service to improve security. Now I get this error on our test machine; which IIS web-app setting is missing : [ArgumentNullException: Value cannot be null. Parameter name: key] System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) +41 System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +2634585 System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) +14 System.ServiceModel.Activation.MetabaseSettingsIis.GetTransportSettings(String virtualPath) +58 System.ServiceModel.Activation.MetabaseSettingsIis.GetAccessSslFlags(String virtualPath) +4 System.ServiceModel.Activation.HttpHostedTransportConfiguration.GetBaseAdd ...Show All
