This is an example of my web.config file. It is held remotely on a server and not from my computer at home. Also my sql server is remotely held and not run from home. I have high-lighted the line of code most likely giving you trouble in yellow.
My question to you is, where is your server held and where is your sql database held? If it is held at home then this line of code I have high-lighted will not work but if it is held remotely, then just change the values to your needs after each equal sign.
I hope this gives you a general understanding of what needs to be done. If you need more help I can be reached at
[email protected] good luck
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="ConnectionString" value="server=YourSiteName.com;database=Sample;uid=Sample;pwd=Sample"/>
<add key="OnlineTimeout" value="300"/>
</appSettings>
<system.web>
<compilation defaultLanguage="c#" debug="true"/>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name=".UserManagementASPXAUTH" loginUrl="~/Login.aspx"/>
</authentication>
<authorization>
<allow users="*"/>
</authorization>
<trace enabled="true"></trace>
<sessionState mode="InProc" timeout="20"/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
<xhtmlConformance mode="Legacy"/></system.web>
</configuration>