web-config

Problem with debug="false"

I have a program and it works well with debug="true" in web.config. When i want to get the good version i put debug="false". When i open 2 (or 3 or 4, it's aleatory) selection window (pop windows) i have a timeout error. I have read if debug is true property is not taken into account. But i have set this value to "900" and the error pe...

Encrypt data in web.config

I have the following line in my web.config <appSettings> <add key="AdminPassword" value="ASDF1234" /> </appSettings> How can I encrypt it? I tried this tutorial but it got me all confused Help?! ...

Using ASPNet_Regiis to encrypt custom configuration section - can you do it?

I have a web application with a custom configuration section. That section contains information I'ld like to encrypt (was hoping to use ASPNet_RegIIS rather than do it myself). Web.Config: <?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"&gt; <configSections> <section...

Error After Encryptingweb.config

I encrypted the AppSettings part of my web.config, tested it on my machine and it worked, but when I uploaded to use it online it gave me an error: 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 a...

Changing WCF Service reference URL based on environment

I have a web application that uses a number of WCF Services. I deploy my web application in various environments (dev, UAT, production etc). The URL of each WCF Service is different for each environment. I am using .NET 3.5 andbasicHttpBindings The web application uses a framework to support machine-specific settings in my web.config fi...

Storing SMTP outside the Web.Config File.

For some time now I've been storing my connection and app settings in an external file and just referencing that file via my web.config. This works really well because it allows me to keep separate connection strings and app settings. This is really handy since I find during development I will often make many changes to the webconfig and...

asp.net "network BIOS command limit has been reached" ASP.NET 2.0 + 3.5

Hi, I'm trying to run tinyMCE texteditor in ASP.NET 2.0 + 3.5 but I get the following error in my web.config file.. An error occurred loading a configuration file: Failed to start monitoring changes to '###\Visual Studio 2005\WebSites\TinyMCE\tinymce\jscripts\tiny_mce\langs' because the network BIOS command limit has been reached. For ...

SharePoint Ajax web part web.config problems

Hi I am using AJAX Extensions 1.0 in my web part. It works great when I add it on SharePoint and everything runs fine. I also have links to other applications which are put onto SharePoint as IFRAME's. I run into a problem with the application inherting from my SharePoint web.config. I get this error in the IFRAME: Parser Error Mess...

Can I programattically define my IIS7 site-bindings (eg. foo.domain.com)?

Hi folks, for my IIS7 website, i've had to go into the IIS7 Services Manager and define all the bindings for the site. Works fine. I was wondering if it's possible to do this programatically in the web.config file instead? I know you can provide a few iis7 settings in there.. wasn't sure if it's possible to also include the bindings? ...

Can I place ASP.NET user controls on pages without a control declaration?

I would like to put user controls on pages without registering the tag at the top of the page. For example: <p>some text</p> <myname:mycontrol runat="server" /> Is this possible? I've heard that tag declarations can be done in web.config... is this true? If so, any idea which .NET framework versions support this? Thanks ...

Moving Settings to another config file

Hi. Is it possible to move applicationSettings to another config file as it is possible with connectionStrings or appSettings? When I create Settings for my web application using the designer I get applicationSettings section in my web.config such as: <applicationSettings> <TestWebApplication.Properties.Settings> <setting...

Auto formatting a web.config in Visual Studio 2008

I am currently in the process of creating API documentation using Microsoft Word 2007 and I need the user to cut and paste a section from the document into their web.config. I formatted the section in the Microsoft Word document for easy readability and when I paste the formatted section into the web.config it maintains the style from t...

Creating a custom .config file in asp.net

Hi, Is there a way I can create a blah.config file in asp.net, and access the name/value pairs of nodes the same way you access items in in a regular web.config file? (the idea is to not have to write any custom code for this). ...

using system.web.authorization settings in web.config to protect classic asp files?

I've got a virtual directory with a vast subfolder hierarchy and thousands of classic ASP files, all of which have varying permissions set at the NT folder level (don't ask.. shakes head). Is there any way to setup all these virtual directories with their own web.config so i can control access via configuring system.web.authorization p...

How do I give my .ASHX access to ConfigurationManager.ConnectionStrings?

I have included the same files that other pages have that use it but for some reason it's just not finding it. How do I include access to it? ...

Is IIsreset always neccessary when storing my Web.Config appsettings in a separate file?

Hi everyone. I've got an ASP.Net app in which my AppSettings node from the Web.Config xml is stored in a separate file. So my Web.Config contains this: <appSettings file="AppSettings.config" /> Whenever I change a setting in there I have to do an iisreset to force the changes to kick in. In other words, my changes in this file aren'...

referencing appSettings from usercontrols

In my .ascx usercontrol i'm trying to dynamically generate links using a value i've stored in web.config. <a href="<%$appSettings.MYPATH%>/file.aspx">link</a> and when i try running, i get a parser error Literal expressions like '<%$appSettings.MYPATH %>' are not allowed. Use <asp:Literal runat="server" Text="<%$appSettings.MYPATH%>...

web.config ignoring certain files from requiring authentication

In my asp.net web application, I have a folder in which I have a few html and jpeg files. some of these files do not need a user to login while the others do. How do I exclude the files that are free for view to be displayed without logging in while still maintaining the user to login for viewing other files in the same folder using just...

Lightweight editor for web.config files

I'm looking for a lightweight text editor for web.config files which has colour syntax highlighting (like in visual studio). Any suggestions? ...

Intellisense in .aspx for new tags added to the web.config pages/controls element

When I add an element in the controls node, the .aspx doesn't reflect it immediately. Often, down the road in the development, it will show up (when I could have used it before). Obviously Visual Studio uses a cache somewhere. How do I refresh that cache so I can get intellisense in the .aspx for properties and what not? <pages> ...