web-config

HTTP Error 500.19 - Internal Server Error

给你一囗甜甜゛ 提交于 2019-12-27 16:08:06
问题 I am migrating my application from cloud sites to dedicated server. The dedicated server is running on Windows 2008 server 64 bit with IIS 7. My application pool in the new server is in integrated mode. I have a default.htm page as the start page and it works fine. I cannot access any other pages and encountering the error "HTTP Error 500.19 - Internal Server Error" The configuration source showing as error is as follows. {system.webServer} 68: {httpErrors errorMode="DetailedLocalOnly"

HTTP Error 500.19 - Internal Server Error

十年热恋 提交于 2019-12-27 16:06:42
问题 I am migrating my application from cloud sites to dedicated server. The dedicated server is running on Windows 2008 server 64 bit with IIS 7. My application pool in the new server is in integrated mode. I have a default.htm page as the start page and it works fine. I cannot access any other pages and encountering the error "HTTP Error 500.19 - Internal Server Error" The configuration source showing as error is as follows. {system.webServer} 68: {httpErrors errorMode="DetailedLocalOnly"

Encrypting Connection String in web.config

别等时光非礼了梦想. 提交于 2019-12-27 11:42:41
问题 How can we encrypt the connection string section in web.config file? 回答1: Rahul, converting a string from ASCII to base64 string isn't an encryption, which is what your first link suggests. We can easily convert base64 to ASCII. Using configsection.protectSection() with an RSA key is a proper encryption that is available for sections of the Web.config file. Check this link: http://www.beansoftware.com/ASP.NET-Tutorials/Encrypting-Connection-String.aspx Please note, that we can not encrypt Web

How to set the Default Page in ASP.NET?

若如初见. 提交于 2019-12-27 10:39:29
问题 Is there any section or code which allows us to set default page in web.config ? For example, when people first visit my website, I want them to see CreateThing.aspx rather than Default.aspx . The solutions I already know: Put this line of code => Response.Redirect("CreateThings.aspx") in Default.aspx Page_Load event but this method is really naive. We can use IIS (default page configuration,) but I wanna do the same thing over on my ASP.NET application. This could be another solution for now

How to set the Default Page in ASP.NET?

五迷三道 提交于 2019-12-27 10:37:15
问题 Is there any section or code which allows us to set default page in web.config ? For example, when people first visit my website, I want them to see CreateThing.aspx rather than Default.aspx . The solutions I already know: Put this line of code => Response.Redirect("CreateThings.aspx") in Default.aspx Page_Load event but this method is really naive. We can use IIS (default page configuration,) but I wanna do the same thing over on my ASP.NET application. This could be another solution for now

ASP.NET Session Lost When Use Web Garden Settings

廉价感情. 提交于 2019-12-25 16:47:18
问题 I have an ASP.NET MVC (.NETFramework 4.5) application, when I hosted (IIS-7.5), I set max Worker process to 5, And Set Session State to StateServer And Set a static machinekey , after all my session is null, Why? Is there any settings that I lost? any suggestion? 回答1: The problem that I found is so wired, when I use web-garden or web-farm the object that stored in session must be serializable but in regular we don't need this. So I just add a serializable attribute above the object that

The remote server returned an error: (413) Request Entity Too Large

本秂侑毒 提交于 2019-12-25 16:35:50
问题 Please do NOT delete this message as a duplicate!! I am writing a WCF service that allows for XML files to be uploaded so that they can be imported into the database. However I am receiving the above error when I upload a file above the 64k default. I have read through all the questions already posted on here about this problem and implemented them but still am facing the same issue. I have increased all the binding values in my config file (for both the client and server) to accept the

xmlSerializer 'tempFilesLocation' attribute is not allowed .NET 3.5 - showing default TEMP location

自古美人都是妖i 提交于 2019-12-25 14:13:09
问题 I am changing the directory that the temp files are created in when calling information from a soap request (web service) as giving access to windows directories is a no-no per our sys admins. I've added the following to my web.config: <system.xml.serialization> <xmlSerializer tempFilesLocation="C:\\foo" /> </system.xml.serialization> I am working in VS2010 with .NET 2.0 and C# My web.config gives me a warning that the 'tempFilesLocation' attribute is not allowed. But per some tutorials and

xmlSerializer 'tempFilesLocation' attribute is not allowed .NET 3.5 - showing default TEMP location

天大地大妈咪最大 提交于 2019-12-25 14:12:56
问题 I am changing the directory that the temp files are created in when calling information from a soap request (web service) as giving access to windows directories is a no-no per our sys admins. I've added the following to my web.config: <system.xml.serialization> <xmlSerializer tempFilesLocation="C:\\foo" /> </system.xml.serialization> I am working in VS2010 with .NET 2.0 and C# My web.config gives me a warning that the 'tempFilesLocation' attribute is not allowed. But per some tutorials and

Accessing Web.Config from a separate solution

半城伤御伤魂 提交于 2019-12-25 12:35:09
问题 I have two solutions, one is a class library and the other is a web application, and I want to get the connection string from the web.config file to the class library as I am developing a custom membership provider. I am using Framework 4.0 and MS Visual Studio 2010. Thanks 回答1: You can put the configuration settings for any library in the main web.config. It's easy! Connection strings are especially easy. Just add your connection string to the connectionstrings section with the same name it