Greetings,
I have a large .Net web app which runs on a farm of blades with the code base on a NAS. Every once in a while slight fluctuations in the response time of the nas cause .NET to think that something in the bin has changed and kick off a recycle of the app pool. No change has actually occurred. Is there a way to disable .Net's m...
Hi
I've written a sharepoint application that needs to change web.config
I have a feature that is supposed to make all these configurations. The code for that feature is like this:
SPSite site = properties.Feature.Parent as SPSite;
List<SPWebConfigModification> modifications = new List<SPWebConfigModification>();
modifications.AddRang...
The server is IIS7.
Is there a way to disable web.config files in subfolders?
I am asking because, I have a folder on the web server that is for uploads. When someone uploads files, a new folder is created for the user's session and the files they upload go in the folder.
So the path to uploads would be like this:
~/uploads/3F2504E0-4...
Inside of my MVC application, I have a sub-folder named "Admin" that was "Converted to Web Application". In IIS, the Admin folder has also been setup as a web-application.
After publishing my full application, I get a Configuration Error when trying to open Default.aspx within the Admin folder.
EDIT
I made the suggested change an...
When the following profile section is in my web.config, the first page request fail with FileNotFoundException and a bunch of error coming from the compiler (from the look of the stack trace). When the properties section is removed, everything works again (until I try to reference something from the Profile of course). The rest of the w...
I have installed a fresh copy of windows xp 2002 with SP2, and then VS.net 2008 enterprise edition. I am trying to build a simplest possible web application, and its not compiling giving error csc.exe not found. I googled a lot, and spot the problem in the following section in web.config :
<system.codedom>
<compilers>
<compiler l...
We have a fairly hefty VS2008 solution that comprises of many library projects that are referenced by one or more other projects. Some of these libraries define things like WCF bindings and connection strings, but when these are referenced by other projects, it seems to become a necessity to copy the binding settings from the library pro...
I'm wanting to put a DateTime in to the config file, however, I want the DateTime expressed in a specific way. I've seen examples of using a DateTime in a ConfigurationElement (like the example below). The examples I've seen all have the date expressed in American format. I want to ensure that date is understandable by all regardless of ...
Is it possible for a TFSBuild to replace part of your web.config settings with another section?
Is this generally handled by a copy (overwrite) task on AfterBuild or AfterDropBuild where the parts of the web.config have been extracted out into their own seperate files?
UPDATE Mid '10...
If you're using Visual Studio 2010, it now comes...
I may put the website on a different server and it has links linking it especially as it is on sharepoint so there are addresses and ports, so i thought it's better to save the link in Web.Config file in order not to need to change it a lot. So where is the best place or tag to put it in, like for example connection strings is at: config...
Hi,
I want to know the best way of hosting a web application for different domains. What I want to achieve is this:
Have single folder of the web application for easier maintenance.
Be able to override some parts of Web.Config per each site (ATM only ConnectionString, but could be more).
Store log files on file system without interf...
I am trying to write a winform application that would be able to edit the web.config file of an installed web application.
I have read through the ConfigurationManager and WebConfigurationManager class methods but I am unsure as to how I can open the configuration file of a web app and edit it.
I am looking for a method that does not re...
if you have a class library project that acts as ur DAL and it has an App.Config file with connectionstrings, how can I force it to use that config file? It keep getting values from the web.config in my Web Application project.
The DAL project uses LinqToSql. When I instansiate a DataContext object in my Web Application, from the refere...
Hello,
I'm writing an ASP.Net Web Application that can be deployed to Web Farms. I've written some code to update a few config options (AD Membership server, Selected Theme, etc), but now i'm wondering how can they be synchronized between multiple servers? It looks like sharepoint has a feature to manage those scenarios, but i have no c...
Hello,
I have a dedicated server [win2008 & iis7] that is going to have 50 sites running the same .Net e-commerce application.
Would it be best to use virtual directories for all the folders that are identical for each site? It would save on disk space & would make code updates much easier.
Would each virtual directory still know to get...
Can having multiply entries for the same assembly in the web.config cause an increase in the initial start time of an ASP.NET application?
For example:
<add assembly="ESRI.ArcGIS.ADF.Web.DataSources, Version=9.2.2.1380, Culture=neutral, PublicKeyToken=8FC3CC631E44AD86"/>
<add assembly="ESRI.ArcGIS.ADF.Web.DataSources, Version=9.2.2.138...
I have a number of appSettings in web.config that are used frequently (i.e. on each post back). Does the ConfigurationManager hold these values in process or are there any performance gains to be had by copying these values into application state on ApplicationStart() and subsequently retrieving them from there?
...
I have an asp.net web site, I want restrict all users to access a folder named "log" and I have this element in web.config:
<location path="log">
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
and this element before it in system.web:
<authorization>
<allow users="*"...
I work in a company where we have a lot of small ASP.Net/C# apps. I've been making efforts to centralize as much of the functionality as possible by creating shared libraries for common functions (like Active Directory lookups, FTP, etc).
I'm trying to create an email dll that will perform SMTP interactions. I'd like to make this confi...