Hi, I am doing research for a company as an internship. I had some question in using Mono, the cross platform implementation of .Net platform. My company designs hardware and sotware.
My knowledge of using embedded linux is very low. My company where I am doing my internship is really .NET minded. But the new developments of mono, they...
If you want to use a COM type in your C# code, the process is straight forward, right? You just need to use the type library importer and that's fine, but what if you don't have one and you can't take a look at the IDL file? You just have the COM DLL server.
As an example, try using the IActiveDesktop interface.
What's the approch used...
First, let me pledge my allegiance to unit testing over integration testing, I like unit testing very much.
But I have other tests that are essentially deployment tests (you can't test how the production deployment went using a unit test on a build server) and I'd like to use the nUnit framework to run these.
But, the production server...
I have two collections displayed in my WPF application, and I'd like to have elements from one of them disabled in the other. Doing this I'm creating a custom control FilteringListBox that inherits ListBox, and I want to add some handling inside it to disable elements that are set in a collection set through a property on the FilteringLi...
As usual, having trouble with SelectList in the MVC framework. The selected value is never set for some reason:
public class MyViewModel
{
public DateTime? SelectedServiceTime { get; set; }
public IEnumerable<DateTime> AvailableServiceTimes { get; set; }
public SelectList ServiceTimesList
{
get
{
...
I have implemented an AVL tree in C# whose insertion matrix is as follows
Number of Elements Time taken to insert (sec)
------------------------------------------------------
10 0.067
100 0.073
200 0.112
500 0.388
900 ...
I want to navigate to a page in a web app from a desktop app. "No problem", I hear you say, "just fire up the default browser with the correct URL". However, the web app uses ASP.NET Forms Authentication, and the users don't want to see the login page because they have already authenticated with the same credentials in the desktop app.
...
A little background
I'm working on an .net application that's uses plugins heavily, the application can request data from the plugins that is then sent back and displayed by the application.
First I implemented the plugin framework in MEF but feel that it was a bit limited for my purposes, I wanted to be able to isolate plugins and hav...
We are writing a kind of industry dashboard that shows many graphical information coming from various sources.
Because one of these sources is a closed Unix application, we would need a XWindow terminal emulator which works as a Winform control.
Has somebody already used such a control, if it exists ?
Thanks a lot
...
I've found that both My.User.Name and My.User.CurrentPrincipal.Identity.Name both return the Windows login ID of the user logged in to the PC. However, is there a difference between the two? Will there ever be a case where they won't return the same value?
...
Is there a way of detecting if a Controller is getting posted to directly, or the action is a result of a previous form being posted?
...
I have to implement .net assembly that would be put into GAC. It relies on RDBMS connection string and some additional params - what is the best place I should put it? Machine.config, registry or something more appropriate?
Such information should be placed into application configuration file (app.config/web.config) that uses component ...
I have lots of experience running my app on Amazon EC2. It requires a low-end server, and I currently pay approx $90/month for the server (yes, I know I don't really need the scalability, but I still use EC2). I was wondering about the benefits of moving this app, which is purely .NET, to Microsoft Azure. Are there any experiences with:
...
Hi,
I have build a basic .NET server-client infrastructure using TcpListener and SocketClient.
It is multithreaded and asynchronious. The problem is, that the server crashes at some point when over 30 clients are connected at once.
I could not yet locate the cause for the crashes though I do use quite a few Try-Catch blocks to make su...
In WPF I would use an ObjectDataProvider. This dosn't seem to be available in Silverlight 3.
Is this just meant to be done via the C# code.
...
Hello, I want to register a jquery-script dynamically on a master page,
but it doesn´t work, can anybody help me?
I got the script in a folder Materials/Scripts from the root of my web application,
and my master page looks like
public partial class Application : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, Eve...
I have to deal with legacy ASP.NET application written in .NET Framework 1.1. When checking the application code I found interesting part. The application starts custom thread in Application_Start event handler (Global.asax). This thread must run whole life of the application.
Long time ago I read that this should be never used but I do...
Hey everyone.
I'm trying to make a video recording application for a project and was wondering if there was anyway to make the OpenFileDialog open up in a modeless diaglog box or would I have to make my own custom version? The reason I ask is the ShowDialog() function freezes my video. Thanks in advance for the help.
...
Basic structure: http://hospero.de/structure.jpg
I have a really strange issue with my facebook iframe application.
I am developing a facebook card game. Two players can play a card game against each other on facebook.
The basic structure is:
The silverlight control is hosted inside an ASP.NET Website which is hosted in localhost for...
Is there a shorter way to wait for multiple threads to finish? Maybe using ContinueWhenAll... but I don't want to run the rest of my code async.
List<object> objList = // something
List<Task> taskHandles = new List<Task>();
for(int i = 0; i < objList.Count; i++) {
taskHandles.Add(Task.Factory.StartNew(() => { Process(objList[i]);...