Apr 27, 2020 08:38 PM|georgeakpan233|LINK
a few seconds ago|LINK|184.108.40.206
Hello Yijing Sun,
I referred to the link you directed me to and tried to use the sample code in the demo, but it gave me an error from Home code-behind: (Home.aspx.cs) which stated thus;
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
The error message in the browser was this:
str = System.Configuration.ConfigurationManager.ConnectionStrings["aspnet-TestApplicationWithDatabase-20190820030542"].ConnectionString;
So I changed the str to this and still had the error
str = System.Configuration.ConfigurationManager.ConnectionStrings["Data Source=(LocalDB)\\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\\Dataregister.mdf;Integrated Security=True"].ConnectionString;
I thought that maybe the connecting string was different which is why i changed it.