Can I Add ConnectionStrings to the ConnectionStringCollection at Runtime?
Is there a way where I can add a connection string to the ConnectionStringCollection returned by the ConfigurationManager at runtime in an Asp.Net application?
Is there a way where I can add a connection string to the ConnectionStringCollection returned by the ConfigurationManager at runtime in an Asp.Net application?
Previously for all our asp.net applications we have been using a sysadmin user within SQL Server to connect and add/update/delete/get data. Our SQL Admin wants to delete that account and create a Domain Account so we can use that account within our .net applications.
I have some general questions about web.config and how it works regarding assembly reference. I’ve been playing around with the new Razor view engine and had some trouble getting it up and running.
Under the root directory I have the following structure
I have a Web Application in Asp.Net 4 running locally on IIS 7.
I need display a Custom Page (404) and an 500 instead for the defaults page for IIS.
Using this httpErrors in Web.Config
I have a custom config in my Infrastructure Project, but when my app start only my web.config is recognized.
on local machine ,i created sample project on mvc4 (razor) and create directory named “x” and put a text file “a.txt” in it.
I have a web-site, which uses ASP.NET and is hosted at IIS 7.5 shared hosting, so I have no direct access to IIS settings. Now I want to enable gzip compression of my pages and css/js files using IIS capabilities, but none of recipes found at the Internet worked for me. For example, when I add what is written here to my Web.config, nothing changes: no errors, no compression.
This is my web.config which has some tags for blocking Ipaddress