MarkBuckland's Q&A profile
.NET Development Getting truncated socket bytes
Hi, I am listening to a port for data but I am not able to recieve whole data, I only get truncated data. Client sends me data that exceeds 40K and the data I recieve in my callback function is always 8K to 9K. I dont get the rest of the data. I think the data size is too big to come in one go and hence it comes in 2-3 sub-packages but my call back function only gets called once hence I am getting truncated data. I am sending the code...Is there anyway I can recieve complete data sent by client Public Function ConnecttSocket(byVal iPort as integer) Dim _sHostName As String Dim _iLocalPort As Integer = iPort Dim LocalIp( ...Show All
Software Development for Windows Vista Tiny question about MSDTC behaviour
Can MSDTC abort\rollback transaction if I create instance of COM-object (COM object marked as "Transaction - Not supported" in "Component Services" snap-in) during "transactioned" part of .NET code Which way MSTDC will act Alexey, MSDTC can abort a transaction at any time. By creating a COM+ object marked "Transaction-Not Supported" you will ensure that the code that runs in that component will not participate in the transaction of the caller (if any), nor the component will create a transaction of its own. I don't understand what you mean by &quo ...Show All
Visual Studio 2008 (Pre-release) New exception in Beta 2 makes no sense?
I do not have a clue on what this exception means. From the stack trace I see none of my code in the call stack. It appears to be a problem with applying a property value that changes the template of an element. Any help would be welcome. "Dispatcher processing has been suspended, but messages are still being processed." at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at Syste ...Show All
SQL Server Should I use Notifications for this?
I'm new to learning the notifications architecture and would like to know how heavy into learning it I should go for my project. I have a service the will allow websites to send info to a client application. The app gets downloaded by members of their service. There is the client and the website module for the client. The user can have mutliple website modules. The websites send a soap update of the info that they want to send to the client to the server. The server acts as a messenger and relays the info to the client. The server performs stat and security on the updates prior to sending to the appropriate client. ...Show All
Visual C++ VS8 2005 Projects only work on my PC
Until recently I've been using VS.NET 2003, now I have VS8 2005. And none of the project I make work on other computers. They only work on my PC, when i try to run the program on another PC I get this error: C: \FilePath This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem . Why is that How can I fix it Also, when I compile VS.NET projects with VS8 2005 they work fine, but when i make a project with VS8 2005 and build it with VS8 2005 is when it doesn't work. File path File-path Filth Footpath Telepathy Edit... Revert t ...Show All
Windows Forms DataSet designers and connection
I am considering using the dataset designer for my project however, I am concerned that this means the connection string will be hard coded. Ideally I would like to have the connection string maintained in the app.config file so that deployment will be more flexible. How can I have my cake and eat it too You only have to change the&n ...Show All
Windows Forms Differents types of ListBox Control
Hi, I'm looking for few differents type of ListBox control. I'm looking for: - Multicomlumn ListBox (I need to show more than one field of each listitem) with LookUp. - I need I dual Listbox with the same issue than the first bullet. I need this control to pass item from one list to the other but I need to show extra info of each item and I need to have a lookup method in one of the list. Anybody can HELP ME REGARDS Alejandro ...Show All
Visual Studio Team System Undo add of solution/project
If you have performed addition of previously unbound solution/project to TFS source control, and want to undo the operation, there are several gotchas. First, you perform "Undo pending changes" to undo pending Add change. All is kool, the operation is undone and it is possible to work without source control as before. But let's say that you finally decided to add the solution/project. Several findings here * "Add to SC" functionality is not available! Ok, I have undone the operation but now I do want to add my solution! Workaround: must go to File->Source control->Change source control, and there one will discover that there s ...Show All
SQL Server SQL 2005 SP1 on 64-bit cluster
When I run sp1 on the active node of a 64-bit cluster the setup just hangs when it gets to the Database services part. It does not return any errors as mentioned by others in this forum. I also do not have SqlSupport.msi in the add/remove programs (one suggestion on this forum was to uninstall it reinstall). I have let it run for up to 12 hours with no result. There is no SQL9_Hotfix_KB913090_sqlrun_sql.msp.log file only SQL9_Hotfix_KB913090.log this is the content 05/09/2006 12:41:12.274 ================================================================================ 05/09/2006 12:41:12.274 Hotfix package launched 05/09/2006 12:41: ...Show All
SQL Server Problem restoring database with encrypted columns to different database or server with encrypted columns.
I need to start encrypting several fields in a database and have been doing some testing with a test database first. I've run into problems when attempting to restore the database on either the same server (but different database) or to a separate server. First, here's how i created the symmetric key and encrypted data in the original database: create master key encryption by password = 'testAppleA3'; create certificate test with subject = 'test certificate', EXPIRY_DATE = '1/1/2010'; create symmetric key sk_Test with algorithm = triple_des encryption by certificate test; open symmetric key sk_Test decryption by certificate ...Show All
Visual Basic How to write QUOTES to a text file?
Hello! I am attemping to write a text file utilizing My .Computer.FileSystem.WriteAllText( In Visual Basic 2005. However when I try to write a line like: varname = "value" With the quotes my string breaks up and creates a new instance. I happen to be attempting to write a VBS page for a website that needs to generate from a VB program, thus the " " are not optional. Anyone happen to know how to make writealltext write a single " mark (Quote mark) I have searched the internet for a solution and MS help and nothing seems to be what I need. Any help would be appreciated! (Im thinking there has to b ...Show All
SQL Server What's Happened to Copy Objects in Import/Export Wizard?
I have just upgraded to SQL Server 2005 from 2000 and went to export some objects to another server and found i no longer can - well at least the easy way. Can anyone tell me what has happened to Copy Objects in the Import / Export Wizard Where can i find it now Regards, John I'd never heard of "Connect", strangely enough. I just thought you were speaking gibberish. Thanks for pointing them out to me. I've just submitted these as bugs (a search for similar things turned up nothing). ...Show All
SQL Server Save Report .rdl including Data
Where is the option in SSRS 2005 to save a report .rdl with data so I can send it to others for troubleshooting It appears to work for me with SRS 2005. I ran a report the first time and it took about 20 seconds, the second time using the same parameter with a change to a label it took about 2 seconds. ...Show All
Smart Device Development How to build Visual Studio 2005 Smart Device CAB files?
Most of my apps are written in VB.NET. I have been convert all my apps over to VS 2005 from VS 2003. I have a lot of Smart Device Programs I have also converted over. Now this is my issue in VS 2003 under the build menu you had Build CAB Files. This would very fast and easy create all your CAB files. In VS 2005 I no longer see that option so how do I do this in this new version I've been using 4.0 for a while. Not really tried it with Windows Mobile 5.0, but no problems with it. Devices I'm using are XdaIIs Get it from here -> http://download.microsoft.com/download/c/4/5/c45f8f83-6383-43d7-840b-cb9638484e4d/setup.exe ...Show All
SQL Server Background image based on Page number
I would like to be able to change the background image of a report to a preset image based on the page the user is on. Does anyone know if there is an easy way to default the background image based on page number or should I make this custom Thanks, Tristan I think you are going to have to try something along these lines. I only know how to do part of this, so hopefully someone else can fill in the rest. Open up your report, and view the report in Design view. Single click on the background to ensure that nothing is selected. Now click "Report" in the menu, then go to "Report Propertie ...Show All
