Hi,
I get the next error :
Request is not available in this context
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Request is not available in this context
Source Error:
Line 13:
Line 14: // Initialize MetaDataPlus parameters
Line 15: Mediachase.MetaDataPlus.MetaDataContext.Current.ConnectionString = Mediachase.eCF.BusLayer.Common.Configuration.FrameworkConfig.ConnectionString;
Line 16:
Line 17: if (Mediachase.eCF.BusLayer.Common.Configuration.FrameworkConfig.RunService == Mediachase.eCF.BusLayer.Common.Configuration.RunService.BuiltIn)
Source File: c:\WorkArea\WebProjects\CallPerfumeV3\PublicLayer\PublicStore\Global.asax Line: 15
Stack Trace:
[HttpException (0x80004005): Request is not available in this context]
System.Web.HttpContext.get_Request() +8794400
Mediachase.eCF.Licensing.StoreLicenseProvider.ValidateLicense(ServerLicense license, String& errorMessage) +180
Mediachase.eCF.Licensing.ServerLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions) +192
Mediachase.eCF.Licensing.StoreLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions) +37
System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) +237
System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) +41
System.ComponentModel.LicenseManager.Validate(Type type, Object instance) +31
Mediachase.MetaDataPlus.MetaDataContext..ctor() +66
Mediachase.MetaDataPlus.MetaDataContext..cctor() +21
[TypeInitializationException: The type initializer for 'Mediachase.MetaDataPlus.MetaDataContext' threw an exception.]
Mediachase.MetaDataPlus.MetaDataContext.get_Current() +0
ASP.global_asax.Application_Start(Object sender, EventArgs e) in c:\WorkArea\WebProjects\CallPerfumeV3\PublicLayer\PublicStore\Global.asax:15
[HttpException (0x80004005): The type initializer for 'Mediachase.MetaDataPlus.MetaDataContext' threw an exception.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +2721530
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +128
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +188
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +295
System.Web.HttpApplicationFactory.GetPipelineApplicationInstance(IntPtr appContext, HttpContext context) +56
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +231
[HttpException (0x80004005): The type initializer for 'Mediachase.MetaDataPlus.MetaDataContext' threw an exception.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8897659
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
Befor I workd on Windows XP and it worked perfect,but now I went through
Windows 7 with same solution.
Why is this happening? And how to avoid it?
Thanks