Christopher Bernholt's Q&A profile
.NET Development The configSource attribute must be a relative physical path?
Hi, I get the following error when I try to specify the configSource attribute for my configuration section: "The configSource attribute must be a relative physical path." Does this mean what I think that it does That the path must be relative to either the configuration file or the application exe I get this error when I define the configSource attribute to "\\servername\\share\\filename.xml " or "C:\\filename.xml". But if I define it as ".\\filename.xml" it works. The problem is that our customer wants part of the configuration on the server, so that they only have to change it in one place. I thought that I could solve it like this, b ...Show All
Visual Basic An array of variables
I have the following variables Public Shared angstroms As Double = 0.0000000001 Public Shared astronomical_units As Double = 149598550000 Public Shared barleycorns As Double = 0.008467 Public Shared bohr_radius As Double = 5.291772083 * 0.0000000001 + 19 * 1.0E-19 Public Shared cables As Double = 182.88 Public Shared centimeters As Double = 0.01 Public Shared chains As Double = 20.116840233680467 Public Shared cubits As Double = 0.45 Public Shared decimeters As Double = 0.1 Public Shared ells As Double = 0.875 I want to store them in a Double(). How would I do this I want to store them by name because I call them by name. s ...Show All
.NET Development How to set a specific RUNTIME for a library?
I have used Visual Sturdio 2003 to create a DLL compativle with COM and I want that dll to run in .net 1.1 even if .net 2.0 is installed. Can I set this property in anyway to my library or it will always run with the las .net installed in the machine MSDN says: The startup code for an application hosted in Microsoft Internet Explorer ignores the <requiredRuntime> element. So this is still an issue sometimes. ...Show All
Visual Basic [vb 2005 expr] Killing a copy-dir process
Hi. In my VB 2005 express application I make a copy of one remote directory (connected as a net unit) to my local hard disk with this line: My .Computer.FileSystem.CopyDirectory("F:\namedir1", "C:\namedir1", True ) This works inside a backgroundworker thread. When I cancel the thread, the copy still goes on, especially if the source-directory is big (some Gb). I want to stop immediately the copy, how can I do this Is there a way to know what process ID is assigned to that command and to kill it How to kill a My .Computer.FileSystem.CopyDirectory command The killing will be inside the background_cancel event. Moreover I noticed that ...Show All
Visual Studio Can't debug ASP in VS2005
VS2005 doesn't seem to support debugging ASP pages. Is this really so That's a serious problem if it is. Thanks Jeremy No, she meant IE. Can you clarify what you mean by 'refuse to debug them'. Do you see your ASP documents in the Script Explorer window As for the many requests to bring back auto-attach support for ASP debugging, what are people looking for: Debug classic ASP code locally Debug ASP code + .NET code (either a .NET COM object or ASP.NET code in the same process) Debug class ASP code on a remote computer Case #2 and #3 are pretty hard to solve. On the other hand, Monica's ...Show All
SQL Server Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
This was originally posted in the SSIS Forum , but a member of the IS team suggested it be moved here. " Most recently I got this error (Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) so does this mean that SQL Server is still trying to use named pipes even if I only have TCP/IP enabled in SQL Server Configuration Manager " I'm having the same issue, and here's our scenario: Installed SQL Server 2005 Developer Edition on a machine with WinXP SP2 and enabled remote connections over TCP/IP Installed SQL Server 2005 Standard Edition on a machine with Win2003 SP1 (remote connections ove ...Show All
Windows Forms Weird behavior when customizing property grid.
Hello guys, I'm studying the architecture behind custom controls and the property grid in 2.0 for a while now, but I still not seem to get it completely. I've tried a couple of strategies, which all resulted in some undesired behavior that I cannot explain. I hope someone can help me out and provide me with the missing details. Strategy 1: ICustomTypeDescriptor I linked an extension of CustomTypeDescriptor to my custom textbox through a TypeDescriptionProvider. In this extension I have overridden the GetProperties method and I return only the properties I want the grid to show (say Name, Location and Size). Having done this I enc ...Show All
Visual C# Extracting the summary tag at runtime
Given a .Net object, I need to loop through it, printing out the summary tag information for each field/method, along with the "param" tag contents for each method parameter. Is there any way I can read the summary tag information for an instantiated object at run time Hi, just iterate through the methods of your object and for each method you iterate trought its parameters Using System.Diagnostics; Using System.Reflection; Type type = obj.GetType(); // go through every method of this object foreach(MethodInfo mi in type.GetMethods()) { Debug.WriteLine("Method:"); &n ...Show All
Visual Studio Binary/ASCII recognition and Binary_Masks option with SS 2005 does not work
Hi ! We have switched to VS2005 and VSS 2005 and have now some problems with the file type recognition . We have a filetype that contains a lot of ascii line (Defines) and after that there is a CTRL-Z and binary data. Because the recognition is very hard we set the BINARY_MASKS-option in the ss.ini to that extension. That worked fine with VS6, but VS2005 doesn`t care about the option and sets the filetype to ASCII. Whats wrong Regards from Germany Joerg Hi Joerg, If you're using a beta or pre-release version of VSS2005 you may have problem with Binar ...Show All
.NET Development OleDbCommand.ExecuteNonQuery "Insert Into Select From"
Hello, I am working with OleDb to perform a bulk insert from a temporary table to permanent database table, both of which belong to the same database. I am wanting to use "INSERT INTO <permanent_table> SELECT * FROM <temp_table>". The query I run in MS Access to perform this bulk load does process correctly, but not in code using OleDb. After properly setting up my OleDbConnection object, opening it, and properly creating my OleDbCommand object, my question is this: when I call "ExecuteNonQuery()" no rows are returned and no data shows up in the permanent table. My connection opens perfectly and the ...Show All
.NET Development Improving startup time - force cold start
Hi, I want to work on one of my application's start up performance and to effectively do that I want to force a cold start everytime I start it to find out what takes really long the first time it starts. So how can I force windows to dump all the prejitted code that it generates the first time the application starts so it has to prejit again after the first start. Also, I was wondering what other techniques people use to find out what takes really long the first time the application starts and where one should start looking for bottlenecks Thanks, Tom Way back in my memory cells, Microsoft distributed a ...Show All
Visual Studio Express Editions Platform SDK install problems
I have successfully installed both 2005 Express edition development environment and Visual C++. Now I went to install the core platform SDK. Here are the steps I followed: 1) I downloaded the PSDK files and placed them in a temporary directory on my C drive. 2) I ran the PSDK-Full executable, putting the files into C:\Program 3) I created a directory c:\Program Files\PSDK and moved everything there. (both Visual C++, .Net framework and Visual Studio express are in the c:\Program Files directory in their own directories). 4) I ran setup.exe from the PSDK download and selected to install only the core SDK. 5) The program created a direc ...Show All
Visual C# Typing in Visual Studio 2005 Text Editor is extremely slow
Has anyone else noticed that typing in Visual Studio 2005 is extremely slow Whey I type it seems that the screen is always 2 words behind where my hands are. It makes it extremely frustrating to get anything done. I'm mainly referring to C# code. It seems like Intellisense is going nuts trying to guess every word I'm going to type and never actually prints the characters to the screen. Has anyone else experienced this Is there an option I can turn off to get my text editor back ! By the way, I have a very fast computer with Dual 3.0 GHz Zeons with 3GB memory and everything else that should make "typing" very fast. ...Show All
Software Development for Windows Vista Beta 2 question: Why did local services change?
I have a question as to why the ExternalDataExchangeService class was introduced in Beta 2. What is its function that is a benefit over, or difference from, the way we added local services in Beta 1.2 For example, if I had a local service named Foo, which implements the IFoo interface (the IFoo interface is marked with the DataExchangeService attribute in 1.2) and I wanted to add it to the runtime I just did: Foo myFoo = new Foo(); workflowRuntime.AddService(myFoo); Now, in Beta 2 I see that we mark the local service interface with ExternalDataExchange attribute. Then as before, with Foo implementing the IFoo interface: ExternalD ...Show All
Visual Studio Express Editions XML Documentation
I have just finished a project in beta 2005 of VS. I have generated the XML Documentation file, which is obviously not very readable. I have tried using NDoc to compile it, but this does not cope well with generics or inface .NET v2.x. Are there any programs that will compile this into a nice format Cheers, Chris I heard very useful information that Microsoft will provide alternative solution. Please look at following URL for more information: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=2d65db5c-7bf5-43f3-8496-083aa966c411 ...Show All
