May0's Q&A profile
SQL Server login problems after database move
I'm trying to move a darabase from one sql2005 server to another sql2005 server within the same domain. I have tried both backup/restore and attach/dettach and get the same problem. With this database I'm using a SQL Server user, the user name is on both servers with exactly the same password. On the new sql 2005 server after I have moved the database to it, if I goto security->Users and do properties on the username. It says the user is set to "Without login" how do I change this to "Login name" thanks, martin Hi there, I believe, from your description, that y ...Show All
Visual Studio Team System Cannot debug test with [DataSource] attribute
I have a suite of tests, some of which use the DataSource attribute. However, the tests which use this attribute do not run. When the test suite runs, the TestInitialize method runs a stored procedure which populates the database, and the TestTeardown method runs another which clears it. These work fine, and I can debug them for the other tests in the suite. However, when the tests with the DataSource attribute is to run, the TestInitialize method doesn't run, and the test itself doesn't run - the Test Results screen just reports that the test ran successfully. This seems like a bug to me - any suggestions on what might be going on Thanks, ...Show All
Visual C# Compare Generics Dictionary
I've some generics dictionary objects, I want to compare if they contain the same key and value. Dictionary<string, string> a = new Dictionary<string, string>(); a.Add("A", "001"); a.Add("B", "002"); Dictionary<string, string> b = new Dictionary<string, string>(); b.Add("A", "001"); b.Add("B", "002"); Dictionary<string, string> c = new Dictionary<string, string>(); b.Add("A", "001"); b.Add("C", "002"); I want to compare the above objects, a and b are treated to be equal becaus ...Show All
Visual C++ Sending & Creating 802.11 Wireless Packets
Hi Everyone, I have been trying to look at various libraries to create my own wireless 802.11 ethernet packets but I have not had much sucess. Yet, I need to get at the level of being able to craft my own ethernet packets. I was wondering where NDIS fits into this What about Packet32.dll And, after I create a packet, how do I send it to my wireless card so that it can be sent (I'm assuming this is where NDIS comes into place) What API's exist out there for Microsoft Windows and C++ that will allow for this Looking for some direction. Thanks, Jason :) I believe your previous post at http://forums.microsoft.com/MSDN/ShowPost.as ...Show All
Visual Studio Team System How to modify Validation Level for a web test when it is called from another web test
When a web test (say web test A) (which sends a web service request and a validation rule applied) is called from another web test (say web test B); the Validation level for called web test A is set as Low. Because of which validation rule for web test A is not applied. How can validation level for called web test set as High. FYI Validation rule (which is a cutom validation rule) which is applied in web test A ' Validate that the value of ticket using ValidateTagValue If (Me.Context.ValidationLevel >= Microsoft.VisualStudio.TestTools.WebTesting.ValidationLevel.High) Then Dim rule1 As ...Show All
Visual Studio Team System Web tests failing when run from console using MSTEST
I have a web test that I have had success running from the IDE. When I attempt to run from MSTEST (Console mode the one test fails) I am successful at running the remainder of my tests from console mode. The one test that is failing is using a custom extraction rule that is in a .cs file in the test project. I have attempted to resolve this by including the cs file in the files to deploy, but with no success. The error I receive is: Request failed: Could not creat instance of rule class 'ExtractRandomUser' Thanks, Tomk While I resolved my problem by moving the custom extraction rule into an external library, it doe ...Show All
Windows Forms Executing a Stored Procedure (Update Table) from VS.Net 2005 (VB.Net Form)
Hi, Can anyone explain/show me how to call a stored procedure from within VB.Net Application. I added it to myD Data Source along with my Tables, Queries, etc... and can see it in the .xsd but am not sure how to call it. It also doesn't actually show up in my Data Sources - i guess because it doesn't display any data as just an Update Query. My ideal solution would be to not even have to use a stored procedure to update the data, as I have tried to use a query and stored procedure to populate a dataset, but can't seem to use .update as a method (as you would on a table) - so if I could do this then I wouldn't have to use a stored proce ...Show All
.NET Development XslArgumentList conversion problem: values not passed
In my previous post: XslTransform conversion problem: "White space cannot be stripped from input documents that have already been loaded.", I described problems getting an XslTransform to work. I have since been able to verify that the XmlReader option that I had tried was indeed producing data. The problem seems to be that the XslArgumentList parameters are not being set in the xsl file. The values can be verified via the debugger at the point of the calling XslTransform statement. However, the receiving <xsl:param> elements don't get set. (The xsl:param elements can be replaced with xsl:variable elements with hardcoded val ...Show All
Visual Studio Tools for Office Security policy does not permit customization to run
screenshot I have no clue what to do to solve this problem. It's a VB.Net 2005 application that starts a Word document (also created with VB.Net), which in turn load a normal Word document and fills in the CustomDocumentProperties. Both apps work as they're supposed to, but when they have to work together, I get this security warning. I tried the text below, but there is no simple Properties window (only that complex sheet with all those tabs) and no Trust Assemblies Location... Can't I just turn off this security feature The applications should run on EVERY computer without fiddling around with some stup ...Show All
SQL Server Problems With SQL 2005 SP1 (x64)
Hi, After installing SP1 onto our SQL x64 2005 box (running Server 2003 x64 R2), I have come across two problems. The first is that the install seems to fail for database services (and I see I'm not the only one), declaring the following: I haven't had a problem across a suite of x64 installs here at the bank. Disk space can be an issue as the SP install seems to require a lot. You can also run into problems if you have removed the security groups that SQL installs - there's another thread on this on this forum. ...Show All
Visual C++ Weird Spy++/VB/VC problem
Hey, Here is a wierd problem I've been breaking my head over for the last couple of days........ I am writing a program in VC which reads information off a window written in VB using the windows handles which I obtain programatically (and which can be viewed by Spy++). The object that I want to read stuff from contains 4 other objects 1. A drop down 2. Label (which I want to read) 3. A Tree 4. Some gif Through Spy++ when I view this object within the VB application it shows it as "ThunderRT6UserControlDC" ( which is a VB thing ). However I cannot view 1 and 2 through Spy ++ while I can view 3 and 4....now I know that 1 and 2 are a part of th ...Show All
Visual Studio 2008 (Pre-release) InnerChannel.SessionId always null on the client proxy
Hi, I have a simple echo client and service up and running. I'm using wsHttpBinding with reliableSession enabled. I've got a [ServiceContract(Session = true)] attribute on the service interface and a [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)] attribute on the service implementation. On the service side I can easily read the current session id using OperationContext.Current.SessionId, but I can't seem to read it on the client side. The most obvious property echoServiceProxy.InnerChannel.SessionId is always null. What am I missing Cheers, Sean. I refactored my code an ...Show All
.NET Development How can I make my GUI more responsive during a loop?
I'm having a windows forms app that i'm adding several controls to a panel and i want the user to be able to watch the controls be drawn and cancel adding etc... what can i put after each iteration of the loop to make the gui a little more responsive Thread.Sleep(100) seems to just make it slower but no more responsive and still doesnt' draw the controls. Hi, You need to add a call to Application.DoEvents() inside your loop. For more information see: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemWindowsFormsApplicationClassDoEventsTopic.asp Regards, Vikram ...Show All
Smart Device Development Installation of Compact Framework 2.0 failed. Why?
Hi all, can somebody tell me why my installtion of the cf 2.0 on an HP 2490 PDA failed Log file of installation: 26/02/2006 23:14:42: Entered Install_Init(). First Call: Yes Previously Installed: No Installation folder is: '\Programme\.NET CF 2.0'. 26/02/2006 23:14:42: Build 2.0.5238.00 26/02/2006 23:14:42: Device CPU: 'ARMV4I', 05020000 (84017152) 26/02/2006 23:14:42: PocketPC 5.01 26/02/2006 23:14:42: Our trust level is: 2 26/02/2006 23:14:42: User LCID: 1031 26/02/2006 23:14:42: System LCID: 1031 26/02/2006 23:14:42: Invoker's command line: '0x822bd84e-0' 26/02/2006 23:14:42: Memory status, K -------- ...Show All
Visual Basic Can't select folder of new project
Can't select folder of new project If I select new project, the default is WindowsApplication1. I rename it. However, there doesn't seem any way I can choose where to locate the project. I created a number of projects in my folder VS2005Projects, so there must be a way. I must have done something that took the choice away. I searched the forums for new project folders, location of new projects and a number of other variations, but there were no useful results. I must be missing something very simple. Can anybody help me dennist Mea Ahuz, as we say in Hebrew. 100%. Thanks. dennist (In ...Show All
