Wayne R's Q&A profile
SQL Server Connection manager or Data Source
For seting up the connection should we use Connection Manager or New Connection From Data Source The advantage of using Data Source is that we have the connection avalilable at project level but I've studied it somewhere that Data Source is used for SSAS not SSIS. But I don't have enough explanation to give it to my team, that why I am not using Data Source. We are working on VSS, do we have to reset the connection managers if want to test our packages on some other machine(else than the one on which it was developed) Paarul wrote: For seting up the connection should we use Connection Manager or New Connection From Data Source The advantage of using Data Source is t ...Show All
Visual Basic LoadLibrary returns null
Hello, I have a windows application in VB .NET (VS 2005) that tries to load an unmanaged dll dynamically using LoadLibrary. However the LoadLibrary constantly returns 0. I checked the last error message right after the call to LoadLibrary using Marshal.GetLastWin32Error and it returns 998. It is interesting that when I laod the same dll in VC++ .Net using the LoadLibrary function it returns the correct handle. I appreciate if someone could help me out with this, Thanks in advance STabrik wrote: Hello, I have a windows application in VB .NET (VS 2005) that tries to load an unmanaged dll dynamically using LoadLibrary. However the LoadLibrary constantly returns 0. I checked the last error message right after the ...Show All
Internet Explorer Development urgent - IE 6 display problem
Hi, I'm developing an ASP.NET website and am having a big problem for the last couple of days... Please take a look at the following website: http://www.spletna-galerija.net/Gallery.aspx It seems that whatever I try there's always an overflow in the center top div (named "DSSeparatorTop"). An overflow of about 5-10 pixels... It looks fine in FireFox and IE7 but there's an error in IE6 and I just can't get rid of it... Could anyone please give me some advice on an IE6 workaround I only have about 3 days left to fix it... Thanks... Thank you for your reply Lance, I was just about to try your method when I got another suggestion: Set 'font-size: 0px' in the problematic div and IT ...Show All
.NET Development XML and IO exception
Hi : i have been developing a smartphone 2003 application on VS2005. I want to save the user settings in an XML file. I have used the code below : Dim XMLDataset As DataSet XMLDataset = New DataSet() XMLDataset.ReadXml( "..\Storage\Program Files\ohmled-2\secenekler.xml" ) But when i run it i get an "IO exception" and thats all. The document is not open when i am running the code and the property of the XML file is "system" Thanks for your helps Best Regards Could you try to provide XmlReader to DataSet's ReadXml method. And also check if your program has rights to read that file by opening it with a text reader and just reading the document. Thanks, Sinan ...Show All
Visual C++ 16-bit programs on Windows Server 2003 (probably ActiveX problem)
I have a program that was written for in C++ for Windows 3.x and runs fine on every Windows OS up until XP. On Windows Server 2003 some user-interface-elements are missing. I was given source code that uses GUI-classes called TDialog, TCheckBox etc.and includes files called dialog.h and checkbox.h. Those files are missing though. A directory of the source code has these components and dlls: - comdlg16.ocx - compobj.dll - msoutl16.ocx - oc25.dll - ole2.dll - ole2disp.dll - ole2nls.dll - ssdock16.ocx - sstabs16.ocx - storage.dll - tabctl16.ocx - threed16.ocx - typelib.dll - vb40016.dll - vshare.386 These components are not installed during the installing process for some reason. I installed the Visual Basic 4 runtime an ...Show All
Visual C# Converting Date
Hi, I'm developing an app to send SMS messages and one of the requirements is the 'Send Date & Time' which I need to pass to the provider when sending the message. On my form there is a Checkbox for the user to click is they want to send the message on a particulr date and time (Send Later), if this isn't checked the message is sent using the current system date and time. For this I've been using: - System.DateTime dt = DateTime.Now; I now want to change my code to include a check to see if the user has selected to 'Send Later' and if so use the selected date from the DateEdit control and time from the TimeEdit control. The If - Else is ok, but I'm having problems setting 'dt' from the date & time controls and con ...Show All
Windows Forms Designer Generated Code: SizeF
What does the 'F' accomplish or stand for in designer generated code for form ' AutoScaleDimensions' this .AutoScaleDimensions = new System.Drawing. SizeF (6F, 13F); Immediately following this code in designer generated code: this .AutoScaleMode = System.Windows.Forms. AutoScaleMode .Font; this .ClientSize = new System.Drawing. Size (292, 262); Why have 'SizeF(6F, 13F)' when the size is explicitly declared as 'Size(292, 262)' The Designer then adds the hidden methods: this .ResumeLayout( false ); this .PerformLayout(); ... attempting to create a new library class. SizeF is based on floating-point width and height parameters. ClientSize and AutoScaleDimensions are two completely different prope ...Show All
SQL Server SQL Backup hangs, server freezes
We have SQL 2000 running on Server 2003. The server has 4 GB RAM, RAID 1 and has the /3GB switch in Boot.ini. We have 6 databases, the largest is about 14 GB. Until recently I could use Enterprise Manager to perform database backups to a folder on the same server but now the operation fails. After selecting the location for the backup and clicking OK, the hard drive light comes on but goes out after 15 - 30 seconds. The progress bar does not move. I've waited and waited but nothing further happens and the server doesn't respond. The only solution is to push the power button and let the server re-boot. Very occasionally the backup will run for a minute or two and the progress bar might get to about one third of the way across, (in which cas ...Show All
.NET Development problem reading xml data
Hello, I probally am doing something wrong, please note that this xml data can be read with xml notepad 2007 fine. I have the following code: Dim UPS_BILL As New System.Xml.XmlDocument UPS_BILL.Load( "C:/UPSXML.XML" ) TextBox1.Text = "UPS XML DATA:" & vbCrLf If IsDBNull(UPS_BILL.SelectSingleNode( "UPS_EBR_BILL/XMLBillFileVersion" )) Then <--- Errors here Else TextBox1.Text = TextBox1.Text & UPS_BILL.SelectSingleNode( "UPS_EBR_BILL/XMLBillFileVersion" ).InnerText.ToString End If i get the following error: System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object." Source="UPS_XML_WEEK ...Show All
Smart Device Development Error when closing threaded modal dialog.
Hi, I am getting ThreadAbortException when my ShowDialog completes its work. I have created a thread and called DisplayInformation, which creates form instance and call its ShowDialog (means form displayed as Modal). In the form I have a button by clicking on it, I set the DialogResult to OK. Whenever I press that button the thread terminated abnbormally with following exception. This behavior is for CF2.0 and PocketPC 2003 SE emulator. Sometimes it work on Device. ERROR: ThreadAbortException at Microsoft.AGL.Forms.WL.SetVis() at System.Windows.Forms.Control.set_Visible() at System.Windows.Forms.Form.ShowDialog() at UtilitiesThreadedDialog.DisplayInformation() at Utilities.ShowInfo() at WorkItem.doWork() at System.Threading. ...Show All
Visual Studio 2008 (Pre-release) Mouse-less ListBox - keystroke is being eaten
I have a very simple scene - A single ListBox control with 5 items added. I want the first item selected upon initialization, and to allow the user to use arrow controls to scroll through the list. After initialization, I am doing the following: MenuListBox.SelectedIndex = 0; MenuListBox.ScrollIntoView(MenuListBox.SelectedItem); MenuListBox.Focus() So this successfully sets the the first item as selected, however, it takes two user actions to select the next ListBoxItem (i.e., you have to hit the down arrow twice. Which is really counter-intuitive. I am not sure who is consuming the first down arrow event, but my guess is that it is moving the focus to the first ListBoxItem (which I guess I actually want to have focus initially). ...Show All
Visual Studio Team System Accessing the TFS through a proxy
hi, i am currently trying to access my TFS via a TFS proxy. while the direct access t the server works fine, the connection to the proxy fails every time. the error mesage is: The source control proxy 'dephbrsaa1msme2' is not responding, so the request will be sent to the main server. Please verify your settings. Additional information: TF30063: You are not authorized to access Microsoft-IIS/6.0. google and the msdn board do not really cover this subject, but i must admit that i am rather new to the subject. the iis seems to work, and i have absolutley no idea grant authorization to my user. i would apreaciate any help/suggestion. thanks in advance calavera thank you! it seems that this has solved the iss ...Show All
Visual Studio 2008 (Pre-release) Using a Setter in a DataTemplate's DataTrigger, to modify a Property of data object?
I have a DataTemplate for ListBoxItems, in this template I would like to use a DataTrigger that triggers on the ListBoxItem's "IsSelected" property beeing set to false, to change a property of that databound object. Is this possible with pure XAML (I.E instead of subscribing to the ListBox' SelectionChanged event, and from there change the property.) >>You wouldn't happen to know why this isn't possible (Having a "setter" in a "trigger" in a datatemplate that allows for setting properties of the databound object ) The scenario was never thought of in the development process, or is it something that I'm missing that makes it obvious that this shouldn't work It's becaus ...Show All
SQL Server Trying to setup ODBC link to SQL 2005 express
Hello All I am trying to use SQL 2005 express as a datasource for a mailmerge with Word 2000. I have created a ODBC link successfully. I have enabled all the protocols. When I open the ODBC link, all I see is a ODBC drop down. I cant see or select any database tables When I open the dsn I get a dialog caled Header Record Delimiters. I accept the defaults and then I get another Dialog called Mail Merge Recipients with a whole lot of connection info, but no sign of any database tables. Any Ideas If you use the same login for the server/database, there could be several configuration differences like. 1. Connecting to a different instance 2.Connecting to a different database (if you do not ...Show All
Visual Studio Team System Stopping a running Build...
So, I think I have totally messed up my MSBuild script and the build appears to continue to run on the build machine and is hung during sync of the files... The output I have from the intermediate BuildLog.txt is as follows: Build started 9/12/2006 1:59:52 PM. __________________________________________________ Project "d:\__buildDir\Teamlook\TLRelease\BuildType\TFSBuild.proj" (EndToEndIteration target(s)): Target InitializeEndToEndIteration: UpdateBuildNumberDropLocation BuildNumber='TLRelease_20060912.7' DropLocation='\\nelson\Builds\TLRelease_20060912.7' Target CoreClean: Removing directory "d:\__buildDir\Teamlook\TLRelease\BuildType\..\Sources". Target InitializeBuild: Creating directory " ...Show All
