asp.net,asp.net-mvcView the original page-Collection of common programming errors

UnKnown Error


  • Santhosh
    asp.net iis 2014-1-30 15:19:01
    I have hosted some 5 applications on IIS in my server.After sometimes I am getting System.OutOfMemoryException error due to out of memory in ASP.NET Temp Folder.Is there any way to clear it automatically or any setting for this.

  • Niels Bosma
    asp.net javascript disqus 2014-1-30 14:52:31
    Anyone having problems with discus in IE? Works fine in FF but reports problem with thread.js in IE. (runtime error)Disqus works fine on other sites in IE, but non on mine. Maybe ASP.NET conflict.I have jQuery and addthis on the page but if I comment these the problem remains.

  • Mohamed Naguib
    asp.net asp.net-mvc razor 2014-1-30 14:36:40
    I have a select list like that one <select id=”select-product”><option>Select a Product</option></select>I fill in this list using Ajax at runtime, now I want to convert it to a razor view and I will include the data in Viewbag before redirecting to the page.How can i do that ?

  • John
    javascript jquery asp.net html 2014-1-30 14:31:54
    Using a repeater to display a list. In this list are comment box and submit btn. I want the user to enter data and click the corresponding submit btn. ERROR: JavaScript runtime error: Sys.Net.WebServiceFailedException: The server method ‘CommentBox’ failed with the following error: System.InvalidOperationException– Invalid web service call, missing value for parameter: ‘CommentBoxContents’.

  • G . R
    asp.net asp.net-mvc-3 caching appfabric ncache 2014-1-30 13:57:29
    Our site developed in ASP .NET is expecting a 1000 concurrent users and its performance is degrading by increasing number of listings in DB. What kind of a caching(like NCache or Appfabric) will be the best to reduce the load of DB and increase the performance for more concurrent users.Please give me some suggestions.

  • driis
    .net asp.net javascript asp.net-ajax 2014-1-30 12:56:52
    i have a multiple textboxes in repeater and i will enter value in those textboxes at runtime. and i want sum of all value entered in those textboxes in one label.i want to do this thing using java script. so can u please help me.

  • Hemanth
    c# javascript asp.net 2014-1-30 12:26:42
    I have already created add/delete rows.. if i click on addRows new rows will be added and when i click DeleteRows the row will be deleted..BUT my question is when new rows are added n the entered data in new rows need to inserted into DAtabase…

  • D Infosystems
    asp.net vb.net 2014-1-30 12:23:58
    How to show pop up menu from database in gridview on each gridview row items ?Example of this is :http://www.redbus.in/Booking/SelectBus.aspx?fromCityId=733&fromCityName=Delhi&toCityId=757&toCityName=Manali&doj=26-Dec-2010&busType=AnyMove your cursor to Departure time and arrival time…a want this type of popup in gridview items….which fetch entries from database..

  • Ayyash
    asp.net ajax upload httprequest 2014-1-30 12:22:24
    Got a question: how far can we go without a form being implemented around the master page in a .net project? I hate that form tag it stops us from having multiple smaller forms and thus we cannot use an “edit-in-place” feature properly, where i dont want to send all fields, just a few of them, and an ajax solutions is all good until we hit the wall of uploading a file, DAMN uploads, DAMN .net, DAMN HTML, does anyone know a way out of this ditch? Question on the side, how on God’s earth is postin

  • mxmissile
    asp.net webforms 2014-1-30 12:20:51
    Is it possible to set properties of an control inside a loop without using code behind? For example how can I set the Text property of the LinkButton inside the following loop at runtime, color being a POCO? <table><%foreach (var color in GetColors()) {%><tr><td><asp:LinkButton runat=”server” Text='<%# ??color.MyProperty?? %>’ /></td> </tr><%}%></table>

  • oliverdejohnson
    c# asp.net-mvc 2014-1-30 15:05:14
    I’ve been struggling with this for days now. googling and trying diff things but with no headway.I’m doing an MVC project but i need to use services from another project(web project). I did build the web project and referenced its dll in the mvc project. I can access members from the referenced project and everything compiles just fine.However, the trouble is at runtime at the point where my code is calling a class of the refereced project and its throwing this “could not load type” whatever!Thi

  • Mohamed Naguib
    asp.net asp.net-mvc razor 2014-1-30 14:36:40
    I have a select list like that one <select id=”select-product”><option>Select a Product</option></select>I fill in this list using Ajax at runtime, now I want to convert it to a razor view and I will include the data in Viewbag before redirecting to the page.How can i do that ?

  • teresko
    asp.net-mvc asp.net-mvc-3 2014-1-30 13:44:22
    I am working on MVC3. not sure whether its the right question but it keeps on bothering me always.I have a generic model used by multiple views. If i make any changes to the model variables for example name change it does not reflect in any of the views nor does it throw any compile time errors. The errors are thrown only at run time. This can cause a serious issue if model changes are not checked for in each view manually.Is there any way to overcome this manual changes in the view?

  • Saan
    asp.net-mvc iis-7 dll 2014-1-30 13:27:07
    At work we have about 30 legacy sites which run from a common set of code, currently these sites are in cold fusion. For this common code we have one project, then in IIS we set up a virtual directory to include the common code into each site. This works great, as changes to core logic can be made in one place, and its replicated through all the sites. And as all of our sites are hosted on the same servers, we can also just deploy the common code and all the live sites are updated, we don’t need

  • Hellfire
    asp.net-mvc visual-studio-2008 debugging 2014-1-30 13:02:08
    I’m running Visual Studio 2008 Professional SP1 on Windows 7 Ultimate x64 RTM. I’m using the ASP.NET MVC that you get from the Web Platform Installer. When I step through my program and pause on any line for longer than a few seconds the debugger suddenly stops and the following message is printed in the Debug Output:The program ‘[4232] WebDev.WebServer.EXE: Managed’ has exited with code 0 (0x0).It does not happen 100% of the time, but it’s often enough to be extremely frustrating. This behav

  • teresko
    asp.net-mvc asp.net-mvc-migration 2014-1-30 12:28:46
    I’ve been in the process of attempting to deploy an ASP.NET 4.0 (webform) project on a server that is running an ASP.NET MVC 1.0 application in it’s web-root. I was slowly making progress, but hit a wall, so I decided to recompile the MVC app against version 2.0 of the MVC framework and 4.0 of the .NET framework. I used a few tools to do so.The project appeared to successfully convert, but now it fails to compile. Specifically, it appears that there is a problem with System.Web.HttpContextBas

  • thecodeparadox
    jquery asp.net-mvc intellisense t4 2014-1-30 11:21:00
    Is there any way to get jQuery Support / Intellisense in T4-Templates? In normal js-Files, I can write/// <reference path=”/Scripts/jQuery/jquery-1.6.2-vsdoc.js” />But how to do it in T4-Templates?EDITThe reason why we want to do so: because we seperated our JavaScript in external js-Files. Doing so means that it is no longer possible to use c#-Code in our JavaScript to avoid magic strings. For example:Instead of writing:$j.ajax({url: ‘/Home/Edit’type: ‘POST’,dataType: ‘html’data: {},error

  • alexanderb
    asp.net asp.net-mvc vb.net webactivator 2014-1-30 9:04:54
    In order to make Elmah.MVC package work in VB.NET projects as well, I’ve create ASP.NET MVC3 VB.NET application added WebActivator Nuget package (v.1.5.1), in App_Start folder inserted simple code, like[assembly: WebActivator.PreApplicationStartMethod(typeof(Elmah.Mvc.Web.App_Start.ElmahMvc_Start), “Start”)]namespace Elmah.Mvc.Web.App_Start {public class ElmahMvc_Start{public static void Start(){Elmah.Mvc.Bootstrap.Initialize();}} }The project built fine, but I never hit Elmah.Mvc.Bootstrap.Init

  • teresko
    jquery asp.net-mvc 2014-1-30 5:44:30
    I was using jquery 1.4.4.min the following script worked. $(“:INPUT”).change( function(){dataChanged=true; $(this).addClass(“box2”);});I had to change to jquery 1.5.1.min and now I am geting this errorMicrosoft JScript runtime error: Syntax error, unrecognized expression: INPUTThanks in advance.

  • MikeSmithDev
    jquery ajax asp.net-mvc json 2014-1-30 4:31:37
    I am using below stuff to post list of object to controller ajax post method.jQuery stuff:var values = []; values.push(rowData1); values.push(rowData2); values.push(rowData3);var data = JSON.stringify({installationControls: values });$.ajax({url: ‘/ControllerName/fin’,type: “POST”,contentType: “application/json”,data: {data: data},success: function () {console.log(‘success!!’);} });Please suggest me what is wrong.. controller method:[HttpPost] public JsonResult fin(object s) {//……………..