Base solution for your next web application

Activities of "terry bentley"

We have run a report of our code by type of license and have found a number of GPL and commercial licensed products which our company does not like using: fancybox Slider Revolution GreenSock

Are we licensed to use this under the commercial license as part of the Metronic License which we get as part of the ASP.Net Zero license?

Thanks... Terry

Question

I have been using your great ASP.NET Zero for almost 2 years now and just started using the excel exporter and discovered that the library you reference (EPPLUS) uses the LGPL 2.1 license .

Any plans on replacing this with an MIT or BSD licensed equivalent? Considering this library is the only non MIT or BSD licensed dll in our projects we would prefer not to get the lawyers involved in whether the "Lesser" in Lesser GPL really does allow our code to be proprietary.

Thanks... Terry

Problem solved.

Global.asax was not executing due to the existance of precompiledapp.config file getting created by one of the developers by him checking to precompile on publish in VS and then the other developers downloading this change from source control. Removed the precompiledapp.config file and things started working again.

Thanks for the response.

It looks like the "no component for supporting the service" is actually a red herring.

For some reason the Global.asax.cs is not firing. This caused the WebModule not to execute and do the IoC registrations. However the Startup.cs is executing which is when the error comes up.

Now to "just" figure out why the Global.asax.cs is no longer executing.

I have upgraded to Abp 2.0.2 and must have messed something up and have spent hours trying to resolve it. I am getting the following error when I try to run the program from either Visual Studio 2015 or after deploying to IIS. Does anyone have any suggestions as to what I am missing or have misconfigured?

Server Error in '/' Application.

No component for supporting the service Abp.Resources.Embedded.IEmbeddedResourceManager was found 
  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: Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service Abp.Resources.Embedded.IEmbeddedResourceManager was found

Source Error: 



Line 27:         public void Configuration(IAppBuilder app)
Line 28:         {
Line 29:             app.UseAbp();
Line 30: 
Line 31:             app.RegisterDataProtectionProvider();
  

 Source File:  C:\Users\bentleyt\Source\Repos\cipher\src\RtTech.Cipher.Web\App_Start\Startup.cs    Line:  29 

Stack Trace: 



[ComponentNotFoundException: No component for supporting the service Abp.Resources.Embedded.IEmbeddedResourceManager was found]
   Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) +78
   Castle.MicroKernel.DefaultKernel.Resolve(Type service, IDictionary arguments) +14
   Castle.Windsor.WindsorContainer.Resolve() +63
   Abp.Dependency.IocManager.Resolve() +49
   Abp.Owin.AbpOwinExtensions.UseAbp(IAppBuilder app, Action`1 optionsAction) +285
   Abp.Owin.AbpOwinExtensions.UseAbp(IAppBuilder app) +7
   RtTech.Cipher.Web.Startup.Configuration(IAppBuilder app) in C:\Users\bentleyt\Source\Repos\cipher\src\RtTech.Cipher.Web\App_Start\Startup.cs:29

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +160
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +101
   Owin.Loader.<>c__DisplayClass12.<MakeDelegate>b__b(IAppBuilder builder) +66
   Owin.Loader.<>c__DisplayClass1.<LoadImplementation>b__0(IAppBuilder builder) +123
   Microsoft.Owin.Host.SystemWeb.<>c__DisplayClass2.<InitializeBlueprint>b__0(IAppBuilder builder) +71
   Microsoft.Owin.Host.SystemWeb.OwinAppContext.Initialize(Action`1 startup) +462
   Microsoft.Owin.Host.SystemWeb.OwinBuilder.Build(Action`1 startup) +40
   Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint() +70
   System.Threading.LazyInitializer.EnsureInitializedCore(T& target, Boolean& initialized, Object& syncLock, Func`1 valueFactory) +115
   Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication context) +106
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +523
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +349
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +658
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +188

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

Thanks... Terry

Since I couldn't get the ADFS working, I switched over to seeing whether I could use OpenId instead to access the Azure Active Directory. I have been able to signon with OpenId but only if I manually put a record in the AbpUserLogins table (it was empty).

How is the AbpUserLogins table maintained?

Thanks... Terry

Answer

I was able to resolve my issue. I only had Abp.Zero 2.0.1 installed as soon as I upgraded to Abp.Zero 2.0.2 the error disappeared.

Answer

Did you find the answer to this one? I just upgraded from ABP 1.4.1 to ABP 2.0.2 and am getting the same error when I try to log in.

I am trying to add Azure active directory federated service (adfs) to my application. I have created the Azure Active Directory, defined and configured the application and done the necessary configuring in Azure

I added the following to the web.config appSettings <add key="ExternalAuth.WsFederation.IsEnabled" value="true" /> <add key="ExternalAuth.WsFederation.MetaDataAddress" value="https://login.windows.net/9c0ca03c-e4f9-4120-87c0-xxxxxxxxxxxx/FederationMetadata/2007-06/FederationMetadata.xml" /> <add key="ExternalAuth.WsFederation.Wtrealm" value="2dbbdc18-2b40-4654-9f3c-xxxxxxxxxxxx" />

When I click on the ADFS button to login, I get an error: IDX10214: Audience validation failed. Audiences: 'spn:2dbbdc18-2b40-4654-9f3c-xxxxxxxxxxxx'. Did not match: validationParameters.ValidAudience: '2dbbdc18-2b40-4654-9f3c-xxxxxxxxxxxx' or validationParameters.ValidAudiences: 'null'

This error occurs whether I use the localhost application or deploy it to Azure and run it from there.

I have reviewed the various ASP.Net forum posts that refer to ADFS and active directory but nothing seems to point to the above error or where it might be originating from. Can someone enlighten me as to where I must have missed or misconfigured something.

Thanks... Terry

Even if I set the Configuration.MultiTenancy.IsEnabled to false in the AbpZeroTemplateCoreModule.cs I still get the same UnknownExternalLogin error when I try to login with a domain account.

I thought it would add the entry in the AbpUsers table but it doesn't

Showing 1 to 10 of 37 entries