web-config

Internal server error 500 on IIS 8

假如想象 提交于 2020-01-04 17:32:33
问题 I'm having really a weird problem with my website. It works fine locally, but online it shows iis 8 500 - internal server error . In the both online and local versions of the site I use the same remote database. The website works online, but it drops when I try to upload a file to the "upload" directory, which is part of the website. I don't know what the problem is because I can't get any detailed errors. I've added these code pieces in web.config, but still can'tget detailed error

Is it possible to reference a connection string in another connection string?

社会主义新天地 提交于 2020-01-04 11:14:38
问题 We have a project with multiple DLLs. In each DLL, we connect to a database - always the same one for a client. As a result, we now have 3 near-identical connection strings : one for our web site, one for ado.net, and one for telerik reporting : <add name="BDConnectionString" connectionString="Data Source=localhost;Initial Catalog=DATABASE;Persist Security Info=True;User ID=USER;Password=PASSWORD; MultipleActiveResultSets=True;Pooling=True;Max Pool Size=500;" providerName="System.Data

Is it possible to reference a connection string in another connection string?

拟墨画扇 提交于 2020-01-04 11:12:50
问题 We have a project with multiple DLLs. In each DLL, we connect to a database - always the same one for a client. As a result, we now have 3 near-identical connection strings : one for our web site, one for ado.net, and one for telerik reporting : <add name="BDConnectionString" connectionString="Data Source=localhost;Initial Catalog=DATABASE;Persist Security Info=True;User ID=USER;Password=PASSWORD; MultipleActiveResultSets=True;Pooling=True;Max Pool Size=500;" providerName="System.Data

What's the best way to handle web.config file versions in ASP.Net?

一个人想着一个人 提交于 2020-01-04 05:11:51
问题 I have an ASP.Net web site (ASPX and ASMX pages) with a single web.config file. We have a development version and a production version. Over time, the web.config files for development and production have diverged substantially. What is the best practice for keeping both versions of web.config in source control (we use Tortoise SVN but I don't think that matters)? It seems like I could add the production web.config file with a name like "web.config.prod", and then when we turnover all the

Set location of DLLs to load in web.config

允我心安 提交于 2020-01-04 04:37:11
问题 Is it possible within the web.config to set the local file path location of specific DLLs to load rather than having those DLL in the GAC or C:\Windows\System32 . This would make it much easier to deploy the web service, without having to mess around with either of those. I have tried already to add the DLLs to the project but with out success. They are the 4 oracle instant client DLLs. oci.dll orannzsbb11.dll oraocci11.dll oraociicus11.dll If anyone knows of a way of doing this that would be

How do I turn off custom error handling in IIS for my web site?

百般思念 提交于 2020-01-03 17:32:26
问题 How do you even look at the web.config file? I don't know where to go to turn custom errors off...help! I tried command prompt and java script....can any one help me? 回答1: Keep in mind that IIS errors and asp.net errors are two separate things, For remote requests, by default IIS has custom errors enabled, what that means is if you are returning a none 200 response from your application, IIS will discard the body you were sending back and replace it with its own custom page. which can be

Specifying exact path for my ASP.NET Http Handler

◇◆丶佛笑我妖孽 提交于 2020-01-03 17:01:02
问题 I generate an XML/Google sitemap on the fly using an Http Handler, so that I don't need to maintain an XML file manually. I have mapped my Http Handler to "sitemap.xml" in my web.config like this: <httpHandlers> <add verb="*" path="sitemap.xml" type="My.Name.Space, MyAssembly" /> </httpHandlers> It works nicely. Now, www.mywebsite.com/sitemap.xml sets my Http Handler into action and does exactly what I want. However, this url will do the same: www.mywebsite.com/some/folder/sitemap.xml and I

Entity Framework - Format of the initialization string at index 0

喜欢而已 提交于 2020-01-03 16:52:13
问题 Here's the exception, System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0. at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue) at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) at System

Virtual directory inside Orchard web application

為{幸葍}努か 提交于 2020-01-03 09:01:28
问题 I would like to have a /downloads folder inside an Orchard web app where I can direct clients to so they can download files ie. www.mydomain.com/downloads/test.txt In IIS I have created a virtual directory (not an Application) underneath the Orchard website that points to the downloads folder on the server. In the Orchard Global.ascx file, I've added the following, thinking that it was a routing problem: public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource

System.Security.SecurityException: Request for principal permission failed

[亡魂溺海] 提交于 2020-01-03 08:56:18
问题 Can anyone help point me in the right direction of how I might be able to fix this error? System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Security.SecurityException: Request for principal permission failed. at System.Security.Permissions.PrincipalPermission.ThrowSecurityException() at System.Security.Permissions.PrincipalPermission.Demand() at System.Security.PermissionSet.DemandNonCAS() at LiveDocx.MailMerge.SetLocalTemplate(String template,