Hi,
In the Setup Project I have 2 web.config files: web.config - used during the development and web_dist.config - the one that should be included into Setup Project.
I must be sure the the Setup project will NOT include the web.config and will always include web_dist.config.
In the File System -> Web Application Folder I have added t...
Are there any .NET APis that can read/update the system.webServer node in web.config? I know I can do it via reading/parsing the web.config file as xml but that's awkward.
To read/update the system.web node in .NET 2 I can use:
HttpModulesSection httpModulesSection = (HttpModulesSection)configuration.GetSection("system.web/httpModules...
Here's my Application_OnError event sink in global.asax.vb:
Sub Application_OnError(ByVal sender As Object, ByVal e As EventArgs)
Dim innerMostException As Exception = getInnerMostException(Me.Context.Error)
If TypeOf innerMostException Is AccessDeniedException Then
Security.LogAccessDeniedOccurrence(DirectCast(in...
Is it possible to set the allowSubDirConfig to False in the web.config of the actual virtualdirectory?
...
hi
I am implementing paymentgateways and I need to protect its key and password for security reason. also some webservices keys and password in asp.net.
Please help me to do as mention.
waiting for your valuable thought.
Thanking You.
...
Hi,
I cant seem to find the modifications I made to web.config in my FeatureRecievers Activated event. I try to get the modifications from the SpWebApplication.WebConfigModifications collection in the deactivate event, but this is always empty.... And the strangest thing is that my changes are still reverted after deactivating the featu...
If I put configuration settings (like membership provider) DB Connnection, etc. in the
"machine.config", and remove the "web.config" file from my current application, will my application work without any trouble? Is it an accepted practice in .NET?
...
I need to setup some 301 permanent redirects in the web.config of an ASP.NET MVC application running under IIS.
The easiest way is to add a tag similar to the one below to the web.config file:
<location path="TheMenu.aspx">
<system.webServer>
<httpRedirect enabled="true" destination="menus/" httpResponseStatus="Per...
Hi guys
I have an ASP.Net MVC app using Integrated Security that I need to be able grant open access to a specific route.
The route in question is '~/Agreements/Upload' and the config I have setup looks like this:
<configuration>
...
<location path="~/Agreements/Upload">
<system.web>
<authorization>
...
I am using Castle Windsor for IoC, and have the configuration held in the web.config/app.config, using the following factory:
public static TYPE Factory(string component)
{
var windsorContainer = new WindsorContainer(new XmlInterpreter());
var service = windsorContainer.Resolve<TYPE>(component);
if (service ...
I was setting up permissions for pages in a ASP.NET website with <location> tags in web.config, something similar to this:
<location path="Users.aspx">
<system.web>
<authorization>
<allow roles="Administrator"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
However, I also have a web.sitemap whic...
If I've built my application in release mode, and precompiled the aspxs, what does
<compilation debug="true" />
do in the Web.config?
Do I still need to set this to false for production code?
Under what circumstances does this have any affect?
Thanks
...
It works on my machine...
I have a problem with using a C# Graphics method on my ASP.NET web host.
I'm combining two map pins into a single image. I load an empty pin image and write a number on top of it. I then combine two of these, having rotated one 15 degrees and the other -15 degrees. It looks fine running through my localhost we...
How could you do to read a web.config file from inside a aspx file?
Thanks!
...
I am trying to write unit tests for my transformations, so I am running:
msbuild migrated-project.csproj /p:Configuration=Release /T:TransformWebConfig.
This works for a new project I create in VS2010, but doesn't in this project. I'm assuming it's because it was originally a 2008 project. I know this is supposed to run in a webplatf...
I have a WCF web service, and I want to use Basic authentication. I am getting lost in the authentication options:
In IIS 6 Manager, I can go in to the properties of the web site and set authentication options.
In the web site's web.config file, under system.web, there is an <authentication mode="Windows"/> tag
In the web site's web.co...
Hi,
I've got 3 connectionstrings in web.config, and I used theirs like this:
using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["SomeName"].ConnectionString))
Every metgod is called by winforms application.
One of webmethods doesn't work properly because it reads only one connectionString:
...
Hi,
Any help with this would be really appreciated!
As the title suggests, I'm running a brand new install of Windows Server 2003 and IIS 6 and I'm basically attempting to mirror a live web server onto a new internal development server, which runs the same setup.
It's an ASP.NET site that relies heavily on URL rewriting (using Intelli...
I'd like to know if there is an automated method to add e-mail settings to web.config.
There is already an e-mail set, and it's currently like this:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network host="0.0.0.0" port="25" userName="[email protected]" password="stackoverflow" />
...
Heres something I've been pondering for a while ...
Do you struggle with the size and the number of entries in the web.config file? Do you understand every element?
Is it time for Microsoft to relook at how an ASP.NET site is configured, perhaps by splitting the web.config file into multiple files?
...