Server Error in '/' Application.

The remote server returned an error: (403) Forbidden.

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.Net.WebException: The remote server returned an error: (403) Forbidden.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[WebException: The remote server returned an error: (403) Forbidden.]
   System.Net.HttpWebRequest.GetResponse() +1694
   Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync(RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) +1161

[StorageException: The remote server returned an error: (403) Forbidden.]
   Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync(RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) +2495
   Microsoft.WindowsAzure.Storage.Blob.<>c__DisplayClassf.<ListBlobs>b__e(IContinuationToken token) +168
   Microsoft.WindowsAzure.Storage.Core.Util.<LazyEnumerable>d__0`1.MoveNext() +94
   System.Linq.<OfTypeIterator>d__95`1.MoveNext() +141
   System.Linq.WhereEnumerableIterator`1.MoveNext() +127
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +453
   System.Linq.Enumerable.ToList(IEnumerable`1 source) +69
   DGCA.Helpers.Azure.AzureOperations.GetFilesFromAzureByName(String container, String FolderOrFullPathAfterContainer, String FileName) in D:\Ms Projects\DGCA-Backend (1)\dgca-final-master\LineDGCA\Helpers\Azure\AzureOperations.cs:199
   DGCA.Helpers.StringLocalizer..ctor() in D:\Ms Projects\DGCA-Backend (1)\dgca-final-master\LineDGCA\Helpers\StringLocalizer.cs:24
   lambda_method(Closure , Object[] ) +72
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +250

[DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor()' on type 'StringLocalizer'. ---> The remote server returned an error: (403) Forbidden. (See inner exception for details.)]
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +794
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +88
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +119

[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StringLocalizer (ReflectionActivator), Services = [DGCA.Helpers.IStringLocalizer], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor()' on type 'StringLocalizer'. ---> The remote server returned an error: (403) Forbidden. (See inner exception for details.) (See inner exception for details.)]
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +454
   Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +158
   Autofac.Core.Resolving.InstanceLookup.Execute() +175
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +171
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +119
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +88
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +119

[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ContactUsController (ReflectionActivator), Services = [DGCA.Controllers.ContactUsController], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = StringLocalizer (ReflectionActivator), Services = [DGCA.Helpers.IStringLocalizer], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor()' on type 'StringLocalizer'. ---> The remote server returned an error: (403) Forbidden. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)]
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +454
   Autofac.Core.Resolving.InstanceLookup.Execute() +189
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +171
   Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +108
   Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +135
   Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable`1 parameters) +70
   Autofac.Integration.Mvc.AutofacDependencyResolver.GetService(Type serviceType) +75
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +64

[InvalidOperationException: An error occurred when trying to create a controller of type 'DGCA.Controllers.ContactUsController'. Make sure that the controller has a parameterless public constructor.]
   System.Web.Mvc.DefaultControllerActivator.Create(RequestContext requestContext, Type controllerType) +245
   System.Web.Mvc.DefaultControllerFactory.CreateController(RequestContext requestContext, String controllerName) +103
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +266
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +77
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1128
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +220
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +134


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0