If you can, pass the connection string as a parameter to the class library. Second option is System.Configuration.ConfigurationManager
1 developer story and 9 posts tagged with “Web.config”
IIS - Disable CORSAugust 14, 2019 · 1 min read
Disable CORS for IIS 10 website by allowing all origins in two simple steps.
Azure Web App - Missing MIME typesJuly 11, 2019 · 2 min read
If you are seeing "404 Not Found" for .woff, .woff2 or for .json files even if they exist on your azure web app, this is the post for you.
Hunting security bugs in an old web applicationOctober 09, 2017 · 4 min read
In this post, I am sharing one of my security bug hunting experience in an older ASP.NET web form project.
Redirect HTTPS requests to HTTP using IIS Rewrite rule in Web.ConfigSeptember 28, 2017 · 1 min read
Use the provided rewrite rule to redirect HTTPS requests to HTTP.
Redirect HTTP to HTTPS using Web.Config in IISSeptember 25, 2017 · 1 min read
Use IIS Rewrite rule to redirect all HTTP request to HTTPS.
Redirect WWW to Non-WWW using Web.Config in IISSeptember 19, 2017 · 1 min read
Use IIS rewrite rule to redirect (301) all www requests to non-www.
Inserting Rewrite rule in Release ConfigAugust 12, 2017 · 3 min read
Adding rewrite rule in release config is handy so that it will not affect during Debug mode.
Redirect non-www urls to www urlsAugust 12, 2017 · 2 min read
When considering SEO, either you have to stick with www versioned url or non-www URLs. Having both accessible for a domain is a bad practice.