Dear All,
I'm new in Hibernate word, I got some source code example about Nhibernate with C# code, It worked fine, But when I try to create a new console as their example, I got many error, and I can't solve.
So I hope everybody in stacoverflow help me solve my issue.
When I try to run my C# console
hxxp://www.vi-vn.com/pubs/Forum.Im...
Any reliable elegant way of detecting whether the current app is a win or web forms (or other) application?
We have a common config class which needs to open either app.config or web.config.
Currently, I'm catching ArgumentException when I try OpenExeConfiguration but it's not very elegant and might mask other issues.
...
I am actually in the learning phase of .NET related stuff and I was exploring how to save the application. I ended up writing my own class which saves the settings in an XML file and then I found that .NET itself supports saving application settings.
But I found 2 ways to do that. When I open add new item dialog in Visual Studio 2008, i...
I'm trying to find the sqlite database file that rails creates.
Sorry if this is a dumb question but which folder is this file stored in?
I've looked in all of the folders in my Rails project and can't find it.
My database.yml:
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout...
How do I configure Visual Studio to stop launching a broswer window ever time I debug an ASP.NET project?
...
In the database I have about 150 tables - most of them from previous versions of the application I currently work on.
For my app I only need about 20 tables - is there a way to ignore some of the tables by setting some parameter in web.config?
...
Static code analysis tool in MSVS (for C++) has plenty of false positives, and some of them are in Windows SDK files. Is there a way to configure it in order to improve quality and ignore stable SDK files?
...
We are considering to use Configuration Admin Service as a primary API for configuring components in our OSGi-based application. It would be nice if we could reuse some existing implementation so I'm trying to investigate and evaluate the most popular ones. I know there is:
Apache Felix Config Admin (org.apache.felix.cm)
Equinox Config...
I have a rails helper in my application_helper.rb file that looks like this:
def external_link(name)
url = external_links[name]
if url.blank?
Rails.logger.error "No URL defined for external link [#{name}]!"
return "[URL undefined]"
end
return url
end
The 'external_links' variable is a hash that should b...
I have a WinForms app that uses the Settings feature of .NET 2, but the User scope settings values saved in the application often get replaced by the default values stored in the Settings class. Long ago I found guidance somewhere that attributed this to an auto-incrementing build number, and I suspect this is true. However, said guida...
We use the ExpressionEngine CMS (php) to create websites. For each site, we set up a subversion repository and commit the EE installation as well as any custom templates, images, javascript, etc. that are used. Included in the repository is the file containing all of the environment variables and the .htaccess file.
We have a developmen...
In a C# app, suppose I have a single global class that contains some configuration items, like so :
public class Options
{
int myConfigInt;
string myConfigString;
..etc.
}
static Options GlobalOptions;
the members of this class will be uses across different threads :
Thread1: GlobalOptions.myConfigString = ...
I am using the TeamCity VisualStudio sln configuration to drive my CI build. It runs all my NUnit tests - which is all well and great but I don't want TeamCity running any of my tests with the [Category("DatabaseTests")] attribute (since they hit an actual database).
In the NUnit configuration under categories to exclude I put simply ...
Is there a way to make assembly attributes show up when you right click-> Properties->details on an exe?
I know about the standard ones but I want to add my own (e.g. Email).
Edit: Also if there is a way to do this post build, that would be fine.
...
Hey, I want to store application configuration data. Currently, I'm using INIs but they are too old and now I want to try something new. I'm on .NET platform using C#.
What solutions do I have? app.configs?
The scenario here is like that, I want to let other programs read the configuration data.
...
I have implemented a custom section in my app.config file and am accessing it using ConfigurationSection and ConfigurationElement. When the application starts all data is retrieved correctly. If I manually change the values in the app.config file then my application later calls ConfigurationManager.RefreshSection I still receive the or...
I need to be able to store the XML of my web.config serviceModel element in a database, and have my application read it at startup. Is there a way to do this by just changing my startup code to "override" the serviceModel element in the .config file? I see there is an answer to another question about doing this for the appSettings sect...
Hi,
I've installed Windows 2008 Web Server and enabled IIS. However, my machine.config file shows:
section name = "system.webServer" type = "System.Configuration.IgnoreSection...
Does it mean that the system.webServer section is ignored? Why?
I tried to edit some web site's properties (e.g. directory browsing), and it works correctly....
Hi there!
Currently I'm trying to execute some bundles using the capabilities of the EclipseStarter class. If I run my program directly from Eclipse the OSGi service bundle is loaded and I'm able to install and start other bundles.
But if I export my java program to a executable jar-file and run it from the command line the environment...
I have an XML file that contains database settings that may change depending on where it is read. Preferably, I would read those settings from some configuration file. How can this be done?
...