Tom Schaefer's Q&A profile
Visual Studio Team System TypeLoad Exception when trying to run Unit Test
Hi, I'm getting a typeload exception when trying to run a unit test. The assembly under test is named MyCompany.XXX.YYY.ZZZ The unit test assembly is named MyCompany.XXX.YYY.ZZZ.Test The unit test assembly has one class in it which contains nothing but the boiler plate code for a unit test. It simply writes a line to the output windows when the test method is executed. When I try to execute the test, a get a typeload excpetion on the MyCompany.XXX.YYY.ZZZ.Test.UnitTest class. I played around with it for a while. I managed to make the exception go away by changing the assembly same to something simply like MyTest. Any idea of what could be ca ...Show All
Windows Forms All controls vanished !!! (VERY URGENT)
Hi, I am in a big soup ... My C# code threw an exception and all my controls have vanished from the design view. Their declarations are still existing in the C# code. Please tell me how to get back my controls in the design view - there were many of them and it will be a pain to recreate them again ! Awaiting a reply, This is VERY& ...Show All
.NET Development Best Practices for n-tier on .net 2
Hello. I usually in asp.net 1.1 make my web application, then I created a class library in which one I put my objects like (persons, authors, books, etc). In another class library I put my Data Access Logic Layer, this one is used by the above class library. and the object class library is used by the web application. How this should be done in asp.net 2.0 I tried to make a class library but I cant add a web.config to that classlibrary to put the connection string so where do you recommend me to put it Now that theres one folder more called app_code When Should I put my classes there and when should I put classes on a class library pr ...Show All
SQL Server question on using xp_cmdshell
I am trying to run an exe file like: EXEC master.dbo.xp_cmdshell '\\Share\sharepoint\folder1\folder2\test.exe "input parameter"' And executing the above with the input should give me an output.But the input parameter is not recognised. Any help. Thanks you may want to note that XPs are to no longer exist after SQL 2005 via this quote that is everywhere in BOL2005: "This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Use CLR Integration instead.&q ...Show All
Windows Forms Project Outut Question, Please Help.
Hey everyone how are you doing I am new to the board, and I am new to programming and Visual Studio .NET 2003. I am teaching myself both of them starting off using “SAMS Teach Yourself Visual Studio .NET 2003 in 21 Days”. I am on day four, which is deploying windows forms applications. The book wants me to create an .MSI&n ...Show All
Visual Studio Express Editions Total noob...how do i learn to use vb2005express
hey, i'm a total noob right now...i havn't had any visual anything b4, and the in-program help is useless to me, and so is the microsoft,msdn website. Any1 have any recomendations of what books/websites can help me learn with examples and explanations at my level I am already getting 2 books -- Microsoft Visual Basic 2005 Express Edition Programming for the Absolute Beginner and Wrox's Visual Basic 2005 Express Edition Starter Kit (Programmer to Programmer) . any other ideas Thanx ps-sorry if this is in the wrong place, i haven't figured this site out yet... The Wrox book stands a good chance of bei ...Show All
Windows Forms Find the line control
Dear all: I want to find a line or Graphics object for winform like the line object (---->) in office word . Regards judy thanks! my projects code used Graphics.DrawLine before .. but i want to instead of using control like line control in visio. the control can support dragdrop method or else ~~~ &nb ...Show All
Visual Basic synchronization
Hi, Is there any way to "Lock" a portion of a code , so that it can be used by only one user in a multiuser application I mean I hav a code where a database update is done. I want to lock that portion "USING VB.NET" (not using database) so that no other user can access that code in the same time. Any Solution System Mutexs. Please see: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemthreadingmutexclasstopic.asp ...Show All
Software Development for Windows Vista How to CreateProcess NOT as administrator
One of our modules is an executable that will always be run as administrator (after getting permission from user). One of its screens allows the user to run a different executable, which the code currently does by CreateProcess. The problem is that since the first process is running as admin, CreateProcess has the second process run as admin also. This is undesirable because it is a security breach (the second process can open browse dialogs that should not have admin privileges in this scenario). How do I get the second to run without admin privileges I do NOT want attach a manifest to the second exe that says it does not want admin privile ...Show All
Windows Forms ErrorProvider's validation events gets lost between tabControls.
First off I have used the ErrorProvider before and understand the concepts and have placed them successfully on other dialogs. But I have run into an issue where the validation event goes missing...I can recreate the scenario here, it involves two tab controls, a button and a textbox: Working Scenario Create a Winform application. Add an errorprovider component. Add a tab control (#1) to the form. To the winform: Add a textbox which will handle the validating event. Override the validating event of the textbox to show an error message. To the tabpage 1: Add a button which will signal the validation event. Add the SetIcon alignment to the w ...Show All
SQL Server GUID in Mobile SQL
I have been trying to setup the GUID new GUID when I add a row into a Pocket PC WM 5.0 Mobile SQL (*.sdf) utilizing C# through Visual Studio 2005 - targetting Pocket PC Smart Device Any help would be most welcome... Thanks Uhm, I can't really get the problem you have from your text. Describe it in more detail please. ...Show All
Visual Basic Compiler Problems even though code is sound.
Hi, I'm having a strange problem with Visual Studio 2003 and I'm hoping someone can help. The problem is I'm getting compiler errors even though the code is fine. Here's an example.... This is code from a form I have... Public Class frmGasDiagram Dim udtGasDiagram As clsGasDiagram In some methods of the form I get errors saying the type udtGasDiagram cannot be used as it hasn't been defined, but it is. If I change the access modifier to public/private or whatever then the problem goes away and the program runs fine. Then after the application is closed and I'm back in the IDE the error appears again even though no ...Show All
.NET Development GAC Install for Admin Only?
My program is using Junfeng's GAC API code to install files into the GAC. The code needs to run with any level of user permission, e.g. Guest. I used CAS to give my strong-named app Full Trust, but I still can't install into the GAC when I run as anyone other than Admin. Is there a permission set in CAS that I can use that will allow my app to install into the GAC Or is Admin the only user able to install into the GAC The only other work around I have is to create a service user with Admin privilages and switch to that user before installing into the GAC. But this is kinda crude and people don't like setting up special users on their mac ...Show All
Visual Studio Team System Customizing work items - Remaining/Completed work
Hi, I am going to try to customize the Task work item in the MSF for Agile process template. My plan was to change the 'Remaining work' and 'Completed work' into not having NumberFormat="WholeNumbers", since we would like to have half hours and quarters in the field. My question is: will I shoot myself in the foot Is the database defined to have a Int32 in that field Is there any other problem that may arise Regards, Thomas L The task type defines remaining work and completed work as doubles in Beta 3 Refresh and the RC build. refname="Microsoft.VSTS.Scheduling.RemainingWork" type=" ...Show All
Smart Device Development Running a VB application
Hi all, I apologize if this is a very basic question (no pun intended).. I just wanted to know whether there was a way to run my application (debug, see whether it works) without deploying to the Emulator or Device Coz it takes quite a while to deploy, was just wondering... sorry if that was a stupid question. Thanks anyone.. One feature that we cut in VS 2005 was 'Deploy to Computer'. However, you can still enable it by following the instructions given here http://www.danielmoth.com/Blog/2005/01/deploy-to-my-computer.html However, be warned that this is totally unsupported :-) ...Show All
