Please enable JavaScript.
Coggle requires JavaScript to display documents.
DEPLOYMENT_2 - Coggle Diagram
DEPLOYMENT_2
SECURING
ToAvoid
PlainText
Secrets
Exclude
SourceControl
RC-ProjName
Add > NewItem
Web >
WebConfigFile
GiveName
AppSettings.config
Empty
TheFile
Add-In
.gitignore
Move
Here
Elements
appSettings
connectionStrings
In-Web.config
Add
appSetting
Elements
connectionString
WithoutChild
AddAttr
configSource=
"AppSetting.config"
IIS
Doesn't
Serve
ConfigFiles
Encrypt
Open
VS-Tools
DevCmdAsAdmin
Cmd
aspnet_regiis
-pef "appSettings"
-prov "<Provider Name>"
"folderPathOfConfigFile"
Providers
DataProtectionConfigurationProvider
OnlyOneMachine
Encrypt/Decrypt
RSA Provider
Digital
Certificate
Required
Decrypt
aspnet_regiis
-pdf "appSettings"
"folderPathOfConfigFile"
Build
Automation
Required
LOGGING
Unhandled
Exceptions
Install
Elmah
Working
PlugsInto
Request
Processing
Pipleline
Wraps
Exception
Unhandled
Details
StoresIn
Memory
Default
Or-DB
Viewing
domain/elmah.axd
Accessible
Locally
Remotely
Enable
In-<elmah>
security
allowRemoteAccess
true
Allowing
Users
ChangeAs
<allow
users="admin@v.com
,
u1@v.com
"/>
In-Web.config
In-<location
Copy
authorization
Paste
After
httpHandlers
Access
Making
ERROR-PAGE
Custom
Exception
In-Web.config
In-system.web
Add
<customErrors mode="On">
mode
RemoteOnly
CustomFor
RemoteUsers
On
ForAll
CustomErrorPage
In-Views/Shared/
ServedBy
In-FilterConfig
HandleErrorAttribute
Not-Found
Default
ServedBy
Asp.net
For-InvalidAction
IIS
Action
Returns
NotFound
Not-Existing
Resource
domain/image.png
Custom
ASP.NET
In-customErrors
AddChild
<error
statusCode="404"
redirect="~/404.html"/>
IIS
In-system.webServer
Add
<httpErrors
errorMode="Custom">
Child
<remove statusCode="404"/>
<error
statusCode="404"
path="404.html"
responseMode="File"/>
In-Web.config
In-RootAdd
404.html
In-Body
<h1>NotFound