Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "ervingayle"

Hello Community,

I am trying to upgrade my asp.net core project from v7.3.1 to 8.8.

In doing so I am noticing all sorts of problems I have never had with upgrades that I have done since v4/v5. Troubleshooting is even more difficult because I am just getting out of memory exceptions but it is not clear why. I have even upgraded my app service to the 7GB option which used to work on a P1. Has anyone had this problem?

As the title mentions: The login takes about 2 minutes to display among other issues. I sometime get out of memory exception when trying to access. app.consts is undefined Accessing "/AbpServiceProxies/GetAll?v=637263311932348163" doesn't load

Please advise as to what I can do here.

I recently upgraded from v5.0 to v7.0 and it was quite a task. Everything seems to be loading fine. However swagger is giving me an error and I cannot figure out how to fix it. The contents of teh Logs.txt file is below: System.ArgumentException: Type provided must be an Enum. Parameter name: enumType at System.RuntimeType.GetEnumNames() at System.Enum.GetNames(Type enumType) at Enotch.EnotchVnext.Web.Swagger.SwaggerEnumParameterFilter.AddEnumSpec(Dictionary2 extensions, Type type, ISchemaRegistry schemaRegistry) at Enotch.EnotchVnext.Web.Swagger.SwaggerEnumParameterFilter.Apply(IParameter parameter, ParameterFilterContext context) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreateParameter(ApiDescription apiDescription, ApiParameterDescription apiParameterDescription, ISchemaRegistry schemaRegistry) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.<>c__DisplayClass11_0.<CreateParameters>b__1(ApiParameterDescription paramDesc) at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreateParameters(ApiDescription apiDescription, ISchemaRegistry schemaRegistry) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreateOperation(ApiDescription apiDescription, ISchemaRegistry schemaRegistry) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable1 apiDescriptions, ISchemaRegistry schemaRegistry) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.<>c__DisplayClass6_0.<CreatePathItems>b__2(IGrouping2 group) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItems(IEnumerable1 apiDescriptions, ISchemaRegistry schemaRegistry) at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.<Invoke>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware.<Invoke>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.<Invoke>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.<Invoke>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.<Invoke>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at IdentityServer4.Hosting.IdentityServerMiddleware.<Invoke>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.<Invoke>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at IdentityServer4.Hosting.BaseUrlMiddleware.<Invoke>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.AspNetZeroCore.Web.Authentication.JwtBearer.JwtTokenMiddleware.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.AspNetZeroCore.Web.Authentication.JwtBearer.JwtTokenMiddleware.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.<Invoke>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()

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?

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 have a AspZero .net core v4.3 project with the following action in my controller. The goal is to output XML in the exact way that is needed for my external provider to process it accordingly. Initially adding the [DontWrapResult] helps me to get the output closer to what I need. However, I notice that when I publish the solution I am unable to view the method output (400 bad request) and I only get a response (200) when I access via localhost.

I have an Index() action that is working fine so this is not an issue with routes at least to the controller in my opinion.

// POST: Broadcast/Play
        [HttpPost]
        [DontWrapResult]
        public string Play(string recordingUrl)
        {

            var response = new VoiceResponse();
            response.Play(recordingUrl);

            //return (response.ToString());
            //return new XmlActionResult(response);
            //return new TwiMLResult(response.ToString());
            //return new Twilio.TwiML.VoiceResponse().Say(response.ToString());
            //TwilioController TwilioController = new TwilioController();
            //var res = TwilioController.TwiML(response,Encoding.UTF8);
            //return res.Data;

            //var data = LoadFromString(response.ToString(), Encoding.UTF8);

            //return data;

            var res = response.ToString();

            return res;

        }
        private static XDocument LoadFromString(string twiml, Encoding encoding)
        {
            var stream = new MemoryStream(encoding.GetBytes(twiml));

            var settings = new XmlReaderSettings();
            settings.DtdProcessing = DtdProcessing.Prohibit;

            var reader = XmlReader.Create(stream, settings);
            return XDocument.Load(reader);
        }

What am I doing wrong here?

I am looking to provide the ability for users to re-queue a group of jobs for processing again. In the use case of a marketing campaign, you may want to send a message multiple times or customize the message without modifying the recipient list. I have everything working in terms of creating the jobs and processing however I would like to show the tenant users the ability to re-queue the jobs. Each recipient is mapped to a single job (i.e 3000 recipients = 3000 jobs).

Also, in my web module I added:

//Configure Hangfire - ENABLE TO USE HANGFIRE INSTEAD OF DEFAULT JOB MANAGER
            Configuration.BackgroundJobs.UseHangfire(configuration =>
            {
                configuration.GlobalConfiguration.UseSqlServerStorage("Default",
                    new Hangfire.SqlServer.SqlServerStorageOptions
                    {
                        JobExpirationCheckInterval = TimeSpan.FromDays(365)
                    });
            });

My intention is to extend the default time that the hangfire jobs are stored however while the code above just not give any errors, its not taking effect. How can I accomplish this goal?

I am migrating from Aspboilerplate where this worked into Asp.Net Zero and it has been fun. For the most part everything has gone well except for my views and plug-ins.

I am using a third party plug-in called Fusion Charts. <a class="postlink" href="http://www.fusioncharts.com/">http://www.fusioncharts.com/</a>

My environment is MVC + jQuery based. When I expand /Area/Mpa/Common there is a text file that says that I can place any shared plug-ins there and so I did. After this I got FusionCharts undefined errors. Since I am not using it on every page, I decided to remove the folder completely and just reference it where needed but now although I have removed the folder and its contents I get the JS error on every page and it has broken some of the functionality.

Reference details:

ReferenceError: FusionCharts is not defined[Learn More] js:799:54 /* Minification failed. Returning unminified contents. (1840,80-87): run-time error JS1019: Can't have 'break' outside of loop: break a (1840,320-327): run-time error JS1019: Can't have 'break' outside of loop: break a */

ReferenceError: FusionCharts is not defined[Learn More] js:10:54

TypeError: app.localStorage is undefined[Learn More] _ChatBar.js

Also I am trying to upgrade my jQuery version from 1.12.1 to 2.2. However, I noticed the version in /libs/jQuery is different than whats in /Scripts/* which is where the nuget package places the updated version that you select.

What am I doing wrong?

After the upgrade to the latest version of the API packages, I noticed that I am unable to build the project. I tried to revert to an earlier version but this is not working either.

Severity Code Description Project File Line Suppression State Error CS0308 The non-generic type 'PermissionChecker' cannot be used with type arguments Enotch.Core E:\Source Code\Project\Project.Core\Authorization\PermissionChecker.cs 8 Active

Severity Code Description Project File Line Suppression State Error CS0516 Constructor 'PermissionChecker.PermissionChecker(UserManager)' cannot call itself Enotch.Core E:\Source Code\Project\Project.Core\Authorization\PermissionChecker.cs 11 Active

Showing 1 to 9 of 9 entries