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

609 questions
0
votes
2 answers

Lost access to HTTP Request after upgrade to .NET Framework 4.5

I have a WCF service that accepts a POST request from jqGrid in the form of HTML form and returns JSON. While things were on .NET 4.0, all worked fine. I could access form fields inside the service via request["fieldName"]. Once I upgraded to .NET…
user1044169
  • 2,293
  • 5
  • 30
  • 56
0
votes
1 answer

How to read FaultException detail in consuming application?

In my WCF WebMethod I have the following code that provides some parameter validation. It works okay and throws the FaultException: Public Function BeforeCall(operationName As String, inputs() As Object) As Object Implements…
EvilDr
  • 7,561
  • 10
  • 60
  • 114
0
votes
1 answer

WCF FaultExceptions, SOAP Faults and non-.NET apps

I'm just developing my first WCF WebMethod, and am looking at error handling. After having spent a week reading up on this, the general consensus seems to be that errors within WCF WebMethods should be thrown as either WebFaultException, or…
EvilDr
  • 7,561
  • 10
  • 60
  • 114
0
votes
0 answers

Problems whit upload asp.net 4.5

I am searching for whole the internet and I cant find one way working about the requirements. Controller [HttpPost] [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(Albums albums) View @using (Html.BeginForm("Create", "album",…
0
votes
1 answer

Asp Net 4.5 web form Redirect to page from HTTP Handler

Hello I aspx page with next call for my ashx Inside of MyRedirect I do some hard logic and try to redirect to other page of my side it looks like: public class MyRedirect :…
Arbejdsglæde
  • 12,249
  • 20
  • 69
  • 137
0
votes
1 answer

How to implement redirect to other page after some long process in Page_Load?

Hello I would like to make redirection to other page after some process on server side in Page_Load event with Asp Net 4.5 syntax (ASYNC and TASK keywords). I fount out this way something like this to start backed task (but this is possible in old…
Arbejdsglæde
  • 12,249
  • 20
  • 69
  • 137
0
votes
4 answers

How do I update the client with server side variables during a lengthy loop?

I am trying to put a web interface on a lengthy server side process which should send regular progress\statistic reports to the client as the process is running. How can I do this? Here is what I have attempted so far. The session in the…
user1662409
  • 157
  • 3
  • 12
0
votes
4 answers

EF 5.0 inserting null into smallint column

I have a column with SQL type of smallint (EF type of Int16) that I want to insert a null value into but when I use the below code I get the error that null can not be converted to short. How can I get this one line if statment to allow me to insert…
user1365911
0
votes
2 answers

There has to be a better way to add these using LINQ, right?

I am new to LINQ and and come up with the below to add new information to my DB using LINQ and EF5 but I am sure there is a more efficant, better, way to do this I just don't know it. I was hoping to get some input on what I can do to acceive the…
user1365911
0
votes
3 answers

Unable to bind LINQ results to drop down

I am new to link and was following How to bind LINQ data to dropdownlist to try and bind my data to a drop down list using LINQ but I am getting the error "Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported. Instead…
user1365911
0
votes
1 answer

Trouble Saving object and Child Objects to the database?

I am having trouble to see what i need to correct or add to my controller in order to have my data saved to the database. See below what i have so far. Create method [HttpPost] public ActionResult Create(Team model) { if…
0
votes
1 answer

How to add a view for child action in a one-to-one relationship Given Create method below?

I have 3 entity classes; Team, TeamContact and TeamAddress. Relationships -Team one-to-one TeamContact -TeamContact one-to-on TeamAddress Create Method [HttpPost] public ActionResult Create(Team model) { if (ModelState.IsValid) …
Komengem
  • 3,496
  • 6
  • 31
  • 56
0
votes
1 answer

How To install ASP 4.5 when VS 2012 is installed

I want to install ASP 4.5 on a machine where Microsoft Visual Studio 2012 is installed. .net 4.5 is installed with visual studio. So on this machines there is no 4.5 folder in %Windows%\Microsoft.NET\Framework64 theres only v4.0.30319 which is .net…
Boas Enkler
  • 11,465
  • 12
  • 61
  • 128
0
votes
1 answer

Making vs2010 project dll compatible with visual studio 2012

I have created a project using vs2010 ,now i am using vs2012 but i am geting error as Error 1 The type 'Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.IInstrumentationEventProvider' is defined in an assembly that is not referenced.…
user1681166
  • 211
  • 1
  • 4
  • 14
0
votes
0 answers

modify the asp.net membership to support open id

I am currently setting up my mvc 4 web application with the out of the box membership functionality included in .net. I would like to expand this functionality to support open id providers such as facebook, twitter, my open id, dotnetopenid etc…
amateur
  • 40,217
  • 59
  • 181
  • 303