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
vote
1answer
86 views

Changing the user IIS runs over

I am trying to change the user IIS runs over. I read that IIS might run using IUSR_computer_name user but I am not sure if this rule applies to IIS 7.0 The question is, trying to map the whole ...
2
votes
1answer
517 views

Remote rsyslog only writing logging data to /var/log/syslog and not custom logfiles

I'm having a problem setting up rsyslog to log remote logging data to a specific file. I have two Windows Server 2008 boxes that each have a C# application using NLog.Targets.Syslog which log their ...
1
vote
1answer
346 views

Dependency issue when upgrading my computer to mvc4, and trying to deploy mvc3 applications

I am having a very similar problem to this: How to fix this MVC website error: Could not load file or assembly 'System.Web.Helpers, Version=2.0.0.0 same exact error message: Could not load file ...
0
votes
3answers
1k views

C#, connecting to a specific server that is behind the balancer

Just can't seem to find a clue about this one anywhere. The Story(Diagram of the system) In the company i work in we have 5 IIS servers... In every server there are many websites(In every server the ...
1
vote
3answers
565 views

Why doesn't my web page load completely every time?

I have an intranet website running on IIS 7. When I try to load my site, it reacts differently every time. Here are the following different scenarios that occur when I try to load my site: The site ...
3
votes
1answer
884 views

Getting error when deploying webservice to iis 7.5

I've been ask by the programming department to test deploying one of their app. For all I know about the app, is that it's a webservice wcf code c# for a wpf app. They did tell me that they did try to ...
1
vote
1answer
245 views

.svc web service broken when moving to IIS 7

I'm trying to move an application from IIS 6 to IIS 7. I've managed to get everything working except for the web services (.svc files). These return 404 exceptions. In the failed request logs I get ...
1
vote
0answers
366 views

Dynamically Insert single record into MS access from SQL server

I have two databases(SQlserver and MS Access) with same schemas (same tables). SQL server database has data but Access has no data (blank database). My goal : when user enters a ClientId and click ...
1
vote
2answers
246 views

what would need to change on IIS for SSL Enabled SQL server

I have IIS set with windows intergrated security, the intranet c# web application connects database with trust connection. Everything works fine until we enabled SSL on the database (Sql server 2008), ...
1
vote
1answer
203 views

single application multiple users through thin client

I am having one application built in C# winforms. In the backend I am using SQLSERVER 2008 Express. The application is used remotely through thin clients. My problem is that when one user is using my ...
1
vote
1answer
338 views

excecute batch command over MSI Package

I have a huge network of PCs that are all in a same domain (active directory). I want to enable WMI service and relative port, then set the domain's administrator credentials to WMI credentials over ...
2
votes
2answers
946 views

IIS get full error message for failed requests

I have IIS set-up and serving my webservice. Unfortunately if the webservice throws an exception, all I get is a blue box with the title failed request. What options do I have to actually see what ...
2
votes
2answers
1k views

iis 7.5 website not reachable in lan

I'm running a Windows Server 2008 R2 with IIS 7.5 and want to deploy an old silverlight business application with membership provider and wcf data services (not ria) on it, so everyone in the LAN ...
0
votes
1answer
424 views

Why are my MySQL connections running slower on localhost than through network?

This is my basic scenario: I have an ASP.NET MVC 3 web application which connects to a MySQL database through MySQL .net connector 6.5.4 . I have this scenario for almost a year, but some weeks ago we ...
1
vote
2answers
377 views

Using IIS6 to run kill process. Executable hangs

I'm using the following code (any tried many variations) in a web page that is supposed to kill a process on the server: Process scriptProc = new Process(); SecureString password = new ...
1
vote
0answers
238 views

SocketException (Timeout) only when running as scheduled task

I'm running a C# web-scrapper application (that I wrote) on a Windows Server 2003 instance under a user belonging to the local Administrator group. When I run it within a desktop/remote-desktop ...
0
votes
1answer
509 views

Code runs fine on localhost but doesn't execute on gatorhost

I wrote a small website in VWD. I am running it on my home machine using the localhost features of VWD. It runs flawlessly. Now the backstory. I had a linux server with gatorhost. I had them switch ...
0
votes
3answers
289 views

Stop rsync from deleting files that are being uploaded

I have a script which will upload files from a specific directory (with rsync) to the server, but in the mean time another script will pull files from the server (also with rsync and with the --delete ...
1
vote
2answers
3k views

C#/SQL Server: Login failed when connecting from remote machine

I've got an SQL Server 2008 Express set up on one machine and am trying to connect with my C# app to the server from another machine (both Win 7). The server machine has a user account for me in the ...
2
votes
1answer
695 views

2 Received from header at IIS SMTP email send via C# application

I am using windows server 2008 r2 and IIS 7.5 normally. I am using IIS 6 smpt server to send emails. Right now when i send email via my C# application i am seeing 2 received from headers. What might ...
2
votes
1answer
418 views

Regular expression not working on Powershell

Background: I need to match a multiline pattern(?) in a C# source file. The regular expression will be manipulate by Powershell. I have tested and it works on RegexBuddy (with the Dot Matches ...
2
votes
3answers
1k views

How to send mails using a custom .NET application and Windows authentication to a distribution list that only allows authenticated senders?

This is basically a cross post from my StackOverflow question to see if I can get a server side perspective. I'm trying to send automated emails from a C# console application from machines to clients ...
1
vote
1answer
96 views

Strange data returned from Exchange Web Services SDK. How do I update the CAS SCP data?

I'm using the Exchange Web Services SDK and am getting strange results after these lines run: ScpUrlGuidString = @"77378F46-2C66-4aa9-A6A6-3E7A48B19596"; ScpPtrGuidString = ...
3
votes
2answers
1k views

Options for real-time web notifications and updates using Comet/XMPP vs WebSocket technologies on a Microsoft stack?

I am scoping out the architectural options for a project that will render live updates (like Facebook) of user activities - logins, photos, etc. Two main UI components of this are an auto-updating ...
1
vote
2answers
2k views

Why doesn't IIS scale consistently?

I have a WCF service (written in .NET 4) running under IIS 7.5 on Windows 2008 R2 64-bit. I created a test tool that spawns 10-20 (or more) threads - each thread creates a random payload and hits the ...
0
votes
1answer
1k views

Application will not open in Win7, IIS 7.5, ASP.NET4 environment when called via C# code

I think I have a security issue here but can't seem to get around it. I am running IIS 7.5 with an application pool named "MyAppPool." I am then calling a program from C# code, PDFCreator.exe, which ...
2
votes
1answer
333 views

Test Exchange 2010 connectivity programmatically with C# [closed]

Other than a simple ping, I'm looking for ways to connect to Exchange just for monitoring purposes. Should I connect to a Web Service? WMI? I'm merely trying to test that the Exchange server is up ...
0
votes
1answer
886 views

Error when sending email via outlook, Does this require a server application?

Requirement: My application has a requirement to send emails via outlook. I could accomplish this using Outlook = Microsoft.Office.Interop.Outlook; The application works fine on development ...
1
vote
2answers
352 views

Identify AD Group Type: Distribution Group or Security Group

How do I know whether a AD group is a Distribution Group or Security Group? Note: I am an ordinary user. I do not have permission to run power shell scripts. Any way to identify using User Interface ...
0
votes
3answers
930 views

SMTP server for Windows Server 2008?

We had smarter mail installed, but it kept wiping/corrupting all our email. This was problematic to say the least. Anyway, finally we decided to move and are now using Gmail. We have all our DNS ...
-1
votes
1answer
139 views

Share the logic to implement the gpo change report? [closed]

As I need to research to make easy auditing of GPO changes through collections of XML reports of GPO. I wish to compare the XML and produce report like old values and new values in a table using C# ...
2
votes
0answers
240 views

How do I limit outgoing mail in IIS [closed]

I am going to use C# to write e-mails into the Pickup directory. Each e-mail will have a 3-5mb pdf attachment. There will be about 500-700 e-mails dropped into the pickup directory at one time. I ...
2
votes
1answer
274 views

Install Visual C# Express 2010 onto client machines - redistributable package needed

I would like to install Visual C# Express 2010 onto several machines on the Windows network at the school where I work. I can only find web and ISO installers, but I really need MSIs for both Visual ...
1
vote
1answer
269 views

DNS resolves in a wrong way [closed]

I have a simple ping app made in C#. the only thing it does is pinging a host. when I'm running it on my local computers, it works in the way it should, but once I'm moving it to my server, it works ...
7
votes
5answers
531 views

ASP.NET High CPU Bringing Servers to their Knees

Ok, our new build is having 100% cpu spikes on each server at random intervals. For long durations it make the site totally unresponsive - this will be at peak times as people in different countries ...
3
votes
1answer
222 views

Run CLI command on a windows EC2 Instance using c#

i'm programming a system in .net that designed to run an execution file on a remote machine via cli command, in this case, Amazon EC2 windows instance. I've searched the AWS .net SDK and found no ...
1
vote
2answers
844 views

Try to delete files used by IIS

I got a service coded in c# whoes deleted somes web site files hosted on iis, before an update. But sometime when i delete the files, they stay there. If I try to delete them manually, via explorer, ...
2
votes
2answers
531 views

How to see all websites in IIS using appcmd list site

I want to see all the websites in IIS 7.5. I typed appcmd list site It lists only “Default Website”. It is typed from C:Windows\System32\inetsrv. Any idea why it does not list other sites that ...
0
votes
1answer
1k views

SQL Server database connections being dropped intermittently

Occasionally in one of our production environments (we have a dozen or so without different clients pointing to each) we get exceptions at different points in the process. The code doesn't do ...
1
vote
2answers
1k views

Allowing non-admin users to unstick the print spooler

I currently have an issue where the print queue is getting stuck on a central print server (windows server 2008). Using the "Clear all documents" function does not clear it and gets stuck too. I ...
0
votes
1answer
1k views

configure culture configuration in MVC3 application

I deployed a MVC3 Application that works well in development environment, that's because the date format in the develop machine it's dd/mm/yyyy. But When The application was deploy in the server ...
0
votes
2answers
4k views

Change an Active Directory password in C#

At first, please forgive my English, it is not my mother tongue. Then, here is my problem: I'm working on a web platform that manage the Active Directory. I can create, delete, edit a group, user, ...
1
vote
1answer
1k views

Configuration Error: 'Logon failure: the specified account password has expired.'

My boss just made several Windows updates to our server computer last night and in doing so we can no longer access the server from within the application. I went on the server to try and see what ...
1
vote
1answer
50 views

Installation folder of MSSQL server 2008?

How do I find the folder path where my MSSQL server 2008 R2 is installed, inside my C# code?
-1
votes
1answer
552 views

is there any free solution to send mass mail on Windows Server 2008 [closed]

I have a server computer and installed Windows Server 2008 and IIS7. I need to send newsletter to 5000 customers. I want send everyday. But i don't configure mail account. I'm creating Gmail account. ...
1
vote
1answer
525 views

Most secure way of connecting an intranet to an external server

I have an internal server that hosts an asp.net intranet application. I want to keep it completely and utterly secure and private however we need to expose some information through a WCF service to ...
0
votes
1answer
282 views

Minimum permissions required for a SQL Server user account

I have a sql server user named SchoolTeacher to access my application. It has the following rights to my PrimarySchool database INSERT, UPDATE, DELETE, EXECUTE, CONNECT, SELECT The user must be ...
0
votes
3answers
537 views

What are the proper contents of an ICMP message? (Buffer, Don't Fragment, etc..)

I'm creating a Tracert program and am wondering if the value "buffer" used in the Ping payload really matters. Can it be anything, or do routers respond differently based on the contents of the ...
2
votes
1answer
106 views

Seeing a lot of requests into the web server - for random hostnames not my own

This seems like a phishing attack, and it's a disclosure vulnerability to send 404 response in this case. Unfortunately that's just what IIS does. I would rather these guys not even know my server ...
0
votes
1answer
450 views

Quota, AD and C#

At first, my mother tongue is not English, so I apologize for the possible mistakes. I'm working on a WS2008R2 server with an Active Directory and a web platform manages this AD with C# code. A ...