Questions tagged [asp.net-4.8]

21 questions
3
votes
1 answer

Do I need to remove System.Data and System.Data.Common while upgrading EF5 to EF6

I'm following Microsoft Guide and it mentions that Ensure that assembly references to System.Data.Entity.dll are removed The general rule for namespace changes is that any type in System.Data.* is moved to System.Data.Entity.Core.*. But my…
Hakoo Desai
  • 341
  • 3
  • 4
  • 21
1
vote
2 answers

Is there a reason to run a Task within another Task?

I found this method in an ASP.NET application: public void LogoutAllSessions() { Task.Run(async () => await _identityHttpClient.GetAsync(Uri)).Wait(); // Could this be rewritten as this:? //…
David Klempfner
  • 8,700
  • 20
  • 73
  • 153
1
vote
2 answers

C# Create URI from string without decoding %2F as a forward slash

Given the following string URI var str = "https://www.google.com/maps/search/C%2F-%20GBI%20Logistics%2C%2078%20Mallard%20Way%20(Door%20%232)%2C%20CANNINGTON%2C%20WA%2C%206107"; How can I create a URI from this string which doesn't decode the %2F as…
Brendan Gooden
  • 1,460
  • 2
  • 21
  • 40
1
vote
0 answers

Simple open and hide gridlines of an Spreadsheet document using OpenXML SDK with VB.Net 4.8

I've been using LargeXlsx .Net library to generate big spreadsheets with ease for some time, also in order to comply with a no-office-on-servers policy. But now, we have a new report with a fancy requirement which demands the output files with the…
user3490413
0
votes
0 answers

Unable to replace localhost with 127.0.0.1 in URL

I have two local apps running: ASP.NET client (ASP.NET 4.8): https://localhost:44300 Duende Identity Server (.NET 6): https://localhost:44349 The Identity Server cookies are being sent to the client application when the browser makes request to…
David Klempfner
  • 8,700
  • 20
  • 73
  • 153
0
votes
0 answers

Whisper .net in .Net 4.7.2 is not able to transcribe audio

I am using whisper .net in ASP.NET Core 6 and its working fine there, but i also want to apply same approach on .Net 4.7.2 , but i am not able to transcribe data. Whisper use IAsyncEnumerable type for its processor and its feature does not have…
0
votes
1 answer

How to resolve Webpack Exception on new machine

I am getting the following error message when running webpack. The oddity is that on my machine, it works fine. This is an old project nearly 10 years old that. Another developer is now going to be working on it and so we have set up his machine…
Greg Gum
  • 33,478
  • 39
  • 162
  • 233
0
votes
0 answers

WebForms iFrame issue post ASP.NET 4.5

So the one thing I know is that with 4.5, iframes went from being HtmlGenericControls to HtmlIframes. This issue didn't start until I went from 4.0 to 4.8 but the iframe change does seem to be the driver of this issue. The application I'm working…
Robert
  • 1,745
  • 5
  • 34
  • 61
0
votes
0 answers

Application error after upgrading from .net3.5 to .net 4.8 framework

I am working on upgrading legacy .net application. It was written in .net 2.0 , I have upgraded the framework to 3.5. Deployed into IIS with runtime version v2.0. It worked fine. And now I have upgraded it to v4.8, it is working fine from my…
0
votes
0 answers

ASP.NET 4.8 webforms, auth via okta(oidc), call an ASP.NET Core Web API, secured via okta, how do I get and include the auth token in the call?

In an ASP.NET 4.8 webforms application, authenticated by okta, I'm trying to call an ASP.NET Core Web API, also secured by okta. How do I get and include the auth token in the call? The code is their example okta-aspnet-webforms-example but with the…
Eric Brown - Cal
  • 14,135
  • 12
  • 58
  • 97
0
votes
0 answers

Authenticate using Auth0, then match a local account using email in AspNetUsers

In my ASP.NET MVC 5 application, we already have users defined in AspNetUsers. Currently, once the user is logged, the ASP.NET MVC 5 application is using the user identity/claims to do a bunch of things inside the application. Users cannot register…
0
votes
1 answer

C# Razor Pages writing Radio Button value into ViewBag or send it to controller

I am struggling with the following problem. I have in my .Net 4 application with Razor Page a database query that is started with a button (upper part in the code) and now I want to send the value of the radio button group (lower part in the code)…
Michael 7
  • 1
  • 2
0
votes
0 answers

How to make Url.Link() use the external url and not the internal url?

In production we have one external and one internal url to the same website. When using the external url we want the url created by Url.Link() to use the external url but it uses the internal url: public class DefaultController : ApiController { …
emst
  • 1
  • 2
0
votes
0 answers

Value cannot be null. Parameter name: path2

I successfully integrate/reference a third party assembly. I tried to use one of the namespace after that I encountered an error that I cannot solve. Here's the simple code: public string Post() { // SpeechDocument(String…
Newbie
  • 13
  • 4
0
votes
0 answers

how to implement Application.UserAppDataPath in .net standard 2.0

Currently in our Application is in .net 4.8 and we are using Application.UserAppDataPath to get the path for the application data of a user. if (TestManager.Singleton.IsUnitTestActive) { // Unit test is running... string…
1
2