web-config

ASP.Net Forms Authentication Logging out users after 10 minutes

旧城冷巷雨未停 提交于 2020-01-01 10:08:02
问题 I am having a really bad issue where no matter what I try, the user is being logged off after 10 minutes. I am using ASP.Net 2.0 running on IIS 6.0 on Server 2003 R2 Standard Edition running as a Virtual Server with all applicable updates and .Net 3.5 SP1. The client is Internet Explorer 7.0 Below are the web.config settings: <!-- Authentication Mode --> <authentication mode="Forms"> <forms name=".RecipeViewer" timeout="240" /> </authentication> Below is the code used to set the authorization

ASP.Net Forms Authentication Logging out users after 10 minutes

隐身守侯 提交于 2020-01-01 10:07:52
问题 I am having a really bad issue where no matter what I try, the user is being logged off after 10 minutes. I am using ASP.Net 2.0 running on IIS 6.0 on Server 2003 R2 Standard Edition running as a Virtual Server with all applicable updates and .Net 3.5 SP1. The client is Internet Explorer 7.0 Below are the web.config settings: <!-- Authentication Mode --> <authentication mode="Forms"> <forms name=".RecipeViewer" timeout="240" /> </authentication> Below is the code used to set the authorization

How do you setup HTTP and HTTPS WCF 4 RESTful services?

时光总嘲笑我的痴心妄想 提交于 2020-01-01 10:00:50
问题 I'm trying to use WCF 4 to set up a RESTful web service. I'd like the service to be accessible both using HTTP and HTTPS. By default the service is created with the following configuration which works for http but not https: <system.serviceModel> <behaviors> <endpointBehaviors> <behavior> <webHttp helpEnabled="true" /> </behavior> </endpointBehaviors> </behaviors> <protocolMapping> <add scheme="http" binding="webHttpBinding" /> </protocolMapping> </system.serviceModel> I can then turn on

C# connection string in web.config file

浪尽此生 提交于 2020-01-01 09:14:13
问题 In my code behind page, how do I access the connection string which is stored in my web.config file? 回答1: System.Web.Configuration.WebConfigurationManager.ConnectionStrings["YouConnStringName"].ConnectionString; This requires references to System.Configuration.dll and System.Web.dll. 回答2: How to: Read Connection Strings from the Web.config File 回答3: From comment on http://msdn.microsoft.com/en-us/library/ms178411.aspx string c = System.Web.Configuration.WebConfigurationManager

MSDeploy setParameter not working

£可爱£侵袭症+ 提交于 2020-01-01 08:36:05
问题 We are trying to integrate a 'build once, deploy anywhere' model in our build-deploy system. MSDeploy works wonders for this, cutting down build time dramatically with CRC checksum comparisons and ( for the most part ) it works just as well when using parameterisation to change applications web.configs depending on the environment we deploy to. I have the majority of these parameters nailed down, but a few elements and attributes never seem to change, no matter how many different ways I call

Select node based on child node value in Web.config Transform

主宰稳场 提交于 2020-01-01 05:36:13
问题 I have the following XML in my web config and I would like to select an attribute for removal using web.config transforms, but I would like to select the element for removal based on the value of one of the child elements. My web.config is something like this: <configuration> <sitecore> <scheduling> <agent type="Sitecore.Tasks.DatabaseAgent"> <param desc="database">core</param> </agent> <agent type="Sitecore.Tasks.DatabaseAgent"> <param desc="database">master</param> </agent> </scheduling> <

Setting up URL Rewrite rule for a specific domain

好久不见. 提交于 2020-01-01 04:43:14
问题 For local dev testing, I need to catch all requests to www.somedomain.com/XXX (where X is the path), and send them on to localhost/somevdir/XXX . I've added this to my HOSTS file (c:\windows\system32\drivers\etc): 127.0.0.1 www.mydomain.com Then, in IIS8 (Windows 8), I've added a binding to my "Default Web Site" for the host www.mydomain.com. This works, I can now browse www.mydomain.com/test.html and see a test html page. My virtual dir is inside the Default web site. I then add a URL

How can I see the exception call stack in SharePoint 2010?

落花浮王杯 提交于 2020-01-01 02:42:06
问题 I am trying to port a SharePoint 2007 site collection feature to 2010. During the feature activation, SharePoint shows the "yellow screen of death" stating "The current custom error settings for this application prevent the details of the application error from being viewed.". AFAIK I have configured everything that is need to see the error: in c:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config I have set <system.web> <customErrors mode="Off" /> <compilation debug="true" /> <SharePoint>

Could not load file or assembly 'System.Web.Providers"

帅比萌擦擦* 提交于 2020-01-01 02:00:06
问题 hello this my config file <?xml version="1.0"?> <configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/> <sectionGroup name="elmah"> <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/> <section name="errorLog" requirePermission="false" type="Elmah

Error parsing AppSettings value with a query string

霸气de小男生 提交于 2020-01-01 01:35:13
问题 In my AppSettings in web.config, I have something like this: <appSettings> <add key="ExternalSystemUrl" value="http://domain.com/page.aspx?id={0}&action=eat&object=bacon" /> </appSettings> However, it seems that when an ampersand ( & ) is included in an AppSettings value, ASP.NET throws the following error: An error occurred while parsing EntityName Why does this happen, and how can I include URLs like this in App.config? 回答1: Replace & with & (escape it): <add key="ExternalSystemUrl" value=