SGI101's Q&A profile
.NET Development ConfigurationErrorsException on Saving
I have a created a custom section, that contains user settings. These settings are in a file located by a user defined location. I open this section using the "OpenMappedExeConfiguration" of the configuration manager. Everything works fine, until I open a second instance of my program and attempt to save changes. Since the second instance utilizes the same config file, I am getting a "ConfigurationErrorsException" . -The configuration file has been changed by another program. (C:\Documents and Settings\....config) How can I overcome this problem Will the configurationmanager work in this senerio Is there a way to merge changes ps. not that it should matter but this is a winforms app. Thanks for ...Show All
Visual Studio Express Editions RichTextBox Images Can Stretch
Hi, I'm using the paste method to insert images in a RichTextBox, the trouble is the user can stretch the images by dragging them with the mouse. Is there anyway to stop this behaviour Or is there another way to insert images into a RichTextBox control that pastes the images with fixed dimensions Okay, the following code seems to 'undo' a picture resize. I don't know if it has any bad side effects. Private Sub RichTextBox1_TextChanged( ByVal sender As Object , ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged 'MsgBox(RichTextBox1.UndoActionName) If RichTextBox1.UndoActionName = "Unknown" Then RichTextBox1.Undo() End If End Sub ...Show All
Software Development for Windows Vista call external method activity disappeared from my toolbox
I don't know why, but the call external method activity is no longer visible. My workaround will be to use wca, but is there something I've tripped over to make it disappear I can actually view previews flows that use the activity without a problem. ...Show All
SQL Server Best way to relate to arbitrary levels in hierarchy?
Hi, I have a geographic dimension (Zip Code <- City <- County <- State), and my underlying OLTP data typically relates to the Zip Code Dimension Key. My problem is that for ~40% of the records in my OLTP system, we only have granularity to the County or State level. Is there any way I can still use my geographic dimension to include those records, albeit at a less granular level Thanks! Hi Arjun. One potential solution is the use of a parent-child hierarchy. Parent-child hierarchies allow non-leaf members to show values with the MembersWithData property. Set the MembersWithData property to NonLeafDataVisible, and link your fact table foreign key of the geographic dimension to the appopriate pri ...Show All
SQL Server Strange problem with mining model node_distribution.Attribute_value and its probability
Hi, all here, Thank you very much for your kind attention. I dont understand another problem within my mining model. When I query the mining model content ,finding that the same attribute_value have different support and probability for the same node within my clustering model. Why is that Really confused. And really need help for that. Thank you very much in advance for your help. With best regards, Yours sincerely, Thanks, this helps a bunch. Could you also do a SELECT FLATTENED NODE_CAPTION, NODE_DISTRIBUTION FROM <Model>.CONTENT And post the results - highlighting the curious rows (alternatively you could make a backup of your database and send to jamie "at" sqlserverdatamining.com ...Show All
SQL Server SSIS Package Designer performance after installing SP1
Hi, When I installed SP1 on my SQL Server 2005, the performance of the package designer dropped enormously. I have to wait like 30 seconds after I drag-and-drop a datasource from the toolbox to the design area. Also it takes a very long time to run the very simple package. Not to mention opening some complicated package that was done before applying SP1. The package scheduled in SQL Agent went from 3-4min to 5-6min. Can anyone address this issue Maybe there's something I did wrong While installing SP1 I ecountered strange behaviour (some messages about file locking, rebooting and stuff), but in the end it said that it was successful Best Regards Wojtek Ok, it looks like workaround #1 from the k ...Show All
Visual Studio Express Editions buttons
I've got a trouble with a program: I've placed a button on the userinterface. And I want that when you click on it, the button disapears for a moment. That's what I have: Sub button1_clik dim W as Long button1.visible = False Do until W = 100000000 W += 1 Loop button1.visible = True End Sub But that doesn't work. The button never dissapear Is there someone who can tell me how a button could disapear for a moment (Maybe there 's an own command ) What you says works momently exactly. But when I put the code in my program it didn't work anymore. I'll give you the code of my program. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Score += 1 Me.But ...Show All
SQL Server How cany I publish 1 table from an attached database?
Hello, In my vb.net application, I have an attached database called dbMaster with the following tables: tblCustomer, tblProducts, tblUsers In visual studio 2005, is it possible to publish only one table My problem is, is that I want to send my end users updated data from my tblCustomer, and am finding that on my test laptop, if I publish dbMaster, it sends all tables when I just want one to be sent. Thanks in advance. I'm working on a mobile application. I want to have a desktop database that is kept in sync with a handheld database, with updates occurring on both ends. To keep them synchronized, I am investigating the use of both RDA and Replication. I've gotten RDA to work, but have foun ...Show All
Visual C# Redim in C#
Hello everyone, is there a way to simulate VBs redim function in C# Thanks public static Array Redim (Array origArray, Int32 desiredSize) { System.Type t = origArray.GetType().GetElementType(); Array newArray = Array.CreateInstance(t, desiredSize); Array.Copy(origArray, 0, newArray, 0, Math.Min(origArray.Length, desiredSize)); return newArray; } //from Applied Microsoft.NET framework Programming - Jeffrey Richter ...Show All
Visual Studio 2008 (Pre-release) Named Pipe Transport Security
Hello, I am attempting to enable transport security over a named pipe binding and I'm receiving the following error: System.ServiceModel.Security.SecurityNegotiationException: The server has rejected the client credentials. ---> System.Security.Authentication.InvalidCredentialException: The server has rejected the client credentials. ---> System.ComponentModel.Win32Exception: The logon attempt failed --- End of inner exception stack trace --- at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Interfaces
Could anyone point me in the right direction regarding programming c# with interfaces. I've googled up the subject and whilst there are some good tutorials on how to do it, non of them really explain in simple terms why we should or shouldn't. I just can't seem to get my head around how they work properly. What an interface actually consists of is a full class definition, minus any of the method bodies (ie. Just the method prototypes and member definitions). Each class that inherits from the interface has to provide it's own implementation for the methods in the interface. The key difference here between general class inheritance and implementing an interface is that the interface doesn't provide an implementation, which in some ca ...Show All
.NET Development Cannot drop database because it is currently in use.
IN a winforms program I have 2 connections using System.Data.SqlClient.SqlConnection to a SQLExpress Server (2005) One connection (connection1) is to the master database the other (connection2) is to a database which I have created dynamically When I call a close on the second connection the connection state in my program shows closed, and I dispose of the connection object. With connection1 I try execute Drop Database on the database which connection2 was connected to. I receive a "Cannot drop database "MyDatabaseName" because it is currently in use." I look with SQL Server Mangment Studio at the Process Info and there is still a process Id on the connection (connection2) which I closed. ...Show All
.NET Development Web Services in Exchange 2007
I was trying to add a web reference to our company's exchange server 2007. It says, web services found but the server did not respond. Could it be that my company has disabled the web services feature of the exchange server for security reasons If not, what should i do I am currently writing a C# 2.0 application to read emails from Exchange and im planning to use the web services feature. do you have any reading or documents or examples to do this ...Show All
Smart Device Development How to Access system(or shell) imagelist in WinCE 5.0?
Hi How to access system's(or shell's!) imagelist in Windows CE 5.0 . In desktop versions of windows we can get it from shell32.dll. But I have no idea about Windows CE 5.0. Can someone help me out please. thanks, Mahesh. Hi Alex Thank you for the reply. Actually I am new to this environment, please correct me if I am wrong, but I think there is an undocumented api Shell_GetImageLists() using which we can access large (32 x 32) and small (16 x 16) icons of the system. But it works in Windows XP where we have Shell32.dll. Does Windows CE 5.0 maintain any system image list (kind of shell32.dll) If yes, how to access it and use it in other user applications cheers, Mahes ...Show All
Visual Basic Recent Projects List on Start Page is not being Populated
The Projects List on my Start Page is not being populated with the Projects I open. It's empty. Does anyone know what could be the problem I can see the entries being recorded in the Registry key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList But VS isn't reading them in for some reason. I'm running Visual Studio 2005 Professional. Thanks. Hey rufdog30, Do recent projects properly show up correctly in the File -> Recent Projects list Also, there's a known issue regarding projects that are opened from Source Control not showing up on the Recent Projects list. Could this be your issue Thanks, Michael ...Show All
