Base solution for your next web application

Activities of "pankajmathur"

Question

Hi, In our existing MVC5.x application when the multi tenancy is turned on and user enters the invalid name, the page 505 was displayed. For eg. if someone type (<a class="postlink" href="http://www.abc.applicationname.com">www.abc.applicationname.com</a>) and if abc is not a valid tenant, page 505 was appearing. However after migrating to .net core 2.0 project we observe that it takes opens the login page and if the user enters the credential of host on that page they are able to login. Can you please let me know as where and what to change so that if the invalid tenant is specified the user is redirected to a 505 page and not shown the login page.

Question

Hi, In our earlier MVC5.x project we have written rule in our web config file. Can you please let me know where and how to write this when migrated to .netcore 2.0. Thanks in advance

<system.webServer> <rewrite> <rules> <rule name="Redirect to https"> <match url="(.*)"/> <conditions> <add input="{HTTPS}" pattern="Off"/> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}"/> </rule> </rules> </rewrite> </system.webServer>

Hi ,

When we are creating new edition, the entry related to edition information goes into only the Host Database. While when we try to upgrade the tenant to the required edition, system gives an error for the Foreign Key while entering the data into the AppSubscriptionPayments table. We found that since the edition information is not available in the tenant database, system gives this error. For now we have removed the foreign key from the AppSubscriptionPayments table and after that the system works well. Just want to know is this issue with the base platform or is there something that which we are doing wrongly.

Question

Hi,

I have added a max length attribute to my DTO. However when I create an object of DTO and assign a string more than the permissible length, it does not give me error and the error is coming only when the object is getting committed in the database.

   [Required]
   [MaxLength(100)]
    public string Description { get; set; }

Am I doing something wrong or it is a default behavior.

Hi,

We are getting a following exception when trying to upload an excel file containing the records for import.

<ins>Could not create an instance of type 'SecuritySwitch.Abstractions.HttpPostedFileBase'. Model bound complex types must not be abstract or value types and must have a parameterless constructor.</ins>

We have enabled hangfire for the background processing and facing this issue in .Net Core 2.0.

We are facing an issue that the system throws timeout when seeding a tenant, in MVC 5.X we have specified the timeout in the Configuration class of the EntityFramework project

    public Configuration()
    {
        AutomaticMigrationsEnabled = false;
        ContextKey = "ManagementConsoleWeb";
        CommandTimeout = 1000;
    }

How can we achieve the same in the .Net Core 2.0.

Question

Hi,

In the MVC5.X version the Account/Authenticate API's parameter was TenantName, UserID and Password.

Recently we migrated to .Net Core With Jquery version. In this version we see that we need to pass the TenantID in the header in /api/TokenAuth/Authenticate function and then further in the subsequent API we need to pass the TenantID in the header.

We are bit confuse here. How the API consumer (In our case it is the mobile device running Mobile POS APP) will come to know the tenant id that he is supposed to pass in the header.

Please help us.

Regards, Mahendra

Hi,

We are currently using MVC5.x with JQuery on .Net Framework 4.6.1 We wish to migrate our application to MVC on .Net Core 2.0 with target framework as .Net Core 2.0 by taking your latest release that is 4.5.

Could you please help me the best way to upgrade our project to .Net Core 2.0. It would be nice If you could provide some link for the documentation that could help me achieving this.

Would appreciate your response.

Regards, Mahendra

Hi, We have downloaded a project based on Version 4.5.1 however we are not able to see the changes that are done on the tenant management screen for the trial version and also for the unlimited time subscription. Can you please suggest how can we get these changes. Are these changes changes available for the .Net Framework 4.6.1?

Please see the attached file for more details.

Question

Hi,

I have just downloaded the ASP.Net MVC 5.X & JQuery project with Version (4.1.0(latest version) to see the new feature such as "Subscription management & Paypal payment integration" and "Dashboard for edition, tenant & income statistics", but I can't see the changes in the Edition Page.

Attached is the Edition page that I see. Am I missing something?

Showing 31 to 40 of 44 entries