bswick's Q&A profile
.NET Development File or assembly name <dll name>, or one of its dependencies, was not found.
Hi, I am new to .NET. I am trying a sample application in which I have created 2 components which I have placed it on COM+ component services. Both the components does database saving operation. Then I have created a WebService in which I have refered these 2 components and further exposed the functions in the components for use by webservice consumers. Then I created a simple front end application in which I have set the web refrence to the above created Webservice and used the instance of webservice exposed component and called the functions which encapsulates the function call to the actual COM+ components. Its giving me ...Show All
.NET Development Recursing Using the Directory Class
Hi folks, I haven't used the Directory class before (actually I haven't done any I/O in .NET yet) - I'm just wondering what the standard method of recursing down through all subfolders (and all files in those folders) in a given folder is For example, if I specify drive C: as my starting folder, I'd like to open that, perform an operation on all files in the folder, then open the first subfolder and repeat. When I reach a subfolder where I've processed all the files and there are no further subfolders, I need to go back to the parent folder and continue searching for subfolders that haven't been opened during this process. Is there a ...Show All
Smart Device Development Can't change Label BackColor in designer (VS2005 Final)
Hello, The environment Visual Studio 2005 Final, Smart Device Application for Windows Mobile 2003, using .NET Compact Framework 2.0. The problem I have uninstalled VS2005 Beta 2 (using the automatic uninstall tool) and then installed VS2005 Final. When I add a Label control to a blank form in the designer, I can't set the Label BackColor to a Web or Custom Color. It seems that when the underlying Form has the System BackColor "Window", it affects the Label controls. If the underlying Form has a Web or Custom color - the BackColor of the Label can be changed - however the BackColor in the list of Properties  ...Show All
Visual Basic How do I run a command line EXE from VB.NET?
I want to run the following command line program from VB.NET: rotor95.exe -d -k "password" -i "C:\FileLocation" -o "C:\FileLocation" The reason for this is that I don't want my users to have to drop out to a command line prompt in order to run a tiny program for 3 seconds. Typing in a 50 - 75 character file path twice isn't any fun either. I tried using tooltask as discussed in the MSDN2 help but it appears to work with switches (/d etc.) but not parameters (-k "password"). I couldn't get the thing to work. See the following for the tooltask example: http://msdn2.microsoft.com/en-us/library ...Show All
Software Development for Windows Vista ASP.net and workflowaborted
Hi, I have a state machine which works fine until it reaches the Completed State. At this point, it doesn't complete, but the runtime raises the workflowaborted event after a long period. Where's the problem I use SqlPersistenceService for persistence. Thanks Here is how I usually debug problems like this. Run the workflow in the debugger - but before do Ctrl-Alt-E - this brings up the exceptions dialog - check next to CLR Exceptions. This causes the debugger to break wherever there is an exception. Most likely there is an exception happening that isn't finding its way out. ...Show All
Visual Studio 2008 (Pre-release) SQL connection string
I found an apparent bug while working through the DLinq Hands-On Lab. The bug is seen when using a SQL connection string to connect to SQL Server instead of SQL Express and the connection string uses "Data Source" instead of "Server". When I used "Data Source" instead of "Server" I always got connected to the default local instance instead of the named instance I was attempting to connect to. When I used "Server" the correct instance was used. // Connects to localhost DataContext db = new DataContext ( @ "Data Source=localhost\SQL2005;Initial Catalog=Northwind;Integrated Security=SSPI;" ); // Connects to localhost\SQL2005 ...Show All
Visual Studio Team System Deleting a build type
Is there a way to delete a build type I can see the associated files in the Source Code Explorer, but it won't let me delete them from there. You also may need to Get the latest version (recursively) of the TeamBuildConfiguration directory before deleting any files. ...Show All
.NET Development That assembly does not allow partially trusted callers.
Why am I getting this I am trying to debug a C# application on my own machine, so, as I understand it, my program should have full trust. Might you be willing to provide the full exception details (including call stack listing) as returned by the exception's ToString method ...Show All
Visual Studio Express Editions reading UTF7,UTF8,UNICODE text file
Like may others it seems I'm stuck with reading text files correctly. How can I change this line Me .RichTextBox1.Text = My .Computer.FileSystem.ReadAllText (Me .OpenFileDialog1.FileName) so that it will read correctly notepad files (UTF-7 ) and any other valid text file I have added Imports System.text to my file but don't really know what to do next. I have tried various forms on encoding.xxxxx but all I get is errors. I have spent 2 days on this I seem to chase my tail looking at different treads. ps my files contain extended chars set 128-255 Thank you Thank you Thank you etc. I'm sure I hav ...Show All
Visual C++ exception: std::bad_alloc at memory location 0x0012e7f4
hello, i am porting a module from vc98 -> vc2005. this module is working fine in vc98. this is and dll exposing some functions & it is used by some exe's. the error is: First-chance exception at 0x7c91b4e1 in rcsconfigurator.exe: 0xC0000005: Access violation reading location 0x00d7d6e5. First-chance exception at 0x7c81eb33 in rcsconfigurator.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0012e7f4.. Code: bool EncryptData( char *szToBeEncryptedMessage, char * &szEncryptedData, char * &szPublicKey) { CRijndael objEncrypt; try { //Make a standard key for Encryption and Decryp ...Show All
Software Development for Windows Vista ServicedComponent shared Transaction
A more general question about how Transactions are promoted and propageted: Considering I have a COM+ Server Application with multiple ServicedComponents, I have a client making use of multiple ServicedComponents and the clients wants the calls to the serviced components to be transactional. The ServicedComponents are not JustInTimeActivated and support therefore not the "old" transactional style. A client would do the following: using (TransactionScope a = new TransactionScope()) { using (Component1 c1 = new Component1()) { c1.DoSomething1(Transaction.Current, ...); c1.DoSome ...Show All
Visual Studio Team System Are steps synchronized in a Load Test?
Hi, We have a load test that is comprised of 1 web test. The web test has 5 steps (requests). We notice that when multiple users execute (with no step-up or think times) the steps appear to be synchronised. That is, if there are 25 concurrent users, the load test will not move from Step 1 to Step 2 untill all users have completed Step 1. This becomes really obvious when there are large numbers of users. Is there any such synchonisation logic in the test tool I have performed several experiments to see if there is any blocking or queueing in the application. For example, with the load test running, I open browser on the same machine ...Show All
Windows Forms EndCurrentEdit related question.
Hi, I have a problem with Id generation in my Windows form. I have a form based off a dataset that has say column "ClientId" (primary key in the database table). The dataset definition has it marked as the pimary key with no nulls allowed. When I am done entering records and before I do an update to the oracle database table, I would&nbs ...Show All
SQL Server How to add/(connect to) database in SQL Server 2005 Express?
Hello, I just downloaded and installed the Visual Web Developer 2005 Express which is part of the new issued Visual Studio 2005 Express. It includes SQL Server 2005 Express, so I also installed it. My problem is I can't connect to the database supported by SQL Server Express. The log in is failed. I hope anyone who is using SQL Server Express can give me a help and tell me what wrong I've done. What I've done are: 1. In the Database Explorer, right-click the Data Connections, I create a new database named "lavender", so it's "lavender.mdf". 2. Then I go to Tools->"connection to database...", (1) then in the pop-up window, I chose the "Dat ...Show All
Visual C# Typedef-equivalent in C#?
I pass integer IDs to a variety of functions. I want to create a type for each ID so the compiler can check I am passing the right type. In C I would do this with typedefs. E.g.: typedef int personID; typedef int addressID; void DoSomething(personID p, addressID a) { ... } How can I do this in C# Creating an entire class seems like a lot of overhead. Truthfully, wrapping primitive types just to reimplement the same functionality IMHO would be a waste of time. However, if you still want to go ahead with this, then you can overload operators to enable this. Although it is valid to overload opera ...Show All
