C# is a multiparadigm, managed, garbage-collected object-oriented programming language created by Microsoft in parallel with the .NET platform

learn more… | top users | synonyms

2
votes
0answers
131 views

WinRT C# SVN Client

I try to connect SVN repo from Surface. And I realized that there are no apps for this. I want to write some one, but it's too complex to write my own SVN lib. Are there some lib for WinRT ARM ...
-2
votes
1answer
286 views

Code disappears in vs2010

I was writing the c# code in vs2010, suddenly the light went out. When I restarted my system and opened my project in vs2010 and opened my class (.cs) file, a blank notepad window appear and nothing ...
16
votes
2answers
3k views

When you start multiple threads on a multi core processor, are they guaranteed to be processed by different cores?

I have a Pentium core i5 processor, which has 4 cores. If I do this in a C# console program var t1 = new Thread(Thread1); var t2 = new Thread(Thread2); t1.Start(); t2.Start(); are t1 and t2 threads ...
7
votes
2answers
3k views

How can I compile a .NET project without having Visual Studio installed?

I want to compile a .NET/C# project, but I don't want to install Visual Studio to do this. What tools do I need and how can I compile the project?
0
votes
3answers
492 views

Error connecting to Access DB on network

I have two pc lined up connected to each other using WAN. I have shared the folder containing an Access Database and the i give permission to Everyone for everything on the database itself. Now the ...
-1
votes
0answers
195 views

Open source self hosted file server in .Net [closed]

I came across a website recently (http://owncloud.org/) and I was wondering if there where any similar opensource implementation in .Net so that I can host my contents on my private VPS server. ...
0
votes
1answer
171 views

Can you reach back into the local machine and execute an application with parameters from your remote session?

I am writing a program that is used as a RemoteApp from server to the client machine. I know that using System.Windows.Forms.SystemInformation.TerminalServerSession I can determine if the current ...
0
votes
0answers
195 views

Installing mono without root privileges

I use mono on my mac now for my .NET development, when I dont feel like using my pc, but I want to use mono on my Universities linux server, but I dont have root. Is there a way I can install mono in ...
0
votes
2answers
441 views

access local asp.net website from the Internet

I have a asp.net local website in C# (ISS 7). In order for my client to test it, I would need him to access my machine through the internet. How can I do it? There must be an easy way.
0
votes
1answer
805 views

One Way Syncing between two folders using a third folder

I want to create a one way sync between Folder A and Folder B so far so good and RoboCopy does the job. But Some of the files in Folder B will be moved to Folder C (not controlled by this system) So ...
3
votes
1answer
649 views

How do I find the applications that require the .NET framework?

Is there a way to look at all the applications installed on a users computer and determine which, if any, are utilizing the .NET framework? My problem is that I want to upgrade our users computers ...
0
votes
2answers
429 views

Is it possible that update of (MS) security essentials is blocking ports while updating?

Seem to have encountered an issue that I can't really resolve. I have a client trying to write to a stream on port 4530. This is a system running constantly, and when I got back to work monday ...
1
vote
2answers
3k views

How to get curly braces autocompletion in Visual Studio 2012. C #

In moste IDEs you can set so if you type for example> if(isTrue) { //and when you hit enter here you get the } automatically But I have not found where you get this behavior in VS Options. Is there ...
1
vote
0answers
419 views

Virtual COM Port Using usbser.sys Keeps Dropping

I have a C# wpf application that is communicating with a device via a virtual com port over USB. This device is using the usbser.sys driver. Everything works normally as expected and communication is ...
1
vote
3answers
7k views

Can I make C# Console applications on Visual Studio 2012 Express for Windows 8?

As the question, can I make C# console applications on Visual Studio 2012 Express for Windows 8? I am aware that you can create Windows 8 apps but is there a template to create C# based console ...
1
vote
1answer
421 views

Page hosted on IIS7.5 changes appearance on IIS6

I'm in the middle of switching our site over to a new web server (Server 2008 R2), and am trying to copy one of the new applications to the old server (Server 2003) in order to let users access it in ...
9
votes
2answers
4k views

How to make CTRL + / toggle a comment in Visual Studio

How can I make CTRL + / toggle a comment in Visual Studio, as it does with XCode and Eclipse?
0
votes
1answer
562 views

Visual Studios 2012 Debug MVC App Opens Chrome Browser in Random Window

Basically when I right click project --> Debug --> Start New Instance in visual studio 2012 with chrome as the default browser, it seemingly picks a random window instance of chrome browser and opens ...
1
vote
1answer
958 views

how to connect to secured wireless network connection in cmd in windows?

I program on C#, I don't want to use P/invoke, so I will use shell, so I need to connect to a secured wireless network connection on the CMD in windows, I know how to connect to a wireless network but ...
1
vote
2answers
14k views

How to use PSCP to copy file from Unix machine to Windows machine where target path has spaces?

I am having a problem using PSCP in a C# program to copy a file from a Unix machine to a Windows machine. The problem only happens when the target folder on the Windows machine has a space in it. ...
1
vote
1answer
3k views

Can't open an .exe app made in c# with Visual Studio

So I made a simple calculator console application with C# and Visual Studio. Now I gave the .exe file from my debug folder to a friend to test the application. Unfortunately, when he tries to open it, ...
2
votes
0answers
129 views

Microsoft security update KB2656351 prevents output caching

I am working with .Net framework 4 and cookies are used in my application. Due to Microsoft security update KB2656351, output caching does not work. I can not remove cookies. If I remove the above ...
2
votes
0answers
479 views

runas verb not working in windows 8?

I am using some applications need to do some thing as an admin, so I was using the verb "runas" in windows 7 and it is working well, However, once we migrate to windows 8, the new processes were ...
0
votes
1answer
341 views

How does FileStream appends physically works?

I was dealing with a prepending problem and suddenly leads me to think about this question.... Maybe not only related to FileStream, I want to know how we actually appends binary into a file ...
-5
votes
3answers
479 views

How to prevent reverse engineering of a C# .NET program [closed]

I have a C# .NET program that I believe has been compromised (reverse-engineered). Is there any way to prevent this?
0
votes
1answer
475 views

Not receiving responses sent from a different subnet when my machine is on DHCP

I am building a utility to communicate with some hardware that comes with a default IP address of 10.0.0.1 and subnet mask 255.255.255.0. The hardware replies to UDP messages on the same IP and port ...
0
votes
1answer
1k views

Autostarted application in windows 8 runs behind Metro

We have an application (digital signage media player) written in c# that auto start when the user log in. the application is started by a shortcut placed in the auto start folder. On windows 8 the ...
1
vote
1answer
234 views

Active Directory 2008 R2, c#

I am using C# and trying to check if a group exists or not in active directory I am doing this string cmd = "New-Object DirectoryServices.DirectoryEntry \"LDAP://cn=" + groupname + " " + LdapDef + ...
1
vote
1answer
863 views

Open a custom remote powershell remotely

I have 2 computers. On the computer A, I have a custom module written in C# for powershell 3.0 and installed via a MSI. I also have a shortcut that open powershell with the module already loaded. I ...
-1
votes
3answers
501 views

Simulate serial printer on pc

I have an old lab device which prints it's result to a serial printer. I need to replace the serial printer with a computer. I have connected the device's 9 pin serial port to the computer's serial ...
0
votes
1answer
2k views

Why does explorer restart automatically when I kill it with Process.Kill?

If I kill explorer.exe like this: private static void KillExplorer() { var processes = Process.GetProcessesByName("explorer"); Console.Write("Killing Explorer... "); foreach (var process ...
3
votes
1answer
2k views

TrueCrypt drive letter not available

With c# or a batch file I mount a trueCrypt volume located at A:\volumeTrueCrypt.tc With c# I do: static void Main(string[] args) { var p = Process.Start( fileName:@"C:\Program ...
1
vote
1answer
231 views

How to open a document multiple times in VS2012?

I would like to know if it is possible to open a source file multiple times in VS2012 Express? For example I would like to open a UserControl in two views (Code/Design) in two tabs to e.g. put each ...
-1
votes
3answers
1k views

Sending mail application sends mail to Junk email folder

I have a console application that attaches files from a folder on the server and mails it to myself. This works well, but it always seems to put the mails in the Junk email folder. Can anyone tell me ...
2
votes
2answers
2k views

C# lost local variable window from debug (f11 step by step)

I was running my code (visual studio 2010) and I accidentally closed the window that shows the state of variables step by step. I think it was called locals but I can't find it on any of the menu ...
0
votes
1answer
8k views

File does not contain a valid CIL image. [closed]

Hey guys i installed mono on my suse 12.1. When i create a file say "hello.cs" and run "$ mono hello.cs " on the terminal, i get this error: Cannot open assembly 'hello.cs': File does not contain a ...
2
votes
2answers
4k views

Command line RDP call CMD on target machine

I need to remote into ~50 machines and run a batch file. Is there any way I can start up an RDP session and call cmd?
1
vote
1answer
340 views

Removing case sensitivity [closed]

My program has a search and update function. But it will only find a match if the user types in Jane Doe not jane doe. ATM my programs retrieving user input, converting into char array and changing ...
0
votes
1answer
281 views

How to add an Environ Variable Path to VS command Prompt

If I open Developer Command Prompt for VS2012 using 'Run as Administrator' and then run the following will the path C:\foo get added to the list of environment variable pathways for the command ...
1
vote
2answers
2k views

What is the Difference between USb Root Hub and USB Composite Device? [closed]

I am Developing an application where I need to fetch VID and PID of all the Current USB Devices Connected to the Computer. But I am just getting VID and PID number of my Headphone that is attached to ...
0
votes
2answers
548 views

How to add hotkey to trigger a program?

I've deployed a project on client PC. Is it possible to add a shortcut key to invoke this program. How to make it minimized to the tray when it's triggered? (User can still open it by clicking the ...
0
votes
1answer
902 views

how to use custom ip address to browse a web page c#/.net [closed]

i am trying to browse web page using custom(user provided) ip address but it's not working. webBrowser1 loads web page successfully but it's not using custom ip address, it loads page with real ip ...
0
votes
1answer
232 views

options in compression with 7z

I want to create an archive, through a program I am writing in C#, and later decompress it. The archive will contain folders from completely different locations, grouped on 3 major subdivisions. ...
1
vote
6answers
7k views

How to recover my source code?

after a system crash down, one of my .cs file get lost. The size of the file is 18KB, when I tried to open it in VS2010, vs2010 auto opens it in NotePad, but the content is empty. I tried to open it ...
0
votes
1answer
545 views

Microsoft Outlook Password Protected Email Add In

I am facing an issue. I want my Microsoft Outlook email's to be password protected. I Google'd for it, came to know about "AddIn's for Outlook 2007" project. Any tutorial on how to setup a password ...
1
vote
0answers
152 views

Script for Bits Uploads - Allow clients to upload files in IIS7/IIS7.5

I need to write a script in C#\appcmd/some other script to automatically enable the checkbox for "Allow clients to upload files" under "BITS Uploads" in virtual directory configuration Thanks!
0
votes
1answer
669 views

Word list filtering and duplicate removing in multiple files - Tool or Program?

I've a wordlist which contains, username,phonenumber and email. It's gathered from various sources therefore in variable sizes. I need to filter the duplicate username and all things in a row. So far ...
1
vote
2answers
436 views

DISABLETHEMES for application compatibility in windows 7 not working

i am porting an legacy winform application developed for xp on windows 7 ,which is currently developed using c#.net 3.5 and some third party controls which are very old but don't want to change them ...
1
vote
0answers
48 views

Can a C# Client run through a VB Server? [closed]

I was wanting to see if it is possible to make a C# application connect to a Visual Basic Server as I already have a complete engine in VB, I was just wanting to convert the Client to C# so I can make ...
4
votes
1answer
630 views

Microsoft Visual C# 2010 Express error loading Silverlight

What's going on?: After selecting Silverlight Navigation with Accent Color from Online Templates in Microsoft Visual Studio C# 2010 Express, I am receiving the following error message. Error: ...