I am using Visual Studio 2010 to create a Setup package to install a WPF application. I can see that I can add the .NET framework 4.0 as a pre-requisite, but how do I get his to run automatically without manual intervention?
Do I have to create a small program (that targets framework 1.1 as I assume most machines have 1.1) that detects ...
I read an answer to a question on Stack Overflow that contained the following suggested code:
Action<Exception> logAndEat = ex =>
{
// Log Error and eat it
};
try
{
// Call to a WebService
}
catch (SoapException ex)
{
logAndEat(ex);
}
catch (HttpException ex)
{
logAndEat(ex);
}
catch (WebException ex)
{
logAndEat...
Now my team working in a project using Windows Application(C#). We use MSI Installer for creating installation.
I didn't know how to pass command line parameters from MSI file & Setup.exe file.
for example
setup.msi username=demo password=pass
setup.exe username=demo password=pass
Please suggest a good example/reference
...
I have a simple C# class with COM attributes:
[ComClass("1DC7B465-49FA-4ad1-893E-C19657E1ED25", "F97459E6-AB37-43e6-AC57-6AE5F9A9A835", "BD9F01C7-162A-4f95-9398-C126C152B965")]
[ComVisible(true)]
public class Class1
{
}
I need to use this class from VB6 application. It works well until I change AssemblyVersion of .NET...
Is there an official / unofficial list of bugs and issues in Visual Studio, or any of its components?
...
What are your suggestions for designing linq code in project?
Especially, I`m interesting in code design of big and complex linq queries?
For example, you know, that you need to write a lot of huge linq stuff, maybe some of your code will have duplicate parts, maybe not, and you need:
Make the code easily supportive - means, if you ne...
I'm writing a game, and while it's performance is good most of the time, it sometimes slows to a crawl. Normal profilers haven't been a help in this, as they record the whole time my game is running, and the important info in the laggy portions get diluted over all of the smooth sections. Are there any tools or libraries that can help me...
I have a GridView with a SqlDataSource, select only.
Is it possible to loop through each record in the GridView and update it with LINQ? If so, I’m assuming some sort of foreach would be used?
I’m comfortable using LINQ, just not sure how to start this one.
...
How to exit a program with an exit code in C#?
In java it would be System.exit(int code);
...
Hi,
Im am currently coding an application for auto updating ccleaner. Everything worked well until I enabled UAC.. I am using this project: http://www.codeproject.com/KB/cs/tsnewlib.aspx
to schedule the updating process, but when uac is enabled I get every time a message if I would let ccleaner installer make changes to my computer. The...
I have enabled trace logging in .NET to output the network data going back and forth so I can see the SOAP requests being sent to a web service. This seems to be the best way on a site that I can't debug or add a proxy between itself and the web service.
Here are the lines I've added to the web.config to enable it:
<system.diagnostics...
I want to design the architecture of .net web application.how to decide which pattern have to use as per scenario wise? Let say for banking or payroll system like application.
...
I have a problem with DataGrid from WPFToolkit. My grid has DataGridCheckBoxColumn. When I change value of some cell in this column, validation and real source updating occures only after a cell has lost focus. So, if I change checkbox value in a cell and leave focus inside it, the property of a binded object wouldn't be changed.
Colum...
I want to format TimeSpans in C# in this way:
xxx day(s) yyy hours(s) zzz minute(s)
Conditions:
Extra seconds should be truncated
day(s) is the largest unit I want. I want 34 days to appear as 34 days rather than 1 month 4 days etc.
If timespan is less than one day, I dont want the day part to show up. Likewise if span is less than 1...
Hi all,
With an application I'm currently developing I've come across the need to serialize some business objects to a number of different proprietary formats.
I'm struggling with coming to a decision on the best way to approach this and would like some opinions.
I know that .NET provides us with the ISerializable interface which I ca...
I have a WPF application that runs as a service and renders 2D graphical elements to take jpg snapshots. All this happens without any Window or visible control.
The application typically runs on servers with very crappy video adapters: does this have a negative impact on the application's performance?
Is there a way I can tell WPF/.NET...
I am working with a fairly complex solution in Visual Studio 2008. It contains 2 Web Applications, 5 class libraries, a console application a msi setup project, these are all written in c#. The long and the short of it is that Find All References, Find Symbols and some parts of Refactoring do not work anymore. I needed to investigate ...
I am looking for some efficient way (in .NET), how to find if there is a sequence of bytes in some list of bytes and if there is any, index where the first starts.
For example let's say I have:
var sequence = new List<byte> { 5, 10, 2 };
var listOne = new List<byte> { 1, 3, 10, 5, 10, 2, 8, 9 };
var listTwo = new List<byte> { 1, 3, 10,...
Ok, so the problem is I'm trying to send a byte array via HTTP encoded as base64. While the string I receive on the other end is the same size as the original string, the strings themselves are not identical, hence I can't decode the string back to the original byte array.
Also, I've done conversion to/from base64 on the client side bef...