arvindasp says:
SendEmailHrams; Object reference not set to an instance of an object.
<? xml version = "1.0" encoding = "utf-8" ?>
< configuration >
< startup >
< supportedRuntime version = "v4.0" sku = ".NETFramework,Version=v4.7.2" />
</ startup >
< configuration >
< connectionStrings >
< add name = "HramsConWeb" connectionString = "Data Source=SqlServerName;User ID=sa;Password=................;Connect Timeout=30;Encrypt=True;Trust Server Certificate=True;Application Intent=ReadWrite;Multi Subnet Failover=False" providerName = "System.Data.SqlClient" />
</ connectionStrings >
</ configuration >
</ configuration >
|
You have not placed the connectionString correctly.
Why you have two configuration tags in App.Config file?