configuration

How can I embed web service settings in a DLL?

Hi, I am writing a DLL in VB.NET which will be referenced by an ASP.NET website. The DLL project has a reference to a web service in it. When I added the web service to the project, a chunk of configuration information was added to the 'app.config' file. In order to get this to work in the host website, I had to copy the information ...

Oracle Connection Problem

Hello, I recently got a new machine at work, and moved from XP 32 Bits to Vista 64 Bits. Whatever I do I cannot get my .Net projects to connect to the oracle Server... I can connect to the database using oracle sqldeveloper, but not from my projects... I Get This error (which is puzzling me...) "An error has occurred while establishi...

How can I use ediff (emacs diff) as a diff/merge tool in Windows ClearCase?

I'm forced to use ClearCase (Windows version) at work, and I want to use emacs ediff as a diff and merge tool. The problem with the ClearCase map file is that it requires .exe files - I've tried to specify a batch file calling ediff and it didn't work. I don't want to write a C/C++ program (it's been more than 10 years since I've coded ...

Configuration Error

I am getting following error while running my application which is asp.net. Server Error in '/ASPMassShop' Application. "Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configur...

Convention over configuration with Spring MVC using ControllerClassNameHandlerMapping?

Following the directions from Spring Source and the book Spring in Action, I am trying to set up Spring MVC in a way that minimizes xml configuration. However according to Spring Source this is how you set up the ControllerClassNameHandlerMap <bean class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"/> ...

Is it possible to modify configuration ConnectionStrings at runtime?

Is it possible to modify the connectionstrings defined in the app.config/web.config at runtime? I want to use different configfiles depending on the machine the app/site is run on (only for debugging purposes, of course. We'll use the regular config files when deployed). I can write AppSettings, but not ConnectionStrings (AFAIK). Or can...

How can I load a config file from different assembly in asp.net?

Hi I am using the Validation Application Block form the Enterprise Lib, and have my validation rules defined in a validation.config that is located in the same assembly as the entity objects (so I can use the same rules in both the backend and on the website). But how do I get the validation.config from the entity assembly into the web...

Eclipse Configuration Problems

Lately, I am trying to use Eclipse more often, but so far I have shied away from it because I found it so difficult to install new packages. Whenever I find and try to install a new package, the errors panel flashes a batch of configuration errors. It requires this or that package to install this one. And when I find that package, it tur...

App.config - encrypted section error:

I have an application that encrypts a section in the configuration file. In the first time that I try to read the encrypted section from the config file I get an error message: "Unrecognized attribute 'configProtectionProvider'. Note that attribute names are case-sensitive. " config = ConfigurationManager.OpenExeConfiguration(Confi...

ASP.NET: Location for storing files that should be shared between several web-applications

I have two web-applications. One is an outwards-facing application that will be accessible from the internet. The other is an application to manage the first, that will only be accessible from the intranet. They keep their data in files on the filesystem (I think a database would be overkill for these applications). The management-appl...

Avoiding too many configurations for a Visual Studio project

I'm currently porting a large Linux project to Visual Studio. The project depends on a number of third-party libraries (Python, MPI, etc.) as well as a couple of in-house ones. But it can also be built without these libraries, or with only a few of them. So I don't want to create a different configuration for each possible combination, e...

Tab-completion in Python interpreter in OS X Terminal

Several months ago, I wrote a blog post detailing how to achieve tab-completion in the standard Python interactive interpreter--a feature I once thought only available in IPython. I've found it tremendously handy given that I sometimes have to switch to the standard interpreter due to IPython unicode issues. Recently I've done some work...

Where can I find the application.exe.config file in my C# project?

Where can I find the application.exe.config file in my C# project? I'm attempting to enable the JIT debugger but cannot find the config file. thanks! ...

Configuration for SQL Server Based Assembly

I have an assembly deployed to SQL Server that performs an export to an accounting system SDK. The reasons that this is deployed to SQL Server are beyond my control, and I cannot modify the target database. In development, I moved several dynamic queries from hard-coding to text files outside the application, so that queries can be twe...

Need help in web config file

Hi all, I am facing problem when i am creating new user,using CreateUserWizard control.I have added in connection string : <connectionStrings> <add name="BankingTransaction" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Bank.mdf;integrated security=True;User Instance=True" providerName="Sys...

Finding Active Visual Studio 2008 Connection Strings

Is there a simple way to figure out which connection strings are being used in my web.config. After a lot of LinqToSQL testing, I have a few extra connection strings sitting in my web.config that I'm sure aren't being used, but I'm not exactly sure which ones are/aren't. Any quick ways to single these out. The obvious solution is to p...

.NET Type loadable from App.Config

How do I design a type that loads it's properties from the App.Config file in the same way that SMTPClient class, or a TraceListener would? What standards should I follow when doing this? ...

Anyone know where I can get a virgin copy of IIS7's applicationHost.config?

I recently moved to a new machine and forgot to make a backup of applicationHost.config before mucking around with IIS7's settings using both appcmd and the Management Console. I would now like to restore IIS7's settings to their original state, but I don't have a backup of the original settings to restore from. By the way, I do know...

Configuring a web service endPoint and contract from C# code?

Edit: I decided to just convert this to a normal web page, as I only need to provide one integer parameter and retrieve a string. I'll leave the question open if anyone has a good answer. I have a web service that I want to call, but because this must be called from a plugin to another system, an application config file with all the ...

Using app.config with a class library

Frequently I need to create a .Net class library that requires an app.config for things such as database connection strings. However, these settings must be in the calling application's app.config or web.config. If I want to distribute the DLL across multiple applications it becomes a pain to have to keep copying these settings in the...