C# is a programming language created by Microsoft in parallel with the .NET platform. Programming questions should be asked on Stack Overflow.

learn more… | top users | synonyms

-1
votes
0answers
18 views

Mono throws OutOfMemoryException on Ubuntu but not OSX or Windows [migrated]

I have installed Mono on an Ubuntu server and "Hello World" is working, but a simplified application that does some array handling and runs without problem under Mono on OSX or Windows is giving: ...
0
votes
1answer
15 views

Catching “request entity is too large” error

I am running a web server IIS 8.0 and using ASP.NET and C#. I have an upload box where the user can upload a file to the server and after a limit of about 50MB, a message appears on a white page: ...
0
votes
0answers
13 views

cannot open assembly certmgr.exe

I'm trying to run a basic console app that calls a web services hosted on an external https endpoint using Mono. I keep getting errors about decrypting the response. Some googling has led me to ...
1
vote
0answers
18 views

Same WMI request is much slower on other machine

I posted this question some time ago on stackoverflow, but unfortunately I didn't get any answer yet. It's actually not very urgent, as this problem seems only to exist on my machine - for now. But ...
0
votes
0answers
22 views

What permissions needed to get Service Name and Start/Stop service on a remote PC?

I am using C# to access services and shut down/start them remotely. The full code works for 5 out of the 6 remote machines that I've tried it on, and I believe it is a permissions issue on the 1 ...
0
votes
0answers
18 views

Minor CSS rendering difference on server vs Local

I have this annoying CSS rendering issue and I am not sure what is causing it. On my local copy everything looks that way I want it. When I deploy it to an IIS server there is one (very) minor ...
1
vote
2answers
80 views

Active Directory user rights

I'm currently working on a ASP MVC Website solution that I retrieved from a predecessor, and I had to create an active directory machine to support the login implementation using it. Upon a user's ...
-2
votes
3answers
53 views

How to remote access my mysql database? [closed]

can you please help people, i made an application which will be used by few friends of mine, but the application is written with connection method: Standard (TCP/IP), i was thinking it will be easy, ...
0
votes
1answer
133 views

Console application scheduled task not exiting some times on Windows Server 2008 R2

I have a C# console application as a Scheduled Task on Windows Server 2008 R2. The application is scheduled in Windows Task scheduler to run after every 15 minutes. At the end of the application I ...
1
vote
0answers
40 views

How to do a 301 regex redirect with IIS7

How can I do a 301 redirect with this pattern: /([^/]+)(?=/[^/]+/?$) in my .NET solution to redirect /en/solutions/exemple to /en/exemple in my web.config file PS:I am new to .NET and IIS that's why ...
0
votes
0answers
103 views

401 Unauthorized response from java webservice

I am getting the 401 Unauthorized response while I am calling java webservice (JAX-WS) from C# client ,It was working on my development environment but not working on production server. I can access ...
-3
votes
1answer
158 views

How to create inbound rule on Windows firewall for custom service?

Service is written in C#. It is a server that requires opening port 8080 for inbound connections. It runs as Local System and has unrestricted SID (created by sc tool). If I add in Windows Firewall ...
0
votes
0answers
110 views

MongoDB Sharding Issue

I made some Sharding tests but I always got the same issue. I got 1 config server, 3 shards (mongod) on 3 different servers (500 Go each). When I made an insertion of huge amount of data (1 000 000 ...
3
votes
1answer
228 views

How can I get an OID for a certificate template?

I'm using C# (or VBScript) to issue a certificate from an Enterprise CA. According to this answer, I need to specify the OID instead of the certificate name, and place it in an unexpected portion of ...
0
votes
0answers
310 views

Accessing Exchange server 2013 from window 7 using Remote PowerShell?

I am trying Remote PowerShell from Windows 7 to Exchange Server 2013. Following is the code snippet. public static void ConnectToPowerShell() { string password = "password"; ...
0
votes
0answers
330 views

Getting Error: “Cannot open database \”DB PATH“ requested by the login. The login failed.\r\nLogin failed for user 'ACTADMIN' ”

Overview: OS: Tried on both win 7x64 and win8.1x64 Visual Studio version: Tried on VS 2013 (.net version 4.0 and 4.5), and VS 2010 (.net version 4.0) DB used: ACT2014Default Act version: Act! Premium ...
1
vote
0answers
288 views

SharePoint Server PowerShell Access Denied

I am running a custom web service on a sharepoint server (2010). My script works fine until I make a call to update a database. I get this error: Exception calling "Update" with "0" argument(s): ...
0
votes
1answer
326 views

Timer_EntityBody, Timer_ConnectionIdle and Connection Closed Unexpectly

We have a windows application, it connects to a web service (XML web service hosted on a Windows 2008 Server IIS 7.5, no antivirus) and fetches some data to the client. But sometimes (around 5%-10% of ...
2
votes
1answer
2k views

Deploying MVC 5.1 app on web server

I made ASP.NET application with MVC 5.1 technology and tried to deploy it on Winhost server. When I go to my web site, I get the following error message. Could not load file or assembly ...
0
votes
0answers
193 views

.dll Solidworks Add-in not registering in COM

I am trying to register this .dll in COM as an Add-in to Solid Works software. The dll is building without any error or warnings.But the Add-in is not appearing in the Windows "Registry Editor" as ...
0
votes
0answers
160 views

Microsoft-Windows-TerminalServices-LocalSessionManager/Operational Log Entry in C#

I am trying to do I simple script for retrieving TerminalServices logs, but for some reason I have not found a way. Both log name and the source seem correct. I can do this in powershell but ...
0
votes
1answer
262 views

HTTP Error 500.19 - IIS Error

I have following lines in my web.config file. All I am trying to achieve is to display a custom error page if anything goes wrong in application. But instead of getting the custom page I get error as ...
0
votes
1answer
1k views

Automatically starting C# Mono application on Ubuntu server

I have a TCP server written in C# which I will run on my server. I've tested the application running on the server and client side and it all works great! I'm using mono on my Linux server to run the ...
1
vote
1answer
806 views

Authenticate user in WinForms (Nothing to do with ASP.Net)

Originally-posted on StackOverflow, cross-posted here as suggested in SO comments. Intro I need to password protect some actions in my application, such as loading/saving files, clicking ...
0
votes
0answers
165 views

Where to find Azure SQL password?

I deployed a MVC5 app to Azure with the following connectionstring: <add name="AzureSqlConnection" connectionString='Server=tcp:[myserver].database.windows.net,1433; Database=Database;User ...
0
votes
1answer
237 views

Issues with authenticating through HTTP POST

I am currently investigating an issue with our web authentication server not working for a small subset of users. Our method of authentication involves sending a hash through an HTTP POST. My ...
1
vote
1answer
523 views

Can a windows service running with network service or local system account, updated active directory container?

I have two windows services (one running as network service and the other as local system) - because of some architecture reasons these cannot run under domain user account. And there will be a store ...
0
votes
0answers
102 views

RabbitMQ in Production on Windows Platform - Production Tenets

What is the typical recommended set up for RabbitMQ in a Windows Production environment? I plan to use it for a publish-subscribe scenario with one of my Web APIs. We are a .NET shop with Windows ...
-4
votes
1answer
187 views

web.config file changings guide [closed]

Hi experts how are you all? i am student, and learning asp.net c# visual studio 2010 with using sql server 2005. I have developed a website which has database. I developed this website with self ...
2
votes
0answers
573 views

MySQL on Amazon RDS connection handshake error reached max_connection_errors

We are using a C# web app on AWS connecting to a MySql RDS. Suddenly, connections start to fail with two different exceptions: First one (most repeated): Authentication to host 'xxx' for user 'xx' ...
2
votes
0answers
2k views

Access to message queuing system is denied MSMQ?

My problem is a little confusing. I have 2 servers (Windows Server 2008 R2) with MSMQ installed and I want to use Server B to consume a MessageQueue on Server A. When I try to Receive it always ...
0
votes
1answer
710 views

How to find IIS default port using command prompt? [closed]

How do I find the IIS Default Web Site's port number from the command prompt?
0
votes
1answer
156 views

nginx reverse proxy server protocol violation

I have nginx which proxies database server REST API with following example configuration: server { listen 80; server_name sub.domain.com; location / { auth_basic "Restricted"; ...
1
vote
1answer
119 views

Low-delay (high-responsiveness) Windows Network Service?

I have written a Windows Network Service using C# which is designed to run on a Windows 7 machine. It is designed to be able to handle multiple requests in a single millisecond, which it seems to cope ...
2
votes
1answer
255 views

.NET App hanging on Windows 2012 on startup

We have a customer that has supplied us with a Window 2012 Hyper-V server that has a Window 2012 Multipoint guest os which we run our .NET-based (v3.5) software products on. Unfortunately there are a ...
1
vote
1answer
51 views

Can I restrict IIS to run release code only

The company I work for has 2 servers, 1 release and 1 test/debug server. I want to restrict the release server that only code that is compiled as release (not having the DEBUG constant defined) can be ...
0
votes
1answer
341 views

Microsoft.Web.Administration and app pool does not set?

I have created a nice custom installer in VS2010 which not only installs the website to IIS but also does some custom actions like registering COM Dll's and other things. In the process I am also ...
3
votes
1answer
589 views

Disabling Password Complexity for OU and C# App creating AD accounts

I created a C# app that is creating a series of AD accounts from a database. The issue i am running into is the passwords i am gathering had no complexity requirements so when i am passing them into ...
-1
votes
1answer
229 views

single sign on using active directory in asp.net

I have lot's of database, so for secure authentication I want to put single sign on using the concept of active directory. After reading of lot's of material i will try to install ADFS 2.0 But i ...
-2
votes
1answer
484 views

When creating user accounts using C#, UPN logon doesn't work while sAMAccountName works

I have created accounts with C# on 2008 R2 which have a sAMAccountName and a user principal name. I can log on with the sAMAccountName (or explicitly DOMAIN\sAMAccountName), but not with the UPN. ...
3
votes
1answer
222 views

Will IIS finish pending requests on Stop-WebSite?

Lets' say my IIS8 hosted web site is up and running and happily serving requests. Now, from an elevated Powershell, I run: Stop-WebSite <MyWebSite> My assumption until recently was that IIS ...
0
votes
1answer
87 views

How to fix IIS Total Requests ramping up

I've got a site that has recently been experiencing a lot of downtime due to max memory usage. We're running a VPS with 8GB RAM, Windows Server 2008 R2, IIS 7.5, WebForms 4.0 site with SQL Express ...
2
votes
1answer
743 views

The RPC server is unavailable from .NET over AWS

I am trying to access EC2 machines remotely to get some info using C#. I wrote code as below:- ConnectionOptions options = new ConnectionOptions { Username = serverspace.ServerIP + @"\xxxxxx", ...
0
votes
1answer
203 views

Deploying c# application

I have a c# winform application that may well be deployed too 2.5k machines. What is the best way to deploy such an application (avoiding installing by hand on each machine) Thanks, ayd
0
votes
2answers
191 views

Simulating many client connection to server

I've written a protocol on top of TCP using C# Sockets class which allows the transfer of files between many clients, and put it on a Windows Server 2008 VPS. I have then written the client-side ...
0
votes
2answers
263 views

Dcpromo run as Local System in Server 2008

I am trying to have a service running on a Windows Server 2008 R2 be able to execute dcpromo in order to join and remove AD. In Server 2003, I was able to simply use Process.Start() in C# and provide ...
1
vote
1answer
155 views

Application under a site in IIS evaluates ~ to the website root not the virtual directory

I have a website in IIS lets call it QA.local. Under this root site I want to set up multiple applications that reside in a set of virtual directories E.G. QA.local/app1 and QA.local/app2. The problem ...
0
votes
1answer
284 views

Show processes running on remote computer using WMI

I'm using WMI in order to run commands on a remote machine. For now, and I know it's as it should be, the process which is being run is not shown on the screen of the remote, I can only see it running ...
1
vote
0answers
361 views

HP ILO 2 XML POST

I am using the following code on my ilo 3 or 4 machines successfully in order to get a response and parse it for information: public string doiLO3Request(string requestRibcl) { ...
0
votes
1answer
1k views

IIS slow response

I have developed ASP.NET 4.5 application which take infos about sensors from sqlite database every 3 seconds. This application runs nice on my local develop machine on IIS Express server. I have ...