Base solution for your next web application

Activities of "ervingayle"

I am using jQuery & .Net Core and hope to move to a continuous deployment model in Azure. So far there are aspnetboilerplate, jquery & .net (aspnetzero) which are being migrated into .net core jquery (aspnetzero). For Development, Staging & Production environments while you specify your configuration for each environment in the solution Azure does not provide specific isolation for an application with these SDLC environments. Essentially to mimic that model you will need to create three App Services applications.

As for continuous integration/deployment, there are some problems with deploying in my case because when the site is in use the ProjectName.Application.dll is use which causes the continuous deployment task to fail. I have even tried setting the app variable to offline (which is not ideal) because it will take the app offline during deployment to free in use files but this also fails.

You may not face this behavior using the Angular version but this has been my experience. Also to note, this is not happening with the .net aspnetzero application.

Do you want the first domain name (domainABC.com) to remain in the browser url bar or can the user be redirected to tenanta.rootdomain.com? If not, then you can do this in DNS using cnames. If you do then I am not sure how the mapping management would work.

I am sorry if this is a duplicate post. I thought I had a post for this already but cannot find it and the issue is not resolved.

I am receive the following error after uncommenting the lines for Hangfire. The hangfire tables have been created and jobs are working but I am unable to access the dashboard. I am not using token authentication. Does anyone have this working in 4.4 .net core?

ArgumentException: Context argument should be of type AspNetCoreDashboardContext! Parameter name: context Hangfire.Dashboard.AspNetCoreDashboardContextExtensions.GetHttpContext(DashboardContext context)

My configure method: private static void ConfigureOwinServices(IAppBuilder app) { app.Properties["host.AppName"] = "Vnext";

        app.UseAbp();

        app.MapSignalR();

        //Enable it to use HangFire dashboard (uncomment only if it's enabled in VnextWebCoreModule)
        app.UseHangfireDashboard("/hangfire", new DashboardOptions
        {
            Authorization = new[] { new AbpHangfireAuthorizationFilter(AppPermissions.Pages_Administration_HangfireDashboard) }
            //Authorization = new[] { new AbpHangfireAuthorizationFilter() }
        });
    }

I notice that setting my ASPNETCORE_ENVIRONMENT to Production or Development does not have any effort on the developer error pages. What am I doing wrong here? I am setting this value on the MVC project where it is located.

Secondly, I am trying to test out the DemoUIComponents functionality and noticed that I am missing all of the min.js files. Looking at the path in the solution does not show them created. Although I have the minifier and bundler plugins for VS 2017 installed. Is this done automatically?

Thanks for the reply.

My only issue here is that as I mentioned I am running Azure websites. Azure App Services does not provide access to IIS because you are on a shared multi-tenant environment as you know. Looking online, I found other examples saying to modify the web.config, etc and I came across this one: <a class="postlink" href="https://github.com/KentorIT/authservices/issues/427">https://github.com/KentorIT/authservices/issues/427</a>

It asks to add WEBSITE_LOAD_USER_PROFILE = 1 to the App Service, App Settings in the Azure Web Portal.

Now everything works. This should probably be added to the aspnetzero documentation for anyone else leveraging the platform if you are going to list support for it.

The only difference between my Web.Mvc project and the Source on Github or my master branch is the uncommented lines for hangfire. I would like add that I looked at my original aspnetboilerplate install which is on Azure App Services and see that we used and I tried uncommenting the authorization line but that gives me a generic access denied page. //ENABLE TO USE HANGFIRE dashboard (Requires enabling Hangfire in EnotchWebModule) app.UseHangfireDashboard("/hangfire", new DashboardOptions { Authorization = new[] { new AbpHangfireAuthorizationFilter() } //You can remove this line to disable authorization });

In addition, I noticed that with my environment variable for the project set to "Development", that the DeveloperExceptionPage does not work. I ended up modifying the else branch as follows else { app.UseDeveloperExceptionPage(); //Commented error pages //app.UseStatusCodePagesWithRedirects("~/Error?statusCode={0}"); //app.UseExceptionHandler("/Error"); }

So I don't know if there is some issue with the settings that are being made with Startup.cs. What else can I provide?

I am going to review now. One thing though, I made the hangfire uncomment changes to Web.Core and Web.Mvc as per the instructions not to the Host project.

On Azure, I am using Azure App Services not the traditional self managed VM. I did find this on LoadUserProfile and Azure App Services.

I am having the same problem and error message with my aspnetzero 4.3 install, also .net core.

Is there any other troubleshooting step?

I am running Aspnetzero 4.3 .net core jquery. I am getting the following error when I publish to azure. Since I am new to the .net core build I do not have any historical information. I have aspnetzero .net jquery also running on azure without any problems along with aspnetboilerplate - all on azure with no errors for SignalR.

My target framework is 4.6.1 (full framework) with my .net core 4.3 jquery install.

An unhandled exception occurred while processing the request.

CryptographicException: The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating.

System.Security.Cryptography.ProtectedData.Protect(Byte[] userData, Byte[] optionalEntropy, DataProtectionScope scope)

Searching in Google shows other users in Azure who has the same error: <a class="postlink" href="http://tech.trailmax.info/2014/06/asp-net-identity-and-cryptographicexception-when-running-your-site-on-microsoft-azure-web-sites/">http://tech.trailmax.info/2014/06/asp-n ... web-sites/</a>

I am referring to the actual package, its name is Newtonsoft.Json. It is at version 10.0.3 in my solution.

When you go to NuGet package manager do you see Newtonsoft.Json listed as installed for the right projects in your solution? I saw the dependency resolved in the solution so I thought it was some other error because it appears installed but when I went to package manager it was not listed there. After installing as I mentioned before the warning went away.

If you do see Newtonsoft.Json in package manager then you must have another issue.

Showing 21 to 30 of 37 entries