Gecko
Gecko
CC#
Created by Gecko on 2/14/2024 in #help
405 Method Not Allowed
I woke up today, and suddenly my application is returning "405 Method Not Allowed" on every endpoint. It was not doing this last night, and no changes have taken place in between. My teammates are able to run my branch no problem. What is going on here?
20 replies
CC#
Created by Gecko on 2/13/2024 in #help
Run EF Migrations in Azure SQL Database
I made an Azure SQL Database for my blazor application. I'm wondering how to run my EF Migrations so my SQL DB gets seeded with the proper data?
13 replies
CC#
Created by Gecko on 2/9/2024 in #help
405 Method Not Allowed
I am receiving a 405 error, with no other relevant log messages. Any ideas what's happening? Accessor
public async Task<Response<int>> AddPermit<T>(T permit) where T : PermitDetails
{
var response = await _permitAccessor.AddPermit<T>(permit);
return response;
}
public async Task<Response<int>> AddPermit<T>(T permit) where T : PermitDetails
{
var response = await _permitAccessor.AddPermit<T>(permit);
return response;
}
IPermitClient
Task<Response<int>> AddPermit<T>(T permit) where T : PermitDetails;
Task<Response<int>> AddPermit<T>(T permit) where T : PermitDetails;
PermitClient
c#
public async Task<Response<int>> AddPermit<T>(T permit) where T : PermitDetails
{
var result = await _http.PostAsJsonAsync("api/permit", permit);
return await result.Content.ReadFromJsonAsync<Response<int>>();
}
c#
public async Task<Response<int>> AddPermit<T>(T permit) where T : PermitDetails
{
var result = await _http.PostAsJsonAsync("api/permit", permit);
return await result.Content.ReadFromJsonAsync<Response<int>>();
}
AddPermit (Frontend code where the PermitClient is called with data)
c#
PermitClient.AddPermit(Constants.MockPermits.PermitList[0]);
c#
PermitClient.AddPermit(Constants.MockPermits.PermitList[0]);
MockPermits.PermitList
c#
public static PermitDetails[] PermitList = {
new PermitDetails()
{
PermitType = "Mechanical Amusement",
BusinessDetails = MockBusiness.MockBusinessExample,
LocationDetails = MockLocation.MockLocationExample,
Status = "Approved",
StartDate = new DateTime(2022, 02, 27),
EndDate = new DateTime(2023, 02, 27),
Signature = Array.Empty<byte>(),
},
}
c#
public static PermitDetails[] PermitList = {
new PermitDetails()
{
PermitType = "Mechanical Amusement",
BusinessDetails = MockBusiness.MockBusinessExample,
LocationDetails = MockLocation.MockLocationExample,
Status = "Approved",
StartDate = new DateTime(2022, 02, 27),
EndDate = new DateTime(2023, 02, 27),
Signature = Array.Empty<byte>(),
},
}
Didn't include the controller, because this error happens before the controller is even reached
8 replies
CC#
Created by Gecko on 11/26/2023 in #help
✅ Anyone know the best free way for me to take a page from my site and turn it into a pdf in Blazor?
Title says it all
8 replies
CC#
Created by Gecko on 11/16/2023 in #help
Pulling in Master Erases things from my Branch without even Making a Merge Conflict
No description
32 replies
CC#
Created by Gecko on 10/24/2023 in #help
❔ How to Deploy WASM Project with .NET Backend in same repo?
I have a Blazor frontend with a .NET backend. How do I use Azure to deploy these when they are in the same repo? I tried putting it on an app service unsuccessfully
2 replies