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
0
votes
2 answers

Trying to print the first 250 characters of a string but getting ArgumentOutOfRangeExecption" error

I am binding a LINQ result to a ListView and trying to print only the first 250 characters from the "Synopsis" column but when I try to use Substring I get the error: System.ArgumentOutOfRangeException: Index and length must refer to a location…
user1365911
0
votes
1 answer

Purpose of ProviderUserName column in DotNetOpenAuth sample

I've started an ASP.NET web site in Visual Studio using a Microsoft pre-defined template. This is to help me learn about OpenID within ASP.NET. Inside the included SQL database within the sample site, there is a table called UsersOpenAuthAccounts…
EvilDr
  • 8,943
  • 14
  • 73
  • 133
0
votes
1 answer

Filling datatable with LINQ to Entity results so I can iterate though them

I have been trying to fill up a datatable with the LINQ results so I can iterate though the DT and print out the needed data but no matter how I try it cant convert the anonomus type into a datatable. The LINQ I am using is: using (var db =…
user1365911
0
votes
1 answer

ASP.NET 4.5 features don't seem available in VS2012

I'm checking out some of the new features in asp.net 4.5, and they don't seem available in VS 2012. Specifically, I was trying out the strongly typed data controls. VS doesn't resolve "Item" in this code block:
user2101
  • 109
  • 1
0
votes
2 answers

Converting SQL Table into Entity for ASP.Net EF 5 Code First

I am trying to convert an older website to use ASP.Net 4.5 and EF5 Code First but there is one table from the old site I can not figure out how to convert since it has two columns that both referance the same column in it's parent table. Can anyone…
user1365911
0
votes
1 answer

n ASP .NET 4.5 SelectMethod is not able to bind data to grid view on button click

I am using ASP.Net 4.5 , and facing an issue regarding with data binding for grid view using 'Select method'. The grid is able to bind the data on custom paging too. The issue lies in filtering the data. I have a asp button, By clicking on this i…
user2206336
  • 29
  • 1
  • 4
0
votes
1 answer

Able to read external RSS feeds, but Local Feeds are not found

I have both DNN 6.x and 7.x sites & asp.net 4.5. I have tested a few RSS reader modules. If I include an RSS feed from another site they work fine, but when I attempt to read an RSS feed from another page on the same site it fails. I have tested the…
Phil Speth
  • 31
  • 5
0
votes
1 answer

Activator.CreateInstance() - Is there a more efficient way of creating objects?

I have a lot of pieces of code which currently use Activator.CreateInstance() to create objects based off the type. Is there a more optimized way of accomplishing this?
TheJediCowboy
  • 8,924
  • 28
  • 136
  • 208
0
votes
1 answer

Upgrading from ASP.NET MVC 3 to ASP.NET MVC 4 leads to 404 errors

I just upgraded ASP.NET MVC 3 to ASP.NET MVC 4 with .NET 4.5 and root controllers were working but controllers in MVC Area started giving 404 errors. I looked up for IIS 7 QFE patch, but it is not applicable to windows 8. By setting breakpoints, I…
Akash Kava
  • 39,066
  • 20
  • 121
  • 167
0
votes
1 answer

ASP.NET 4.5 Won't Uninstall from Windows 8

I have been running into compatibility issues recently with my dev environment, and it was suggested that I uninstall and reinstall ASP.NET 4.5 on my windows 8 laptop. In order to uninstall on Windows 8, you must use the "Turn Windows Features…
TheJediCowboy
  • 8,924
  • 28
  • 136
  • 208
0
votes
1 answer

ASP.NET restrict application

Currently I am working on multiple projects as a third party (outsourced) where I have no control over the hosting. My application is modular enough to be changed on the fly, all that's required is slight edit in Html / CSS and it'll become a brand…
Mr. 笑哥
  • 283
  • 1
  • 5
  • 15
0
votes
2 answers

.Net 4.5 custom claims not recreated

I have searched on this subject and am just getting more confused. We have a Forms Authentication web application. I have changed the old FormsAuthentication.SetCookie statement to instead create a GenericPrincipal containing a FormsIdentity, then I…
user2047485
  • 391
  • 5
  • 20
0
votes
1 answer

Independent thread in Asp.net 4.5

protected void Button1_OnClick(object sender, EventArgs e) { FineTuneDB();// Long Task running in db SendSMStoAllClients();// Using Twolio API to send sms to all client long task lblText.Text = "Button click is completed our system…
SOF User
  • 7,590
  • 22
  • 75
  • 121
0
votes
2 answers

Can't figure out why I dont have access to a public function in a separate class

I am trying to call a public function inside a public class in my web application but for some reason the function is not accessible even though I can get to the class fine and the function is marked as public. When I call FileUploader, the only…
user1365911
0
votes
1 answer

.NET 4.5 SessionAuthenticationModule

I am trying to use a SessionAuthenticationModule to create a token and write it to the cookies instead of using the old FormAuthentication.SetAuthCookie. This is so I can also add claims to my principal and have them available on every request. It…
user2047485
  • 391
  • 5
  • 20