configuration

How to prevent Visual Studio from prompting to update .settings file from app.config

We're using a .settings file to store our application settings, and use default values in there so that we don't need to configure every single setting. This has generally been fine. However, during development we'll frequently change values in app.config, which means that when we open the .settings file, we always get the prompt "Value...

Fortify command line usage

Has anyone used command line to run fortify? I tryin to incorporate fortify run in my CI build and I dont know how to do it. ...

Is there a config type file for Visual Studio Add-In?

When creating a Visual Studio Add-In, how can you utilise an app.config for the add-in. If I add one to the project and deploy it then when the Add-In runs and I programmatically try to access it via the ConfigurationManager.AppSettings its not picking up the config file for the add-in. Am I doing something wrong or is there another mea...

Suggested IIS settings for WCF web service?

I've been reading the documentation on IIS settings, and haven't been able to find much on the MSDN site. I'm trying to figure out the preferred settings for a WCF REST service hosted in IIS6. Main goals of these settings should be reliability, restarting the service when needed, and max throughput. My service will use some processing ...

log4j configuration file error detection

I'm currently writing a logger utilizing log4j. Once I load in a log4j.properties or a log4j.xml file, I was wondering if there was a way to detect if the logger configuration file is valid. If it isn't valid, I was hoping to load a default setting (that's located in another file) instead. Thanks ...

Unable to make Spring 3 Session Concurency Control work

Hi all, Using Spring Security 3.1.0, I cannot seem to get the concurrent session control feature to work. When I log into my system at the same time using IE and FireFox (using my local workstation) I see my user principle in the session registry twice. I am expecting the concurrent session control to log me out or throw an exception or...

Sending mail in .NET

Hi, everyone! I'm trying to send mail in ASP.NET web-site. I have smtp configuration section in web.config file. How can I configure it to send mail from everyone to everyone? ...

How To Implement a ConfigurationSection With a ConfigurationElementCollection

I am trying to implement a custom configuration section in a project and I keep running up against exceptions that I do not understand. I am hoping someone can fill in the blanks here. I have an XML config that looks like this: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="Service...

WCF Concurrency

Good morning. I'm having concurrency issues. I've created a WCF service, and I've tested it to make sure that individual calls work just fine. Now I'm performing some load testing, and I'm seeing super high CPU utilization with long wait times for requests to be completed. My load testing tool is just a console application configur...

Shopping Cart with Item Configurator

Does anyone know of a canned shopping cart that allows you to configure the item as you go? This would be along the lines of a Dell or Apple store where as you change RAM or HD selection, the price updates, then when you're finished, it adds the customized item to the cart. I am prepared to do the custom coding if I have to, but though...

What is the purpose of debug/release configurations in Visual Studio 2008/2010 compiling to different folders?

What is the point of compiling assemblies to separate folders? At my work we have 50+ projects which live across a few different solutions. When projects are in the same solution you can set a Project Reference and it picks up the assembly in the \debug or \release folder accordingly. But when setting an external reference (via Browse...

Perl application installation

I have written a small perl application for deployment on a few servers. It consists of some scripts, some modules and some data files. It will be used by multiple users. I'd like to keep all these files together in one directory rather than moving the app modules to the site_perl directory. For example, lets say the application consist...

Correctly use <system.diagnostics> settings in application configuration file

I recently created a Windows service. One thing that it faithfully does is log any errors to the Application log. I have the following code that does this: Dim appLog = New System.Diagnostics.EventLog With {.Source = "MyService"} appLog.WriteEntry(message, EventLogEntryType.Error, transactionID) I also have the following in my app.con...

Enabling html PUT method on IIS 7.5

I'm doing a iCal Service to allow sync between Calendar instances and runs fantastic on localhost (under VS2010 Web Server) But now That I hosted on a Windows 2008 R2 (IIS 7.5.7600) I couldn't create not even update an event :-o Thunderbird always said So I rush into Fiddler and found out the problem a 405 error That says PUT ...

Sending Rails e-mails through Register.com's smtp

I've been trying to send automatic e-mails from Rails - it works perfectly through Gmail's SMTP settings, which are: :address => "smtp.gmail.com", :port => 587, :domain => "mail.google.com", :user_name => "sscirrus", :password => "password", :authentication ...

IIS error hosting WCF Data Service on shared web host

My client has a website hosted on a shared web server. I don't have access to IIS. I am trying to deploy a WCF Data Service onto his site. I am getting this error: IIS specified authentication schemes 'IntegratedWindowsAuthentication, Anonymous', but the binding only supports specification of exactly one authentication scheme. Val...

ActiveMQ without persistence

Hi, I'd like to set up a publisher-subscriber based communication protocol between a server producing messages and many clients receiving them. After a bit of research, I decided to go with ActiveMQ. I looked at a few tutorials and the ActiveMQ site and set up the broker as follows: BrokerService broker = new BrokerService(); broker.se...

How to add widget configuration activity to launcher?

Hi, I have a widget with a configuration activity. Currently the configuration launches when you click on the widget. I want to add the configuration as an app icon to the launcher. The problem is that when the configuration launches on click, I get a specific widget id , so each widget instance can have a different configuration. W...

What is the server configuration to handle much traffic?

In order to handle much traffic, assume that there are 1 billion page views per day, what would be the best configuration of web server? Actually this will depend on so many factors like 1. how well the application architectures is? 2. how optimized the database server is and etc? But in idle scenario, what would be the best server co...

Mac specific optimizations in ~/.gitconfig

I read that discussion about the content of "~/.gitconfig" on Linux: http://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain I know some Mac specific optimizations, such as using "mate" as default editor: [core] editor = mate -w or using opendiff as diff editor: [diff] external = opendiff Do you know oth...