Mike Ober's Q&A profile
Visual C# Acces to ArrayList of array.
How can i access to array witch is item of ArrayList ArrayList arrText = new ArrayList (); while ((line = myStream.ReadLine()) != null ) { string [] split = line.Split( new Char [] { '#' }); arrText.Add(split); } Now i want to print second element of array of second item of ArrayList ;) string[] line = (string[])arrText[2]; string s = line[2]; or more condensed: string s = ((string[])arrText[2])[2); ...Show All
Visual Studio Team System Specifying user names for load test
Hi, We have a web app that uses forms authentication. Each user can only be logged in once. If you try to log in with the same user name again, you get kicked off. What is the best way to handle load testing in such a scenario I don't really want to write a separate test for each user. Data-driven testing doesn't work here, as it calls the test sequentially for each row in the database. Is there some way to specify at the load test level that I want to simulate 200 users and that I want user1 to be X, user2 to be Y, etc. The only thing I found at that level is the number of users you want to simulate and how you want to generate the load (c ...Show All
Visual Basic Network Permissions
I have an application that looks at an allows a user to set their default printer from options in an INI file. If I run it from their c drive everything works fine. If I copy it to a network drive I get the error below. Please let me know if you have any suggestions. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Security.SecurityException: System.Security.Permissions.SecurityPermission at SetPrinter.iniFile.GetString(String Section, String Key, String Default) at SetPrinter.Form1.CurrentPrinter() at SetPrinter.Form1 ...Show All
Software Development for Windows Vista Vista SDK Installation Failed
Hi!! I recently downloaded Windows Vista SDK. I have downloaded the img image file. Using virtual DVD Rom drive I have mounted the same and run the installation from the virtual DVD Rom Drive. I currently have .NET framework 1.1(with hotfix) and .NET framework 2.0. I have no problems in installing Express Editions of VC++ and C# 2005 IDEs along with SQL Express. I have installed WinFX Runtime Components 3.0 Beta 2 before running the setup of Vista SDK and the OS I am using is Windows XP Home Edition SP 2 (OEM for HP). Can anyone help me out on this one The following is taken (in its entirety) from SDKSetupLog.txt ...Show All
Visual Studio Team System Unable to connect to BIS server
Hello everyone, I was getting this problem on several machines while trying to connect to a team foundation server from vs.net. Through reading posts I began to understand the problem as being caused because VS.NET was trying to connect to a server it was already connected to. So I went into the file, C:\Documents and Settings\user\Application Data\Microsoft\VisualStudio\8.0\Portfolio Explorer\TeamExplorer.config and edited out all of the listed servers. THen when I start VS.NET, i no longer get the error and it behaves normally. The problem is, you have to do this every time you open VS.NET. I dont know if this will help ...Show All
Visual Studio 2008 (Pre-release) WinFX Runtime Components 3.0 Beta2 Farked Up
[05/24/06,22:13:34] VS Scenario: [2] CPrevProductInstalledCheck failed : <font face=Verdana size=8pt> Thank you for participating in the Beta program. You must uninstall all pre-release products in a specific order before you can continue with setup. For detailed information, see the <a color=#3F4F7F HOVER-COLOR=#C3120C href="http://go.microsoft.com/fwlink/ LinkId=54981">uninstall support page</a> and the <a color=#3F4F7F HOVER-COLOR=#C3120C href="http://go.microsoft.com/fwlink/ LinkId=65603">readme</a>.<br> &nb ...Show All
Architecture VS 2005 and multiple projects.
I was told by someone that Visual Studio 2005 has moved away from multiple projects in a solution. I don't believe this for a second, but I wanted to see if 1) it really was true and 2) if there is any info I could draw from to counter that argument. Also, do many of you consider the information in this article: ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dndotnet/html/designnetapp.asp ) a bit outdated And by outdated I don't mean unusable, I just mean that it seems a bit simplistic for many projects. Kris Kramer wrote: I was told by someone that Visual ...Show All
Visual Studio ReportViewer Control
Hi, I've just installed VB 2005 Express, SQL Server Express and the ReportViewer control. I'd like to be able to produce simple reports with this edition but i don't seem to be able to do it. The option to add a report to my project just doesn't show. Any idea why this is happening Thanks. I wish there was decent documentation for the VWD ReportViewer add-in. As of right now it is useless for me, as I cannot see how to connect datatable fields to reports. Info provided for Visual Studio is not applicable to VWD. EDIT: Found what I needed. the article I read (VSM) mentioned ...Show All
.NET Development Dataset serialization
I have an issue with the Dataset serialization. I have a class, say BaseDataSet which inherits from the Dataset. More classes inherit from BaseDataSet. I would like to pass on the object inherited from the BaseDataSet back to the client via a web service. Before passing on I cast the derived object to BaseDataSet type. On the client, I am not able to down cast the dataset back to the specific class which is the type of dataset passed across. Are you applying the serializable attribute to all your descendents [ Serializable ] public class BaseDataSet : System.Data. DataSet { } [ ...Show All
Visual Studio 2008 (Pre-release) Compare DLINQ, NHibernate and Typed DataSet
I'm quite confused with the abilities provided by the above three items. Could anyone give me some guidelines in choosing between these items When is the best time in using them All three provide a way to access data from relational databases but there are important distinctions. First, to be clear, current DLinq bits are a part of a preview - i.e. not for production use unlike typed DataSet. DLinq - now called LINQ to SQL is due to be shipped in the "Orcas" release of Visual Studio and .NET Framework. So all the comments below should be considered in that context: LINQ to SQL and nhibernate are both ORMs. Typed DataSet is ...Show All
SQL Server Transfer Logins: The source server can not be the same as the destination server
I am replacing a server so I need to migrate everything. The old server is running SQL2000 and the new server is running SQL2005. I am trying to write an SSIS solution to migrate everything for me and I can't even get started because I get the error "The source server can not be the same as the destination server". At the same time I am changing the name of the Domain so the two machines arenot even members of the same Domain. I am doing this over the Internet so the machines are not even on the same subnet. The only thing I can think of is that the machine names are the same so even though the domains are different therefore the full names ...Show All
Smart Device Development Activating speakerphone on Windows Smartphone
I'm trying to activate the speakerphone on my HTC-derived (Qtek-8300) Smartphone 2003 with no success. So far, I've tried the following approaches. TAPI: After initializing TAPI and veryfing the device's capabilities I made the following call: phoneSetHookSwitch(hPhone, PHONEHOOKSWITCHDEV_SPEAKER, PHONEHOOKSWITCHMODE_MICSPEAKER). The call fails with PHONEERR_OPERATIONUNAVAIL despite the fact that the device should support this feature. In fact any phoneSetHookSwitch call fails regardless of the parameters supplied. Synthesizeing key strokes ..by using keybd_event with both VK_F3 and VK_TSPEAKERPHONETOGGLE (VK_F16) alth ...Show All
Visual Basic setup - custom dialog
I have a setup project that I put a check box dialog before the installation 'progress'. With 2 check boxes that are: Desktop Icon, and Quick Launch Icon. So how do I check if a check box is selected so then I can place an icon-shortcut on the Desktop and/or Quick Launch Unfortunately, Windows Installer doesn't provide any way to conditionalize a shortcut. However, if you conditionalize the file it points to (which is usually not an option), the shortcut won't be created if the file isn't installed. HTH ...Show All
Windows Forms Can't close a word application object after opening it...
Hi. I'm using the code below to open a Word Application, print, then close the document, and finally kill the Word instance (so I thought). And it's just not working. WinWord.exe still shows in the Task Manager each and every time this code is run. The list gets so long, that the computer runs out of memory. Any& ...Show All
SQL Server SSMS Express: Create TABLE & INSERT data into table - Error Msgs 102 & 156
Hi all, I have SQL Server Management Studio Express (SSMS Express) and SQL Server 2005 Express (SS Express) installed in my Windows XP Pro PC that is on Microsoft Windows NT 4 LAN System. My Computer Administrator grants me the Administror Privilege to use my PC. I tried to use SQLQuery.sql (see the code below) to create a table "LabResults" and insert 20 data (values) into the table. I got Error Messages 102 and 156 when I did "Parse" or "Execute". This is my first time to apply the data type 'decimal' and the "VALUES" into the table. I do not know what is wrong with the 'decimal' and how to add th ...Show All
