Base solution for your next web application

Activities of "JasonC"

Question

I recently purchased aspnet zero and had seen in the documents a way to integrate with paypal for what I thought was user subscriptions. Is that not the case? Has anyone integrated a user subscription service to a single tenant site?

Answer

Hummm not really what we are looking for. This is access to one site and depending on what role a users is in they will see certain information that that role has access to. I imagine it would involve extending the user class with some subscription info and adding a page linked to paypal to buy subscription to the site. If anyone has done this before please message me to save some time (and earn some money).

Launching a new site using aspnet zero and have winhost as host.

I kept getting an error 503 whenever I open 3 pages at once. Did some research and realized the app pool was recycling as it was going over the 300 megs limit they have. However I found if I manually changed the webconig from modules="AspNetCoreModuleV2" to modules="AspNetCoreModule" everything works fine and I can open dozen and dozens of windows all at the same time and never have app pool recycling issue.

Is this an expected behavior that with AspNetCoreModuleV2 it could cause this issue?

Any problems using AspNetCoreModule rather than AspNetCoreModuleV2?

Answer

Ok but just so I understand tenants correctly, it would be the tenant admin subscribing to an edition not all the individual users.  Correct?

The host said all that was in the event viewer said the app pool was over 300 megs so it was recycling.

It takes about 5 refreshes of the dashboard with AspNetCoreModuleV2 set in the web.config to cause the host to recycle the pool (and hence freeze the site for 30 or so seconds).

I have the logs that are produced in app_Data/logs (from log4net I believe?). But not sure what I should be looking for other than it looks like it just gets shut down then starts reloading again.

DEBUG 2019-04-18 10:06:03,898 [26 ] Abp.Modules.AbpModuleManager - Shutting down has been started DEBUG 2019-04-18 10:06:03,900 [26 ] Abp.BackgroundJobs.BackgroundJobManager - Stop background worker: Castle.Proxies.BackgroundJobManagerProxy DEBUG 2019-04-18 10:06:03,901 [26 ] Abp.BackgroundJobs.BackgroundJobManager - WaitToStop background worker: Castle.Proxies.BackgroundJobManagerProxy DEBUG 2019-04-18 10:06:03,901 [26 ] Abp.Modules.AbpModuleManager - Shutting down completed. DEBUG 2019-04-18 10:06:05,979 [1 ] Abp.Modules.AbpModuleManager - Loading Abp modules... DEBUG 2019-04-18 10:06:06,006 [1 ] Abp.Modules.AbpModuleManager - Found 24 ABP modules in total.

If I do change web.config to AspNetCoreModule it runs great and have not been able to get it to crash (cause app pool to get over 300 megs). Not sure why that is or how these modules are different.

Answer

Thanks. I do see that. So I currently have it set up for no multi tenants and have set up roles (I think that is what you mean by permissions) with access to certain pages on the site. I then will need to add a way for users to subscribe to these different roles.  That is the piece I thought was already built in but I guess not.

OK yes I just checked my local host and on both AspNetCoreModule and AspNetCoreModuleV2 my memory size of the core host goes up over 500megs just by opening a few pages.

Winhost said they have a 300 meg limit with the basic hosting package. They said the enterprise level has a 500 megs limit but based on what I am seeing it would go over that also and be forced to recycle.

Am I missing something when compiling? What does the memory typically run?

How many should I try? This is two servers now that have had problems making the software unusable. What is the normal memory usage? I can try another host but this is a clean new install with no mods. You said "generally" does that mean that it does sometimes blow up memory like this?

I am still working with a relatively unmodified ASPZero install. I have gotten all the base stuff working except for IOS app.

I did get the Andoird app working on a simulator after I changed the DefaultHostUrl to my live url (It was just stuff at the splash screen).

However when I sideload an IPA or run the base app in a simulator I get the splash screen and a second later an error message "A problem occurred while trying to communicate with the server. Do you want to try again?"

I can hit the APIs and that is the only server I can think of that it would communicate with? And it does work in the Droid app and it is my understanding that it is using the same mobile client code to connect for both types of app compiles.

Have not debugged an ios app before but this seems like something basic missing.

Any suggestions where to look?

Showing 1 to 10 of 17 entries