373,213 questions
Advice
0
votes
0
replies
37
views
What are you building with AI in your API?
The only place we have used AI so far in any of my projects was Azure Document Services, user would upload a document and we used Azure to validate the document.
Making sure for example that it's a ...
0
votes
0
answers
41
views
ASP.NET MVC AntiForgeryToken could not be decrypted
I have an ASP.NET MVC 5 application (.NET Framework 4.7.2) running on IIS Express.
I am getting the following exception when posting a form:
System.Web.Mvc.HttpAntiForgeryException: the anti-forgery ...
-1
votes
0
answers
26
views
Why does Hangfire pause if there are no users on the site? [duplicate]
Hangfire performs background work by requesting data from a third-party API. There are several tasks, but I'll only use one for this example.
I discovered a strange background task schedule on the ...
0
votes
0
answers
29
views
Enable module in IIS location tag via Microsoft.Web.Administration or AppCmd
I'm working on an application which needs to load an IIS module into IIS. Up until now, I've been loading my module at the global level using the Microsoft.Web.Administration ServerManager via:
public ...
0
votes
0
answers
14
views
AutoGenerate,IsolateApps options for machinekeys in IIS
If we set AutoGenerate,IsolateApps on the ValidationKey and DecryptionKey in IIS for the site, do we also need to generate <machinekeys> node in the Web.config?
How would we use the ...
-1
votes
1
answer
82
views
ASP.NET webforms Ajax to pass data from aspx to code behind
I need to pass some data from an .aspx file to its code behind file.
<form id="form1" runat="server">
<div>
Name : <input type="text" id="...
0
votes
1
answer
75
views
Winform loading WebUrl not determine whether is Browser or WinForm
I have an ASP.NET Webforms framework 8.0 that is working fine but I would like to load the Web Url where my webform is hosted in a Winforms app and determine whether the webform url was loaded from ...
1
vote
1
answer
73
views
ASP.NET mobile page not redirecting for customErrors
Our application is a legacy ASP.NET Webforms app, we have our web.config customErrors setup like this:
<customErrors mode="RemoteOnly" defaultRedirect="/Error/Error.aspx" ...
0
votes
0
answers
28
views
CCAvenue test simulator not sending encResp to ASP.NET WebForms response page
I'm integrating CCAvenue (test environment) with an ASP.NET webforms app. Payment initiation works, but when the user is redirected back to my response page, the encResp parameter is never received.
...
0
votes
1
answer
96
views
ASP.NET MVC on .NET 4.6 : session and cookies being cleared as soon as RedirectToAction or Redirect is called
I have an ASP.NET MVC web application on .NET 4.6 that works just fine in one environment, but fails in the second, when all configurations are the same. Doing a bit of debugging showed that the ...
0
votes
1
answer
78
views
How do I use response.redirect to send a stream to be downloaded?
My ASPX code looks like this
Dim ms As New MemoryStream
printDoc.Save(ms, False)
Dim byteArray As Byte() = ms.ToArray()
ms.Flush()
ms.Close()
With HttpContext.Current.Response
.ClearContent()
....
1
vote
0
answers
70
views
Implement ASP.NET Core style attribute based routing in ASP.NET MVC?
So I actually implemented it, but there is one last problem I need to resolve.
My implementation can be summarized by these two classes:
Hooking into the ASP.NET MVC startup code to register ...
1
vote
0
answers
40
views
ASP.NET ViewState MAC failed even with known machine key and disabled security features
I'm creating an educational lab to demonstrate ViewState deserialization attacks. Despite having the machine key and disabling security features, I keep getting an error
Validation of viewstate MAC ...
3
votes
1
answer
90
views
Facing CORS issue in .NET 4.5 and Angular application
What is happening
Browser sends a preflight OPTIONS request
Server responds with 405 / CORS error
Actual API request never reaches the controller
Angular console shows CORS policy blocked error
What ...
0
votes
1
answer
60
views
Use Proxy to access Azure AD SSO
I’m implementing Azure AD SSO in an ASP.NET Blazor Server app using Microsoft.Identity.Web.
My environment:
Corporate network blocks direct internet.
Azure AD endpoints (login.microsoftonline.com, ...