Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified POS/App_Data/pos.ldf
Binary file not shown.
Binary file modified POS/App_Data/pos.mdf
Binary file not shown.
2 changes: 1 addition & 1 deletion POS/Global.asax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static void RegisterRoutes(RouteCollection routes)
protected void Application_Start()
{

Database.SetInitializer<EfDbContext>(new EfDbContextInitializer()); // Resets database
//Database.SetInitializer<EfDbContext>(new EfDbContextInitializer()); // Resets database

AreaRegistration.RegisterAllAreas();

Expand Down
4 changes: 4 additions & 0 deletions POS/POS.Publish.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<publishData>
<publishProfile publishUrl="https://vserver01.cytanium.com:8172/msdeploy.axd" deleteExistingFiles="False" ftpAnonymousLogin="False" ftpPassiveMode="True" msdeploySite="rylancecs.com" msdeploySiteID="" msdeployRemoteSitePhysicalPath="" msdeployAllowUntrustedCertificate="True" msdeploySkipExtraFilesOnServer="True" msdeployMarkAsApp="False" profileName="rylancecs.com - Web Deploy" publishMethod="MSDeploy" replaceMatchingFiles="True" userName="databaseadmin" savePWD="True" userPWD="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAKABZoLYLt0Sv6RhKIizCMwAAAAACAAAAAAAQZgAAAAEAACAAAAB96Bo6udMpNXwo6wToBiq+k9CL/iQ+VpuyWztgRbbEdwAAAAAOgAAAAAIAACAAAADoc8lmcftP7U7WyqnP2e36BMRdHGzm54lhmICIrDM78yAAAAAZMSy3SUce47bD+JMc3ZlLRItyzlp12NGOT/A4fSxdzUAAAAAp6Sl0/sG5fb8yO9MzyWuI9ORYxt6n4I63v5k1QUCAThvU/H1RLvgnzjtl5lKQwCOYdvi2bWJyOB8in6Fj0Ua8" SelectedForPublish="True" />
</publishData>
17 changes: 17 additions & 0 deletions POS/POS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PublishDatabaseSettings>&lt;Objects xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;&lt;ObjectGroup Name="EFDbContext-Deployment" Order="1"&gt;&lt;Destination Path="connectionString=&amp;quot%3bData Source=vserver01.cytanium.com%3bInitial Catalog=EcnalyrASPNETDB%3bUser Id=rylanceadmin%3bPassword=pas5word%3b&amp;quot%3b providerName=&amp;quot%3bSystem.Data.SqlClient&amp;quot%3bpas5word%3b" /&gt;&lt;Object Type="dbFullSql" Enabled="True"&gt;&lt;PreSource Path="Data Source=vserver01.cytanium.com%3bInitial Catalog=EcnalyrASPNETDB%3bUser Id=rylanceadmin%3bPassword=pas5word%3b" ScriptSchema="True" ScriptData="True" CopyAllFullTextCatalogs="False" DriDefaults="True" /&gt;&lt;Source Path="obj\Debug\AutoScripts\EFDbContext-Deployment_SchemaAndData.sql" Transacted="True" /&gt;&lt;/Object&gt;&lt;/ObjectGroup&gt;&lt;/Objects&gt;</PublishDatabaseSettings>
<FilesToIncludeForPublish>OnlyFilesToRunTheApp</FilesToIncludeForPublish>
<PackageAsSingleFile>false</PackageAsSingleFile>
<PublishDatabases>false</PublishDatabases>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -34,6 +38,19 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PublishDatabaseSettings>
<Objects>
<ObjectGroup Name="EFDbContext-Deployment" Order="1">
<Destination Path="SQL Server: Data Source=vserver01.cytanium.com%3bInitial Catalog=EcnalyrASPNETDB%3bUser Id=databaseadmin%3bPassword=pas5word%3b" />
<Object Type="dbFullSql" Enabled="True">
<PreSource Path="data source=.\SQLEXPRESS%3bIntegrated Security=SSPI%3bdatabase=pos%3bAttachDBFilename=|DataDirectory|pos.mdf%3bMultipleActiveResultSets=true%3bUser Instance=true" ScriptSchema="True" ScriptData="True" CopyAllFullTextCatalogs="False" DriDefaults="True" />
<Source Path="obj\Release\AutoScripts\EFDbContext-Deployment_SchemaAndData.sql" Transacted="True" />
</Object>
</ObjectGroup>
</Objects>
</PublishDatabaseSettings>
<PublishDatabases>false</PublishDatabases>
<PackageAsSingleFile>false</PackageAsSingleFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="AntiXssLibrary">
Expand Down
1 change: 1 addition & 0 deletions POS/Web.Debug.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
<customErrors mode="Off" xdt:Transform="Replace"></customErrors>
</system.web>
</configuration>
9 changes: 5 additions & 4 deletions POS/Web.Release.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an atrribute "name" that has a value of "MyDB".

-->
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
<add name="EFDbContext"
connectionString="SQL Server: Data Source=vserver01.cytanium.com;Initial Catalog=EcnalyrASPNETDB;User Id=rylanceadmin;Password=pas5word;"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->

<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
Expand All @@ -27,5 +27,6 @@
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
<customErrors mode="Off"></customErrors>
</system.web>
</configuration>
6 changes: 5 additions & 1 deletion POS/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<connectionStrings>
<add name="EFDbContext" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;database=pos;AttachDBFilename=|DataDirectory|pos.mdf;MultipleActiveResultSets=true;User Instance=true" providerName="System.Data.SqlClient" />
<!--<add name="EFDbContext" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;database=pos;AttachDBFilename=|DataDirectory|pos.mdf;MultipleActiveResultSets=true;User Instance=true" providerName="System.Data.SqlClient" />-->
<!--Used this string the first time, to build the initial DB, then switched to the string without the database= value<add name="EFDbContext" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;database=pos;AttachDBFilename=|DataDirectory|pos.mdf;User Instance=true" providerName="System.Data.SqlClient" />-->
<!--<add name="EFDbContext" connectionString="SQL Server: Data Source=vserver01.cytanium.com;Initial Catalog=EcnalyrASPNETDB;User Id=rylanceadmin;Password=pas5word;" />-->
<add name="EFDbContext" connectionString="Data Source=vserver01.cytanium.com;Initial Catalog=EcnalyrASPNETDB;User Id=rylanceadmin;Password=pas5word;MultipleActiveResultSets=true;" providerName="System.Data.SqlClient" />

</connectionStrings>
<appSettings>
<add key="webpages:Version" value="1.0.0.0" />
Expand Down Expand Up @@ -64,6 +67,7 @@
<add name="CodeFirstRoleProvider" type="CodeFirstRoleProvider" connectionStringName="EFDbContext" />
</providers>
</roleManager>
<customErrors mode="Off"></customErrors>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
Expand Down
94 changes: 94 additions & 0 deletions POS/logs/2012-10-29.log
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,97 @@
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-10-29 20:26:43.6742 DEBUG Checking that nLogger is working from Index
2012-10-29 20:26:46.9104 WARN Unhandled exception trying to access http://localhost:1149/favicon.ico: The controller for path '/favicon.ico' was not found or does not implement IController. | Stack Trace: at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2()
at System.Web.Mvc.SecurityUtil.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a()
at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func`1 func)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-10-29 20:26:51.0277 WARN Unhandled exception trying to access http://localhost:1149/favicon.ico: The controller for path '/favicon.ico' was not found or does not implement IController. | Stack Trace: at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2()
at System.Web.Mvc.SecurityUtil.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a()
at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func`1 func)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-10-29 20:49:49.6335 DEBUG Checking that nLogger is working from Index
2012-10-29 20:49:52.6817 WARN Unhandled exception trying to access http://localhost:1149/favicon.ico: The controller for path '/favicon.ico' was not found or does not implement IController. | Stack Trace: at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2()
at System.Web.Mvc.SecurityUtil.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a()
at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func`1 func)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-10-29 20:49:54.7518 WARN Unhandled exception trying to access http://localhost:1149/favicon.ico: The controller for path '/favicon.ico' was not found or does not implement IController. | Stack Trace: at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2()
at System.Web.Mvc.SecurityUtil.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a()
at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func`1 func)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-10-29 20:50:01.4452 WARN Unhandled exception trying to access http://localhost:1149/favicon.ico: The controller for path '/favicon.ico' was not found or does not implement IController. | Stack Trace: at System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType)
at System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName)
at System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<BeginProcessRequest>b__2()
at System.Web.Mvc.SecurityUtil.<>c__DisplayClassb`1.<ProcessInApplicationTrust>b__a()
at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust[TResult](Func`1 func)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContext httpContext, AsyncCallback callback, Object state)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-10-29 20:50:05.5294 FATAL Unhandled exception trying to access http://localhost:1149/OrderDetails/_DeeperStat/1: Sequence contains no elements | Stack Trace: at System.Linq.Enumerable.Average(IEnumerable`1 source)
at POS.Controllers.OrderDetailsController._DeeperStat(Int32 id) in L:\Users\Jason\Documents\GitHub\POS\POS\Controllers\OrderDetailsController.cs:line 327
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
at System.Web.Mvc.Controller.ExecuteCore()
at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext)
at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d()
at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Loading