I am trying to run automated tests on a particular product.
The test consists of installing the product into different locations on the hard drive and then performing some operations on it and then closing the application.
The code that launches the process looks like this:
using (Process process = new Process())
{
...
Hi,
I have a service that has a dependency on SQL server express (2005). Every morning when I reboot my machine, I see that the service has not started. In the event viewer, I see the following error:
Service cannot be started. System.Data.SqlClient.SqlException: Cannot open database "MyDatabase" requested by the login. The login faile...
I am searching for a CMS that meets the following requirements:
Based on .NET
Works with a tree structure for content items
User-defined content types (content templates)
Manage external tables
Extensible with my own management applications
Support for versioning
.NET API for content retrieval
Note that i am looking for a system that...
Hello,
I've opened a Windows Explorer window to show the content of a SharePoint folder (using WebDAV). I pick a file and drag it into a Windows Form (C#).
However the DragEventArgs doesn't contain full information about the file.
How can I get the file URL (and not only its name), or its content?
Thanks!
...
I am developing a small app for a Motorola 9090-G using .net compact framework 2.0.
My problem is that I can't seem to detect an enter keypress in a textbox. How do you detect an enter keypress in a textbox?
None of the 3 detection methods seems to work. Interestingly, it DOES work in the ppc emulator. It does not work on my actual har...
I am getting a error message, when I am trying to get a webservice response as json to jquery,
"Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property."
when i searched in the net, I could see some web.config settings for maxJsonLe...
Looks like ExpressionTrees compiler should be near with the C# spec in many behaviors, but unlike C# there is no support for conversion from decimal to any enum-type:
using System;
using System.Linq.Expressions;
class Program
{
static void Main()
{
Func<decimal, ConsoleColor> converter1 = x => (ConsoleColor) x;
ConsoleColor...
Hey guys,
I have implemented a file transfer rate calculator to display kB/sec for an upload process occuring in my app, however with the following code it seems I am getting 'bursts' in my KB/s readings just after the file commences to upload.
This is the portion of my stream code, this streams a file in 1024 chunks to a server using ...
One of my friends came up with an interesting problem - Assume that we have a set of images in the system. Now, some one might submit a new image by slightly modifying any of the images already submitted, and in that case, the system should report that the submitted image is a forged image.
I can think about two solutions.
Solution 1 ...
Dear ladies and sirs.
We have a .NET project consisting of multiple subprojects (around 20). There are several solutions, each containing only those subprojects which are relevant to the particular solution.
To allow for arbitrary solutions, our subprojects never reference each other by means of project references, but rather by direct...
hi,
i am using following class to provide access to language resources in an asp.net application. i render the page for selected language by getting the text values from database. so i try to optimize fetching texts by caching them in a static datatable. However, i am not sure whether its always safe to read from tableResources that it m...
I have compiled a .Net application (using Any Cpu) option. This .Net application use Unmanaged dll ( Managed wrapper ) that encapsulated c++ calls.
This .Net wrapper resides in GAC.
When I run the .Net application it runs fine on XP 32 bit.
But when I run on XP 64 bit , it fails and gives follwoing exception:
Could not load file or as...
Hi, I am picking my way through some c# code I inherited, and trying to show an image within a link;this is the line that works, and show's the image, but I need to wrap this in a link.
Response.Write(Html.PropImage(item.MainImage.ImageUrl095, item.AccomName));
I noticed later on there is a link element, so I thought I could copy this...
see also "WCF push to client through
firewall"
I need to have a WCF client that connect to a WCF server, then when some of the data changes on the server the clients need to update its display.
As there is likely to be a firewall between the clients and the server.
All communications must be over HTTP
The server can not make an...
I am using FTP to upload files from one server to another in my ASP.NET web application. However, when the FTP authentication fails, i.e. the username or password is wrong,
and then in my code where I use WebRequest IIS will keep retrying the FTP connection even through the username or password is wrong.
After I stop the application po...
In other words, can I do something with a volatile variable that could not also be solved with a normal variable and the Interlocked class?
...
We have multi GB files coming every day to be loaded to SQL Server 2005 instance via SSIS packages. To load those large data files to SQL Server asynchronously, we built multi threaded .NET application. This application uses DTSExec command line executable to invoke SSIS packages. It also instantiate 5 queues and 5 streams for each queue...
I've got some code which sets up a datacontext. Often enough, the datacontext should be set to some underlying data collection, such as an ObservableCollection - but occasionally I'd like to set it to a collection that is itself a dependency property.
This can be done in xaml, but doing so defeats the purpose, which is to share the UI ...
I have a relatively simple question regarding the best way to call the DataGridView.Rows.Add function when it is inherited into the current control. Which is the best way to make the call to the inherited control? Call it directly in the invoke or call it using recursive-like function? They both seem to produce the same result, a row get...
I'm creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I'm wondering what to do about exceptions when Post-ing callbacks.
The SynchronizationContext can be used to Send (execute synchronously) or Post (execute asynchronously) delegates of type SendOrPostCallback. Although in both cases I invoke the ...