//About.aspx
<%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="Register.About" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<h2>Delegate Report</h2>
<p></p>
<p class="lead">
<asp:Label ID="Officers" runat="server" Text="National Officers: 28 (This number is assumed, not scanned)" Width="761px"></asp:Label>
</p><p class="lead">
<asp:Label ID="BrDelegates" runat="server" Text="Branch Delegates: " Width="316px"></asp:Label>
</p>
<p class="lead">
<asp:Label ID="AtDelegates" runat="server" Text="Delegates at Large: " Width="300px"></asp:Label>
</p>
<p class="lead">
<asp:Label ID="StatesRep" runat="server" Text="States Represented: " Width="400px"></asp:Label>
</p>
<p class="lead">
<asp:Label ID="BrachesRep" runat="server" Text="Branches Represented: " Width="300px"></asp:Label>
</p>
<p class="lead">
<asp:Label ID="OtherRep" runat="server" Text="Other Jurisdictions Represented: " Width="500px"></asp:Label>
</p>
<p>
<asp:Button ID="RunReport" runat="server" OnClick="Button1_Click" Text="Run Delegate Report" />
</p>
<p> For help, contact Lori Austin: austin@nalc.org </p>
</asp:Content>
//Contact.aspx
<%@ Page Title="Contact" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="Register.Contact" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<!--<h2><%: Title %>.</h2>-->
<h2>Delegates by Branch</h2>
<div>
Branch:
<asp:TextBox ID="TextBranch" runat="server" Width="48px" ValidationGroup="check"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBranch" ErrorMessage="Please Enter Only Numbers" Style="z-index: 101; " ValidationExpression="^\d+$" ValidationGroup="check"></asp:RegularExpressionValidator>
Delegates Checked In:
<asp:Label ID="BrTotal" runat="server" Text=""></asp:Label>
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="Show Delegates" OnClick="Button1_Click" />
<!--<asp:Button ID="RegisterAll" runat="server" Text="Register ALL in this Branch" OnClick="RegisterAll_Click" /> -->
<br />
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
<columns>
<asp:BoundField HeaderText="Branch" DataField="DLCBR" />
<asp:BoundField HeaderText="Alternate?" DataField="DLCAN" />
<asp:BoundField HeaderText="PR Number" DataField="DLCPR" />
<asp:BoundField HeaderText="Last Name" DataField="DLCLN" />
<asp:BoundField HeaderText="First Name" DataField="DLCFN" />
<asp:BoundField HeaderText="MI" DataField="DLCMI" />
<asp:BoundField HeaderText="Branch Name" DataField="DLCBN" />
<asp:BoundField HeaderText="Checked In?" DataField="DLCFLAG" ItemStyle-HorizontalAlign="Center" />
<asp:BoundField HeaderText="Branch State" DataField="DLCST" />
</columns>
</asp:GridView>
<br />
</div>
</asp:Content>
//Contact.aspx.cs
using Register.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Register
{
public partial class Contact : Page
{
protected void Page_Load(object sender, EventArgs e)
{
TextBranch.Focus();
}
protected void Button1_Click(object sender, EventArgs e)
{
displaybranch();
}
private void displaybranch()
{
RegistrationEntities2 de = new RegistrationEntities2();
string currentbranch = TextBranch.Text;
//string currentbranch = TextBranch.Text.PadLeft(4, '0');
var branchdel = from r in de.delegates400
where r.DLCBR == currentbranch
orderby r.DLCLN + r.DLCFN
select r;
var branchtot = from r in de.delegates400
where r.DLCBR == currentbranch && r.DLCFLAG == "T"
orderby r.DLCLN + r.DLCFN
select r;
BrTotal.Text = branchtot.Count().ToString();
GridView1.DataSource = branchdel.ToList();
GridView1.DataBind();
}
protected void RegisterAll_Click(object sender, EventArgs e)
{
string currentbranch = TextBranch.Text.PadLeft(4, '0');
// get a query of all delegates for this branch (!!! NOT Alternates DLCAN <> 001)
//RegistrationEntities2 de = new RegistrationEntities2();
RegistrationEntities2 reg = new RegistrationEntities2();
// connection to registered database
// database connection
//var dbRegistered = reg.Registereds;
// connection to Delegates database - from AS400
var brdelegates = from r in reg.delegates400
where r.DLCBR == currentbranch
select r;
// go through list and add to Registered table
foreach (var r in brdelegates)
{
r.DLCFLAG = "T";
}
reg.SaveChanges();
displaybranch();
// Set textbox back to blank
TextBranch.Text = " ";
TextBranch.Focus();
}
}
}
//Bundle.config
<?xml version="1.0" encoding="utf-8" ?>
<bundles version="1.0">
<styleBundle path="~/Content/css">
<include path="~/Content/bootstrap.css" />
<include path="~/Content/Site.css" />
</styleBundle>
</bundles>
//Default.aspx
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Register._Default" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<div class="jumbotron" >
<h2>
<img alt="NALC Logo" src="Images/logo.png" style="width: 229px; height: 69px" /> Convention Registration 2016</h2>
<p class="lead">
<asp:TextBox ID="scanNumber" runat="server" OnTextChanged="scanNumber_TextChanged" TabIndex="1"></asp:TextBox>
</p>
<p class="lead">
<asp:Label ID="ShowNumber" runat="server" Text="Delegate Name" Font-Size="XX-Large" Width="1004px" TabIndex="2" Enabled="False" ></asp:Label>
</p>
<p class="lead">
<asp:Label ID="ShowBranch" runat="server" Text="Branch" Font-Size="X-Large" Width="300px" TabIndex="3" Enabled="False"></asp:Label>
</p>
<asp:Button ID="Register" runat="server" Height="64px" Text="Confirm Registration" Width="234px" BackColor="#009933" BorderColor="#006600" BorderStyle="Groove" OnClick="Register_Click" Visible="false" />
<!-- <p><a href="http://www.asp.net" class="btn btn-primary btn-lg">Learn more »</a></p> -->
</div>
</asp:Content>
//Default.aspx.cs
using System;
using System.Linq;
using System.Web.UI;
using System.IO;
using System.Net;
using System.Web;
namespace Register
{
public partial class _Default : Page
{
// open database
RegistrationEntities2 de = new RegistrationEntities2();
string machinenm;
string filename;
//machinenm = (Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName);
protected void Page_Load(object sender, EventArgs e)
{
scanNumber.Focus();
Register.Visible = false;
machinenm = (Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName);
filename = "c:\\Convention\\" + machinenm + ".txt";
}
protected void scanNumber_TextChanged(object sender, EventArgs e)
{
var prnumber = scanNumber.Text ;
//strip leading 0 out of postal record number
if (prnumber.StartsWith("0"))
{
// convert prnumber to int and then back to string to strip out leading zeros
int prnumbint = int.Parse(prnumber);
prnumber = prnumbint.ToString();
}
// Run query to search for postal record number in Delegates database
//int prnumberint = int.Parse(prnumber);
//RegistrationEntities2 de = new RegistrationEntities2();
var delegates = from c in de.delegates400
where c.DLCPR == prnumber
select c;
if (delegates.Count() < 1)
{
// Make sound to alert staff person
System.Media.SystemSounds.Beep.Play();
Console.Beep(5500, 1500);
// Show warning text in Red
ShowNumber.ForeColor = System.Drawing.Color.Red;
ShowBranch.ForeColor = System.Drawing.Color.Red;
ShowNumber.Text = "This Postal Record Number NOT found! ";
ShowBranch.Text = "Try entering number manually.";
}
else
// set flag on this record
{
// if it is found - check to see if alternate
if (int.Parse(delegates.First().DLCAN) >= 1)
{
System.Media.SystemSounds.Beep.Play();
Console.Beep(5500, 1500);
ShowNumber.ForeColor = System.Drawing.Color.Red;
ShowNumber.Text = "This is an ALTERNATE.";
ShowBranch.ForeColor = System.Drawing.Color.Red;
ShowBranch.Text = "They must show letter from Branch Secretary or from delegate replacing. Go to Alternate Booth.";
scanNumber.Text = "";
}
// This is a verified Delegate
else
{
// See if delegate is already registered
if (delegates.First().DLCFLAG != "F")
{
ShowNumber.ForeColor = System.Drawing.Color.Red;
ShowNumber.Text = "This delegate is already checked in.";
ShowBranch.ForeColor = System.Drawing.Color.Red;
ShowBranch.Text = "Scan a new delegate.";
scanNumber.Text = "";
}
else {
//Set the flag to True - delegate checked in
ShowNumber.ForeColor = System.Drawing.Color.Black;
ShowBranch.ForeColor = System.Drawing.Color.Black;
var delegatename = delegates.First().DLCFN + ' ' + delegates.First().DLCLN;
ShowNumber.Text = "Registered: " + delegatename;
//ShowNumber.Text = "Scanning: " + delegates.First().DLCFN + ' ' + delegates.First().DLCLN;
ShowBranch.Text = "Branch " + delegates.First().DLCBR;
DateTime saveNow = DateTime.Now;
using (StreamWriter writer = new StreamWriter(filename, true))
{
// writer.WriteLine(delegates.First().DLCBR + ", " + delegates.First().DLCLN + ", "+ delegates.First().DLCFN +", " + delegates.First().DLCMI +", " + delegates.First().DLCPR + ", " + saveNow);
writer.WriteLine(delegates.First().DLCBR + "," + delegates.First().DLCAN + "," + delegates.First().DLCLN + "," + delegates.First().DLCFN + "," + delegates.First().DLCMI + "," +
delegates.First().DLCBF + "," + delegates.First().DLCBC + "," + delegates.First().DLCST + "," + delegates.First().DLCBN + "," + delegates.First().DLCPR + ","
+ delegates.First().DLCAD1 + "," + delegates.First().DLCAD2 + "," + delegates.First().DLCCTY + "," + delegates.First().DLCMST + "," + delegates.First().DLCZIP + ","
+ delegates.First().DLCEML + "," + delegates.First().DLCFLAG + "," +saveNow);
}
delegates.First().DLCFLAG = "T";
delegates.First().DLCScanDate = saveNow;
de.SaveChanges();
scanNumber.Text = "";
scanNumber.Focus();
//Register.Visible = true;
//scanNumber.Enabled = false;
}
//delegates.First().DLCFLAG = "T";
//de.SaveChanges();
//scanNumber.Text = "";
//scanNumber.Focus();
//ScriptManager scriptManager = ScriptManager.GetCurrent(Page);
//scriptManager.SetFocus(scanNumber);
}
// Set textbox back to blank
//scanNumber.Attributes.Add("onfocus", "this.Select();");
scanNumber.Focus();
}
}
protected void Register_Click(object sender, EventArgs e)
{
var prnumber = scanNumber.Text;
//strip leading 0 out of postal record number
if (prnumber.StartsWith("0"))
{
prnumber = prnumber.Substring(1);
}
var delegates = from c in de.delegates400
where c.DLCPR == prnumber
select c;
delegates.First().DLCFLAG = "T";
DateTime saveNow = DateTime.Now;
delegates.First().DLCScanDate = saveNow;
de.SaveChanges();
var delegatename = delegates.First().DLCFN + ' ' + delegates.First().DLCLN;
ShowNumber.Text = "Last Registered: " + delegatename;
// record delegate name in local file
using (StreamWriter writer = new StreamWriter(filename, true))
{
// writer.WriteLine(delegates.First().DLCBR + ", " + delegates.First().DLCLN + ", "+ delegates.First().DLCFN +", " + delegates.First().DLCMI +", " + delegates.First().DLCPR + ", " + saveNow);
writer.WriteLine(delegates.First().DLCBR + "," + delegates.First().DLCAN + "," + delegates.First().DLCLN + "," + delegates.First().DLCFN + "," + delegates.First().DLCMI + "," +
delegates.First().DLCBF + "," + delegates.First().DLCBC + "," + delegates.First().DLCST + "," + delegates.First().DLCBN + "," + delegates.First().DLCPR + ","
+ delegates.First().DLCAD1 + "," + delegates.First().DLCAD2 + "," + delegates.First().DLCCTY + "," + delegates.First().DLCMST + "," + delegates.First().DLCZIP + ","
+ delegates.First().DLCEML + "," + delegates.First().DLCFLAG + "," + saveNow);
}
scanNumber.Enabled = true;
scanNumber.Text = "";
scanNumber.Focus();
}
}
}
//Global.asax
<%@ Application Codebehind="Global.asax.cs" Inherits="Register.Global" Language="C#" %>
Globalasax.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;
using System.Web.Routing;
using System.Web.Security;
using System.Web.SessionState;
namespace Register
{
public class Global : System.Web.HttpApplication
{
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
void Application_Error(object sender, EventArgs e)
{
// What just happened?
Exception ex = Server.GetLastError();
// ext will always be of type httpunhandledexception
// to get the exception that caused it, you need to get inner exception
var innerexception = ex.InnerException;
Response.Write("<h2>Application Error</h2>");
Response.Write("<p>"+innerexception.Message+"</p>");
Server.ClearError();
}
}
}
//scanAlt.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ScanAlt.aspx.cs" Inherits="Register.ScanAlt" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<h2>Convert Alternate to Delegate</h2>
<p style="font-size: large">Verify letter from branch secretary that allows this alternate to check in as a delegate. If postal record number of the delegate being replaced does not appear in the letter, look it up in the "Delegates by Branch" screen and write it down.</p>
<p><strong><span style="font-size: large">Scan Alternate Badge:</span>
<asp:TextBox ID="AlternatePR" runat="server" Height="25px" Width="172px" OnTextChanged="AlternatePR_TextChanged"></asp:TextBox>
</strong></p>
<p>
<asp:Label ID="ShowNumber" Font-Size="XX-Large" runat="server" Text=""></asp:Label>
</p>
<p>
<asp:Label ID="ShowBranch" Font-Size="X-Large" runat="server" Text=""></asp:Label>
</p>
<p style="font-size: large"><strong>Type in PR number of Delegate being replaced: <asp:TextBox ID="Replaced" runat="server" Height="30px" ValidationGroup="check" OnTextChanged="Replaced_TextChanged" Width="191px"></asp:TextBox>
</strong></p>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Replaced" ErrorMessage="Please Enter Only Numbers" Style="z-index: 101; " ForeColor="Red" Font-Bold="True" ValidationExpression="^\d+$" ValidationGroup="check"></asp:RegularExpressionValidator>
<p style="font-size: large"> </p>
<p style="font-size: large">
<asp:Button ID="Button1" runat="server" ForeColor="#009933" OnClick="Button1_Click" Text="Register Alternate" Width="288px" />
</p>
<p><strong>Print a new Credentials Badge.</strong></p>
</asp:Content>
//ScanAlt.aspx.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Register
{
public partial class ScanAlt : System.Web.UI.Page
{
RegistrationEntities2 de = new RegistrationEntities2();
string machinenm;
string filename;
protected void Page_Load(object sender, EventArgs e)
{
AlternatePR.Focus();
machinenm = (Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName);
filename = "c:\\Convention\\" + machinenm + ".txt";
}
protected void Replaced_TextChanged(object sender, EventArgs e)
{
if (Replaced.Text != "")
{
Button1.Focus();
}
}
protected void AlternatePR_TextChanged(object sender, EventArgs e)
{
if (AlternatePR.Text != "")
{
Button1.Focus();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
// Be sure AlternatePR number and Replaced number are not blank
//Get queries to check the data
var repprnum = Replaced.Text.Trim();
var replaced = from c in de.delegates400
where c.DLCPR == repprnum
select c;
var prnumber = AlternatePR.Text;
//strip leading 0 out of postal record number
if (prnumber.StartsWith("0"))
{
// convert prnumber to int and then back to string to strip out leading zeros
int prnumbint = int.Parse(prnumber);
prnumber = prnumbint.ToString();
}
var delegates = from c in de.delegates400
where c.DLCPR == prnumber
select c;
// Check all these conditions before we go ahead with the swap
if (repprnum.Length < 9)
{
ShowNumber.Text = "Replaced Delegate's Postal Record Number is too short.";
ShowBranch.Text = "Please enter it now.";
return;
} // if replaced pr is empty
/* if (prnumber.Length < 9)
{
ShowNumber.Text = "Alternate's Postal Record Number is too short.";
ShowBranch.Text = "Please enter it now.";
return;
} // If alternate pr is empty */
// Be sure the replaced delegate is in the file and has not already checked in
if (replaced.Count() < 1)
{
ShowNumber.ForeColor = System.Drawing.Color.Red;
ShowBranch.ForeColor = System.Drawing.Color.Red;
ShowNumber.Text = "Delegate not found.";
ShowBranch.Text = "Check Postal Record Number.";
Replaced.Text = "";
Replaced.Focus();
return;
}
if (replaced.First().DLCFLAG == "T")
{
ShowNumber.Text = replaced.First().DLCFN + " " + replaced.First().DLCLN;
ShowBranch.Text = "This Delegate has already checked-in!! See Credentials Chair.";
Replaced.Text = "";
Replaced.Focus();
return;
}
if (delegates.Count() < 1)
{
ShowNumber.Text = delegates.First().DLCFN + " " + delegates.First().DLCLN;
ShowBranch.Text = "This Alternate is not found.";
AlternatePR.Text = "";
AlternatePR.Focus();
return;
}
if (delegates.First().DLCBR != replaced.First().DLCBR)
{
ShowNumber.Text = "These members are not from the same Branch!";
ShowBranch.Text = "Please enter a delegate from the same branch to replace.";
Replaced.Text = "";
Replaced.Focus();
return;
}
if (int.Parse(delegates.First().DLCAN) == 0)
{
ShowNumber.Text = "This is not an Alternate";
ShowBranch.Text = "Where they already switched to Delegate?";
AlternatePR.Text = "";
AlternatePR.Focus();
return;
}
// if everything is ok - do the swap
// insert code to change the alternate code to delegate code and mark as checked in
// change this alternate to a delegate
var altnumber = delegates.FirstOrDefault().DLCAN;
delegates.First().DLCAN = "0";
//Set the flag to True - delegate checked in
ShowNumber.ForeColor = System.Drawing.Color.Black;
ShowBranch.ForeColor = System.Drawing.Color.Black;
DateTime saveNow = DateTime.Now;
delegates.First().DLCScanDate = saveNow;
delegates.First().DLCFLAG = "T";
de.SaveChanges();
// record delegate name in local file
//var filename = "c:\\Convention\\" + machinenm + ".txt";
using (StreamWriter writer = new StreamWriter(filename, true))
{
writer.WriteLine(delegates.First().DLCBR + "," + delegates.First().DLCAN + "," + delegates.First().DLCLN + "," + delegates.First().DLCFN + "," + delegates.First().DLCMI + "," +
delegates.First().DLCBF + "," + delegates.First().DLCBC + "," + delegates.First().DLCST + "," + delegates.First().DLCBN + "," + delegates.First().DLCPR + ","
+ delegates.First().DLCAD1 + "," + delegates.First().DLCAD2 + "," + delegates.First().DLCCTY + "," + delegates.First().DLCMST +"," + delegates.First().DLCZIP + ","
+ delegates.First().DLCEML + "," + delegates.First().DLCFLAG + "," + saveNow);
}
//var noshow = Replaced.Text.PadLeft(9, '0');
replaced.First().DLCAN = altnumber;
de.SaveChanges();
ShowNumber.Text = "Changed to Delegate: " + delegates.First().DLCFN + ' ' + delegates.First().DLCLN + " Replacing: " + replaced.First().DLCLN;
ShowBranch.Text = "Branch " + delegates.First().DLCBR;
// Set textbox back to blank
AlternatePR.Text = "";
Replaced.Text = "";
}
}
}
//Webc.config
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
</configSections>
<connectionStrings>
<add name="RegistrationEntities2" connectionString="metadata=res://*/RegistrationEntities2.csdl|res://*/RegistrationEntities2.ssdl|res://*/RegistrationEntities2.msl;provider=System.Data.SqlClient;provider connection string="data source=NALCHQ160\SQLEXPRESS;initial catalog=Registration;persist security info=True;user id=Regbooth;password=nalc;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
<!--<add name="DefaultConnection" connectionString="DefaultConnection_ConnectionString" providerName="System.Data.SqlClient" />
<add name="DefaultConnection" connectionString="Data Source=NALCHQ160\SQLEXPRESS; Initial Catalog=aspnetdb;persist security info=True;user id=Regbooth;password=nalc" providerName="System.Data.SqlClient" /> -->
<add name="Register.Models.ApplicationDbContext" connectionString="SQLEXPRESS" providerName="System.Data.SqlClient" />
<add name="DefaultConnection" connectionString="DefaultConnection_ConnectionString" providerName="System.Data.SqlClient" />
</connectionStrings>
<!--
<connectionStrings>
<add name="RegistrationEntities2" connectionString="metadata=res://*/RegistrationEntities2.csdl|res://*/RegistrationEntities2.ssdl|res://*/RegistrationEntities2.msl;provider=System.Data.SqlClient;provider connection string="data source=NALCHQ002\SQLEXPRESS;initial catalog=Registration;persist security info=True;user id=Regbooth;password=nalc;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings> -->
<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
The following attributes can be set on the <httpRuntime> tag.
<system.Web>
<httpRuntime targetFramework="4.5" />
</system.Web>
-->
<system.web>
<!--<authentication mode="None" /> -->
<customErrors mode="Off" />
<compilation targetFramework="4.5">
<assemblies>
<add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<httpRuntime targetFramework="4.5" />
<pages>
<namespaces>
<add namespace="System.Web.Optimization" />
<add namespace="Microsoft.AspNet.Identity" />
</namespaces>
<controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
</controls>
</pages>
<membership>
<providers>
<!--
ASP.NET Membership is disabled in this template. Please visit the following link http://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template
-->
<clear />
</providers>
</membership>
<profile>
<providers>
<!--
ASP.NET Membership Profile is disabled in this template. Please visit the following link http://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template
-->
<clear />
</providers>
</profile>
<roleManager>
<!--
ASP.NET Membership Role is disabled in this template. Please visit the following link http://go.microsoft.com/fwlink/?LinkId=301889 to learn about the ASP.NET Membership support in this template
-->
<providers>
<clear />
</providers>
</roleManager>
<!--
If you are deploying to a cloud environment that has multiple web server instances,
you should change session state mode from "InProc" to "Custom". In addition,
change the connection string named "DefaultConnection" to connect to an instance
of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express.
-->
<sessionState mode="InProc" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
</providers>
</sessionState>
</system.web>
<system.webServer>
<modules>
<remove name="FormsAuthentication" />
</modules>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" culture="neutral" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" culture="neutral" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" culture="neutral" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.Cookies" culture="neutral" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security" culture="neutral" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
<system.codedom>
<compilers>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" />
</compilers>
</system.codedom>
</configuration>