• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

taylorpond
#1 Posted : Wednesday, November 6, 2013 4:06:59 PM(UTC)
taylorpond

Rank: Member

Joined: 11/6/2013(UTC)
Posts: 2
United States
Location: San Diego

Getting this error from the global.asax after upgrading:

Line 56: ' Ensure we always have at least one encryption key
Line 57: If (keys = String.Empty) Then
Line 58: manager.GenerateNewKey() - THIS IS THE LINE
Line 59: keys = manager.LoadKeyJsonFromDisk()
Line 60: AuditLog.LogSystemEvent(BVSoftware.Commerce.Metrics.AuditLogSourceModule.System, _

[HttpException (0x80004005): Response is not available in this context.]
System.Web.HttpContext.get_Response() +11336206
System.Web.HttpUtility.JavaScriptStringEncode(String value, Boolean addDoubleQuotes) +63
System.Web.Script.Serialization.JavaScriptSerializer.SerializeCustomObject(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +714
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +1692
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +146
System.Web.Script.Serialization.JavaScriptSerializer.SerializeEnumerable(IEnumerable enumerable, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +182
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +1647
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +146
System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat) +43
BVSoftware.Cryptography.KeyManager.SaveKeysInMemory() in c:\Users\aaron.sherrick.DEVELISYS\Documents\BVCommerce\App-DEV\source\BVSoftware.Cryptography\KeyManager.cs:147
ASP.global_asax.LoadEncryptionKeys() in E:\inetpub\wallcur\www2\global.asax:58
ASP.global_asax.Application_Start(Object sender, EventArgs e) in E:\inetpub\wallcur\www2\global.asax:32

[HttpException (0x80004005): Response is not available in this context.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +3988565
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375

[HttpException (0x80004005): Response is not available in this context.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373
Aaron
#2 Posted : Wednesday, November 6, 2013 5:32:02 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,355
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 158 time(s) in 153 post(s)
Try restarting your website (re-uploading your Web.config file is an easy way to do this). This error is most likely happening because your site did not start up properly (most likely related to the support ticket you submitted earlier today).
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
taylorpond
#3 Posted : Wednesday, November 6, 2013 5:40:14 PM(UTC)
taylorpond

Rank: Member

Joined: 11/6/2013(UTC)
Posts: 2
United States
Location: San Diego

Tried that already.

We are running Windows Server 2008 R2 w/IIS 7.5
Aaron
#4 Posted : Saturday, November 9, 2013 3:18:00 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,355
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 158 time(s) in 153 post(s)
For anyone else that might be experiencing this problem...

This problem can occur on a fresh install or a site upgraded from BVC 5.6 or below. The error is occurring when the application starts up and tries to generate its encryption keys. We have seen this happen on one or two other instances, but we do not know what causes it as most environments never experience this problem. The workaround is to run the site on another server or development machine so the encryption keys can be generated and then upload those to the site. You can find the encryption keys here:

/bin/bvkeym.config
/bin/bvkeys.config
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2021 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012