Base solution for your next web application

Activities of "Mitch"

When selecting the Language/Culture at the top of the screen, the British flag is shown beside the word "English". However, the date format that is used is American which is "mm/dd/yyyy" which is very confusing. The UK/British date format is "dd/mm/yyyy".

Would it be possible to correct this by using "dd/mm/yyyy" instead when selecting the British flag and maybe adding a USA flag for the "mm/dd/yyyy" format.

I've been trying to get ASP.NET Zero working with SendGrid but it's not working. I'm using ASP Core and hosting on Azure. A guy posted on here that he'd got SendGrid working 3 years ago but I've followed his advice and it's still not working. Has anyone got any examples of successfully working code for Sendgrid?

I don't care which SMS Text service to use, I just need an example of how to get this working with ASP.Net Zero. I'm happy to use Twilio or any popular service provider. So, can anyone provide some guidance or examples on how to get SMS working with ASP.Net Zero

Hi

I'm using Azure too so I think I'm going to hit the same problems. Can you tell me how you setup SendGrid to work with ASP.Net Zero?

I really appreciate your help in advance.

Mitch

Hi

I've been using Azure for many years.

Probably your best bet is to start with a free account and work up from there. It's really easy to move between different plans so just start with an inexpensive option and just increase performance (and cost!) as you need it.

Mitch

Thanks for your replies. I have used SendGrid in a previous project so I do have some experience with it. My issue was where is the best place to put the code within ASP. Net Zero?

In the host Administration/Settings I have enabled Email verification and SMS verification. I've also replaced the dummy SMS code with Twilio SMS code.

However, when I log in to test it, I'm only offered Email verification from the dropdown options.

I've ensured the User has a phone number entered into their details. I did read in the instructions that it must be a "Verified" phone number although I'm not sure what a "Verified" phone number is and whether that could be the issue?

Hi

Yep that fixed it, many thanks!

Surely it's an oversight though in the MVC version. Without verifying your phone number the SMS doesn't work and there's no button to click on to Verify.

Mitch

I've just tried for the last 48 hours to follow the ASP Net Zero Azure guide to get my app working in Azure, but no luck. I'm using the Core project with JQuery. I'm only trying to publish the MVC project, not the Public site.

I have had several existing web apps up and running on Azure for the last 2 years, but my attempts to get ASP Net Zero to work on Azure seem to be getting nowhere. As a last resort I went back to the beginning and used a fresh ASP Net Zero project with no modification except for the database connection strings. I decided to use a connection string that pointed to my existing Azure SQL subscription. Everything works perfectly on my local dev PC, but when I try to run the app after successfully publishing to Azure I get a HTTP ERROR 500 when it tries to redirect to /Account/Login.

I'm struggling to find out what the cause of the 500 error is. I've tried to add Application Insights but that not giving me any feedback regarding the error.

Does anyone have any clues as to what the error could be? Is the app trying to write to location that doesn't exist in the Azure environment? Could it be something to do with HTTPS?

I'm really out of ideas.

Hi Aaron,

It can be a bit tricky reading logs in Azure Web Apps. I decided to log into Azure, go to my App Service and in Settings => Application Settings I added a new settings to the Application Settings section. (which was ASPNETCORE_ENVIRONMENT in the first column followed by "Development" in the second column. This allows my Web App to report a detailed error message.

The detailed error is "DirectoryNotFoundException: Could not find a part of the path 'D:\home\site\wwwroot\Plugins'."

I'm using a new version of ASP Net Zero with jQuery release 5.3.0 (.Net Framework not Core) with only the connection strings changed. It works fine on my development PC.

Why on earth is it looking for 'D:\home\site\wwwroot\Plugins'. !?

Showing 1 to 10 of 103 entries