R.K.S.'s Q&A profile
Visual Studio 2008 (Pre-release) Not getting System.ServiceModel Namespace in Framework 2.0
Hi, Is System.ServiceModel Namespace available in Framework 2.0 If it is available then why am not getting that namespace in my system Thanks, Make sure you do have .NET 3.0 installed. You will be able to reference to System.ServiceModel from C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\System.ServiceModel.dll ...Show All
Software Development for Windows Vista Accept() error when spawning a task
I am trying to spawn a task to listen for socket connections which will then spawn a task to receive from the connection. The problem I am having is that when I spawn the task the accept() returns an error of ENETDOWN (50) saying that the network is down. However, if instead of spawning the listening task I simply call the function the accept() returns fine. Here is the code... //Spawning a task int main() { taskspawn("listenTask", ListenForConncetion, 100, 0); Time t = {9999, 0}; Sleep(&t); Exit(0); } void ListenForConnection(void) { bind(listenSocket, (sockaddr *)&listenSocketInfo, sizeof(listenSocketInfo)); ..... listenSocket = socket(AF_INET, SOCK_STREAM, 0); ..... while(1) { acceptSocket = acce ...Show All
.NET Development [otp]Culture under IIS?
what is the logic for CurrentCulture while executing stuff under IIS i have something deployed locally, and while my desktop code CurrencyDecimalSeparator is dot, my IIS-managed code is having CurrencyDecimalSeparator set to comma. i wonder how i control this, is this client-dependant i am running a win xp eng with Region set to russia [default CurrencyDecimalSeparator is comma, but i've changed it so it' a dot - and my desktop applications do have a dot as CurrencyDecimalSeparator ] This question is not related to the System.Net classes. Please search for an appropriate forum at http://www.microsoft.com/community or ask in which forum you should post here: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=881&S ...Show All
SQL Server Sql 2005 - Partition a table whose partitioning key reside in another table
I am having the about 1 million row of the data in the candidate detail table. I want to do a partitioning on the table to improve the performance. But problem is my partitioning key resides in other table. There is any way to achieve this Candidate Details ---------------------------------------------------------------------------------------------------- EmpID | Name | Dept 1 Ravi Engineering 2 Kishan Engineering 3 tom Engineering Domain Details -------------------------------------------------------------------------------------------------- ...Show All
Visual Studio Team System Multiple Solutions for one Team Project
Hi all, I setup a new Team Project and now I want to add 4 different solutions into this project. The first 2 worked fine and are now checked in, but when I want to check-in the 3rd i get this error message / warning: (Imageshack) Hello, My guess is that Solution3 includes project (or file) which is not located under it (it's so called multi-rooted solution). It can look like this |_Solution1 |_Solution2 |_Solution3 |_Project_X where Solution3 includes Project_X. To avoid this warning you would need to move this project_x under Solution3. ...Show All
SQL Server Subscription not displayed
Hi, I have setup Merge replication with 2 publishers and one subscriber. On the subscription machine I can see publisher 1 listed under local subscriptions but not publisher 2 . I have created the second subscription on publisher 2 and also tried to create the subscription again on the subscription machine but i get an error saying the 'Subscription already exists'. Neither do I see the second subscription nor does it work as if it is subscribed to Publisher 2 . What could be going wrong. I would appreciate any help. Thanks tribal Can someone please confirm my previous assumption that the 2 publishers and 1 subscriber model is not valid anymore ...Show All
Visual Basic Drag & Drop icons from Desktop onto control
Hi all, I have written a menu app which I have to browse for files, to tell it the file name / path. I would like to Drag & Drop icons onto the form / control from the windows desktop. I have a basic understanding on how to drag/drop from 1 control to another (both on the form ofcourse), but when i try to drag an item from the desktop the mouse pointer changes to a circle with a line through it. I am assuming that Vb only lets you drag items from the form onto iteself. Is this correct Code sample would be appreciated. Thanks in advance. Thats great nobugz. Works well. But lastly- How do I get the file path which the shortcut points to I know I could do an IF statement to see if the extension is .LNK to tes ...Show All
SQL Server Problem when passing parameter to Execute SQL Task
Hi! I have a execute sql task to create and drop logins. I want to create/drop the ASPNET login, but I need to pass the domain using a parameter. So I mapped a parameter: Variable name: User::serverName Direction: Input DataType: Varchar Parameter Name:0 and the sql is the following: CREATE LOGIN [ \ASPNET] FROM WINDOWS But I get the error: Executing the query "CREATE LOGIN [ \ASPNET] FROM WINDOWS failed with the following error: "Windows NT user or group ' \ASPNET' not found. Check the name again.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. What am I doing wrong ...Show All
Audio and Video Development XPath Node Set Functions
Does any know if node set functions, such as count or position, are vaild to use in the HDi world I've been trying, but I keep having problems getting a valued returned. Below is the line that is giving me the issue. It may not be 100% correct because I am writing this from home without the exact code in front of me. I believe it's close enough to get the idea across though. var position = this.savedbookmarks.evaluteXPath(position( //bookmark[@time ="+current+")],this.savedbookmarks.documentElement); From what I can remember, the evaluteXPath call returns a node list. In this case, it's returning a node list with a length of zero. Is there maybe a different way I should be going about this ...Show All
.NET Development AccessViolationException when issuing BeginConnect
I've created some code which runs a Socket asynchronously. This code has been fine until recently, where now, any time the client socket is either ungracefully exit, or if the connection attempt fails, the code fails with an unhandled AccessViolationException producing the following: System.AccessViolationException was unhandled Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Source="System" StackTrace: at System.Net.UnsafeNclNativeMethods.OSSOCK.WSAGetOverlappedResult(SafeCloseSocket socketHandle, IntPtr overlapped, UInt32& bytesTransferred, Boolean wait, IntPtr ignored) at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallbac ...Show All
Software Development for Windows Vista Privacy Policy Schema
So, I noticed that the privacy policy is an xml file extension or was it jus a dud Does anyone know the schema for that I love William. This guy's eyes are always open. I will find out what is supposed to be in there. I did that SOOOOO long ago, I really don't remember. g Garrett Serack | Program Manager |Federated Identity Team | Microsoft Corporation blog: http://blogs.msdn.com/garretts ...Show All
Software Development for Windows Vista Spurious 'device in use' error from waveInOpen and IAudioClient::Initialize
I have discovered what appears to be a Windows Vista bug. If I change the default recording device in the Sound applet (mmsys.cpl) while an application is recording, all future calls to waveInOpen (WAVE_MAPPER, ...) or IAudioClient::Initialize for the default audio endpoint fail with error code MMSYSERR_ALLOCATED or AUDCLNT_E_DEVICE_IN_USE respectively. To demonstrate the problem, proceed as follows: Start SoundRecorder Start recording While recording, go to the Sound applet and change the default recording device Stop recording (and save the file) Try to start recording again SoundRecorder then reports 'An audio device cannot be found' Restarting SoundRecorder does not help The situation can be resolved by ...Show All
Smart Device Development Http Image File Uploader for .net compact framework 2.0
Having major problems trying to upload a file (an image) to a webserver via http post, keep getting a WebException.. Tried using the example code available at: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/httpcomm.asp ---------- Code -------------- private void menuItem2_Click( object sender, EventArgs e) { String httpResponce = UploadFileBinary( @"\Storage Card\test.jpg" , http://www.myServer.com /upload.php ); MessageBox .Show(httpResponce); } public String UploadFileBinary( string localFile, string uploadUrl) { Cursor .Current = Cursors .WaitCursor; HttpWebRequest req = ( HttpWebRequest ) WebR ...Show All
Visual Studio Team System How to run third party(TestPartner) UI scripts under VSTS?
Hi there, I am new to VSTS Test System and I am trying to run Compuware's TestPartner UI script through Visual Studio and encountering a message like below, "Key x of item not found in collection" where x = name of the TestPartner script I have added TestPartner Script into Compuware's Test Functional suite and trying to run the script where it has to invoke an .NET executable on the desktop, get inside the app, check for some values in the grid, close the app but its generating the above message when it tries to run. I created one more TestPartner script just to test .NET controls which opens IE 6.0 and goes to Tools->Options and comes back. This works and does the job but generates the above message after runn ...Show All
Visual Studio Express Editions How to receive current row number to use it later
I'm just learning Visual basic 2005 Express Edition and I'm writing a simple application where I use DataGrid. While navigating in it I would like to open a new form filed with the data from current row. I know there is a possibility to open a different form set on a certain position but I would need to receive the row number from my DataGrid. How can I do that or maybe there is an easiest way to set the position in the different form You can only use the SelectedRows property if you have the SelectionMode set to FullRowSelect or RowHeaderSelect. Assuming that you have, something like the following should work for you: This assumes that you have another form "Form2" which contains three l ...Show All
