I have an ASP.net 1.1 application.
In a sub-folder, I've installed blogengine.net, which is a 2.0 app.
The folder is set to be an application and is using the proper framework.
It works...except for authentication.
The issue is inheritence from the web.config in the root application.
The common fix for this issue is to use 'clear' i...
I've been learning and building JSONP Web services using WCF on fx3.5. You can read some of the trials I had at http://stackoverflow.com/questions/1903022/net-asmx-returning-pure-json. I finally got a sample running but now I am I am dove tailing it into my app.
RivWorks.Web - the web site - located at http://dev.rivworks.com
RivWorks...
Is there a way to override a ConnectionString in an app.config. Our buildsystem runs also on a server of a customer, but there the connectionString needs to be different. Because the app.config is in svn, everytime I change something in the app.config and commit it, I need to go to the server of the customer to change the connectionStrin...
I'm using an Web Deployment project to do a few post build tasks on a website I'm deploying.
I want to use a FileUpdate task to update my web.config and change the compilation mode from debug="true" to debug="false".
So, from this
<compilation defaultLanguage="c#"
debug="true" />
To this
<compilation defaultLangua...
Hello,
I have two WCF RESTful services - the "general" service is public and has no security; the "admin" service I intend to use basic authentication over SSL. This is my server side web.config:
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name="general" maxReceivedMessageSize="2147483647">
...
My ASP.NET app has a web.config healthMonitoring section set up to email me when errors occur. Periodically I get errors that I would like to ignore, such as Invalid Viewstate or ScriptResource.axd errors. Is there any way to configure web.config to NOT email me when the exception message matches a certain search string or regex? I thoug...
I am using log4net for logging. My logging configuration is stored in a separate file.
Web.Config:ConfigSections
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
Specifying my config file in AssemblyInfo.cs
[assembly: log4net.Config.XmlConfigurator(ConfigFile="Log4Net.config", Watch = true)...
How do I force IIS 7 to not cache images for a particular page?
...
This is regarding a web.config file
Here's the ConfigSection
<configSections>
<sectionGroup name="HttpExceptionHandler">
<section name="errorLog" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="errorMail" type="System.Configuration.S...
I simply want to rewrite a URL like http://www.domain.com/2010 which actually opens something like http://www.domain.com/page.aspx. Since that's not a complex rewrite requiring wildcard mapping, I decided to use urlMappings section in my web.config file.
All worked fine for 95% of users. However there is a strange issue: when users beh...
Is it possible to set the logger from configuration. I have a web app
using a framework. The framework is extensible and has the logger.
When I log, currently, the logger is set to the framework class.
Is it possible that I can configure my web app and set the logger for the web app to
loggerForWebApp and the logger for a console app (...
Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.
This is the error that I am getting. If I try to access the web site using the localhost it works fine. But, when I am us...
For various technical reasons which I won't bore you with here, I need to redeclare a section declaration in the configSections section of an ASP.NET 2.0 application which is configured as a child app of another ASP.NET 2.0 application. This is required so the child application can use a different type (same name, different assembly) for...
Solution: Just to add the solution: sectionGroups do not seem to have attributes. The proper way seems to have a ConfigurationSection as the parent and ConfigurationElement as each children. There is also ConfigurationElementCollection for Collections. An example from the .net Framework: <roleManager> is a Section, <providers> is an Elem...
On a site I'm working with, we've got two classes of changes they can ask for. On one hand, they've got stuff that I'd have to rebuild and redeploy. They count these as "downtime" changes, because we display a nice little splash screen and we test the site thoroughly when we come back up.
On the other hand, they ask us to do a number ...
I am attempting to use the location element in the web.config file of an ASP.NET 2.0 application to prevent the inheritance of configured elements such as HTTP handlers in child applications. I can get this to successfully work on my development machine, but when deployed to production this isn't working, and child apps are inheriting co...
Hello everybody
I wrote a backup procedure using smo. this procedure works great on my dev box, but once deployed to the hosting company's web server it throws above exception ("System.Security.SecurityException: That assembly does not allow partially trusted callers.")
I did some research on the subject and it seems that hosting compa...
I have recently decided to move my connection strings to machine.config as this seems to be by far the most elegant approach for managing multiple environments. However, I would still like to be able to override these settings in my local web.config if the need arises (or the non-enlightened masses begin to complain).
How can I override...
Has anyone seen an exception relating to the Media.UploadWatcher? I don't have the error handy, but the exception was causing all pages to not load, even the admin section. In order to fix it, I reset the application pool and the site came back up right away.
I know that the client was uploading some large files through the content ed...
I am ristrcting access to the Account folder using below:
<location path="Account">
<system.web>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
</system.web>
</location>
and access to the Default.aspx using
<location path="Default.aspx">
<system.web>
<authorization>
<deny us...