Questions tagged [asp.net-4.5]

Refers to the version 4.5 of the ASP.NET web application framework introduced with the .NET Framework 4.5

Refers to the version 4.5 of the ASP.NET web application framework introduced with the .NET Framework 4.5

616 questions
2
votes
1 answer

Alternative to Task.Run

I have an ASP.NET MVC 4 program and I wrote the following code where I wanted to make the Results() method async: public async Task Results() { var result1 = SomeMethodAsync(1); var result2 = SomeMethodAsync(2); var result3 =…
Kaladin
  • 693
  • 2
  • 11
  • 20
2
votes
1 answer

SignalR notifications not working. Is IIS required?

I am trying to execute a sample demo SignalR application as shown in this post. When I am making database changes, notifications are not shown on browser. It remains a blank page. Is IIS installation required for SignalR to work? I am building on VS…
RKh
  • 13,818
  • 46
  • 152
  • 265
2
votes
3 answers

Completely non-blocking HTTP request C# ASP.NET

During my application's Application_Start() event I want to fire off a HTTP request to an address. I absolutely do not want any cost incurred by Application_Start() and for App Start to be delayed in any fashion. I do not care about the response…
Chris Marisic
  • 32,487
  • 24
  • 164
  • 258
2
votes
3 answers

handling null datetime in gridview

I have a gridview in C# asp.net Web 4.5 Framework that works great until a null valued is passed for a field I am formatting as a date.. here is my template field
Danimal111
  • 1,976
  • 25
  • 31
2
votes
3 answers

get xml node value from id attribute c#

I have a login page where the user chooses their name from a dropdown list then enters their id code in a text box. The page then redirects to the account page where the user's information is displayed. The dropdown list and the text box are being…
ryol
  • 25
  • 1
  • 5
2
votes
2 answers

POST controller value is always NULL

Firstly thank you for taking the time out to read this post. I've been building my first asp.net 4.5 MVC4 Web Api, but the value received in the controll POST method is always NULL. To test the POST api method I've tried Fiddler and Google Chrome…
RobHurd
  • 2,041
  • 7
  • 26
  • 34
2
votes
2 answers

Querying AD throws System.Runtime.InteropServices.COMException

My team is using IIS Express in VS 2013 for debugging, I am getting the following error when querying Active Directory for AD Groups: An exception of type 'System.Runtime.InteropServices.COMException' occurred in…
PhillyNJ
  • 3,859
  • 4
  • 38
  • 64
2
votes
1 answer

Visual Studio 2013 Web Forms Site doesn't work with trust level "Medium"

I've created an asp.net Web Forms site with Visual Studio 2013. Scripts and pages are generated automatically by VS 2013. The problem is that the website doesn't work with the .Net trust level "Medium". It reqires "Full" level. With the "Medium"…
Gloria
  • 1,305
  • 5
  • 22
  • 57
2
votes
1 answer

Why does getting FileByte of uploaded file break StreamReader?

I am working with a project in which I need to compare the byte representation of the file being uploaded to go ahead and check it against an accepted file size. However, when the compiler executes byte[ ] filebyte = fileUpload.FileBytes the…
Isaac
  • 61
  • 2
  • 9
2
votes
3 answers

MVC 5 application Deployment on IIS7 getting error 404.8

I have created a MVC5 Web Application and tried to deploy on IIS7 on a separate machine having windows 2007 . everything is set ok but when I am Browsing it its giving 404.8 The request filtering module is configured to deny a path in the URL that…
2
votes
1 answer

Asp.Net Identity: Login with facebook

I just created an ASP.Net MVC project inside my solution, following these instructions After successfully being able to login and create users with a custom IUserStore, I followed these instructions to allow login with social networks like facebook:…
2
votes
2 answers

calling a wcf 4.5 WCF service asynhronously

I want to make sure I have the correct code in place for an asynchronous call to my web service. If someone can please help, I would appreciate it very much. I am using Visual Studio 2013 with the 4.5.1 framework. I have the following code in my…
sagesky36
  • 4,542
  • 19
  • 82
  • 130
2
votes
1 answer

Asp.net web forms, Asp Identity - how to store claims from Facebook, Twitter, etc

How would one get this to work for standard Web Forms? What I'm trying to do is populate the AspNetUserClaims table from the claims that I get back from Facebook (or other service). I can see the values coming back in the OnAuthenticated, code…
LosDude
  • 43
  • 1
  • 6
2
votes
0 answers

Strongly Typed Model Binding in multiple Web User Controls on a single Formview

I'm trying to use the ASP.NET 4.5 strongly typed model binding on multiple web user controls that are added to a single Formview inside the Edit and Item Templates so I can update the data. i.e. I have an aspx page like this-ish
CodeBob
  • 775
  • 7
  • 14
2
votes
3 answers

Why is my HttpPostedFileBase always empty?

In my Create View I have @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl, FormMethod.Post, enctype = "multipart/form-data" })) { @Html.AntiForgeryToken() @Html.ValidationSummary(true)
levi
  • 3,451
  • 6
  • 50
  • 86