UnKnown Error
user10901
c# asp.net .net mysql 2013-12-3 17:15:20
I am stuck with a problem and do not have a single idea WTF is happening. I’ve got an C# web application that needs to communicate with a MySQL db using web services. I can use methods to insert data, but whenever I try to read anything (ExecuteReader or ExecuteScalar) it fails with this very strange message:The given key was not present in the dictionary.Now, the web service uses this class to communicate with the db:public class DatabaseHelper {private MySqlCommand cmd;private MySqlConnection
tcnolan
asp.net ssl https httpwebrequest credentials 2013-12-3 17:06:55
I am trying to make an HttpWebRequest from an ASP.Net page on a server called SV-REQ against another IIS7 server called SV-RES. When I set IIS on SV-RES to use Digest, Basic, or Negotiate and make the change to the credential cache object to use the appropriate method, the code executes fine and I get a valid response from SV-RES confirming that the user credentials are correct. However, when I set IIS to use “Windows Authentication” on SV-RES I get back a 401 error when using NTLM in the cred
Rup
asp.net asp.net-mvc medium-trust partial-trust 2013-12-3 17:06:23
I had developed portal on Asp.net mvc framework.I had hosted this site at godaddy hosting.I had a great problem on integrating third party dll i.e. NPOI (excel writer dll).It dispaly following error.Security Exception**Description**: *The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application’s trust level in the configuration file.***Exception Detail*s
chiccodoro
asp.net unit-testing error-handling moq 2013-12-3 16:51:09
Short Version:If I create a System.Web.HttpException as follows:var exception = new HttpException(403, “Forbidden”);I would expect the following methods to return these values, but they don’t:var code = exception.GetHttpCode(); // is 0 var msg = exception.GetHtmlErrorMessage(); // is: nullEdit: In fact GetHttpCode() returns the correct number when being called the first time, but returns 0 when being called a second time:var code = exception.GetHttpCode(); // is 403 code = exception.GetHttpCode(
Mido
c# asp.net silverlight silverlight-4.0 2013-12-3 16:44:11
How can I embed my custom Silverlight Video Player application into an Asp.net web application?I Tried to get more info. about this, it is the first time to deal with silverlight on Asp.net so i get searched for it in silverlight.comi’m already new to stackoverflow so, i donno well in its rulesanyway thanks Guys, this answers really help. 🙂
user2017208
asp.net mysql entity-framework 2013-12-3 16:32:36
My whole app is simply connect to mysql database and insert data using Entityframework. the code works well locally but when i upload in my amazon server, it just give me this error: you can see at http://fb1.131x.com/test_data.aspxDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Details: System.NullReferenceException: Object reference not set to an
Asif Rashid
asp.net xml vb.net web-services 2013-12-3 16:27:44
Guys I am getting the following error on sending xml based request to a server. Could you help me to understand the stack trace?The remote server returned an error: (500) Internal Server Error. Description: An unhandled exceptionoccurred during the execution of the current web request. Pleasereview the stack trace for more information about the error and whereit originated in the code.Exception Details: System.Net.WebException: The remote server returned an error: (500) Internal > > Server Error
user1400290
c# asp.net .net telerik sitefinity 2013-12-3 16:26:41
I recently Migrated my 3.7 sp4 project to 5.2, but I had issues while doing so. Currently, my user controls are not working after migration in 5.2 project.Below is the code:User Control Code:<%@ Control Language=”C#” AutoEventWireup=”true” CodeFile=”SiteMenu.ascx.cs” Inherits=”UserControls_Nav_SiteMenu” %> <%@ Register TagPrefix=”telerik” Assembly=”Telerik.Web.UI” Namespace=”Telerik.Web.UI” %><asp:SiteMapDataSource ID=”SiteMapDataSource1″ runat=”server” ShowStartingNode=”false” /&
kaiz.net
c# asp.net 2013-12-3 16:22:39
In my app, I have built a system where users can create picture galleries. Photos held in folders in the format of category_name/gallery_name/{pictures} on disk. Each uploaded photo is stored under relevant directory structure as given above.When trying to delete a category though, as well as deleting from the database, I want to delete relevant folders from the system too. When I first received the error message “Directory is not empty” I searched and found this solution:public static void Dele
fkm71
asp.net 2013-12-3 16:22:09
I have tried searching on here and Google for an answer to this but have yet to find one. I am using what I have found to be fairly standard for .NET 4.0 upload to Web API service. Here is the code:public HttpResponseMessage Post(){if (!Request.Content.IsMimeMultipartContent()){throw new HttpResponseException(HttpStatusCode.UnsupportedMediaType);}StringBuilder sb = new StringBuilder();string root = HttpContext.Current.Server.MapPath(“~/App_Data”);var provider = new MyMultipartFormDataStreamPro
user1867843
webforms devexpress aspxgridview 2013-12-1 20:35:40
I am pretty new to this, so please bare with me. I am debugging a website built on the WebForms model, using ASP, C# as codebehind, and SQL Express 2008 R2. I am trying to debug a page that uses an ASPxGridView, which is populated from the .aspx file, and the dataset is uses is created there as well. The data is selected using SelectCommand=”SELECT MachineID, ProgramNo, (CONVERT (VARCHAR(19), Start, 120)) as Start,(CONVERT (VARCHAR(12), Stop,114)) as StopTime, WorkCount, PartCount as TotalWor
accurec
c# dynamic data-binding devexpress inotifypropertychanged 2013-12-1 14:03:22
I have an extended binding list for my purposes:public class MyList<T> : BindingList<T>, INotifyPropertyChanged {private List<T> invalidObjectsList;public MyList() : base(){invalidObjectsList = new List<T>();}…public bool IsValid {get{return invalidObjectsList.Count == 0;}}…// I have similar method for deletionAddElementToInvalidList(T element){invalidObjectsList.Add(element);OnPropertyChanged(“IsValid”);}…// Stuff for the INotifyPropertyChanged interfacepublic even
WillNZ
asp.net-mvc razor devexpress sitemap 2013-11-29 2:18:30
I have a MVC4 project with a sitemap and a devexpress menu item on my _Layout page. I have a section in my siteMap for InwardsGoods and an index page where the user can QueryDeliveries. The QueryDeliveries is the same page as the InwardsGoods home(Index) page.<siteMapNode url=”InwardsGoods/Index” title=”Stock and Deliveries” description=””><siteMapNode url=”InwardsGoods/Index” title=”Query Deliveries” description=””/> </siteMapNode>When I try to run this it complains about “
Joel Coehoorn
c# .net visual-studio-2005 devexpress 2013-11-26 17:04:28
I’ve started working on an old project, where WinForms application uses DevExpress controls, for example DataGrid.The program window contains another multiple windows, and when I’m minimizing some of them, I get an Unhandled Application Exception with Attempted to divide by zero. in details. I want to know what causes this exception, but when I run the project in Debug mode in Visual Studio (2005 version), it does not react in any way to this exception.Is there a way to find out the reason this
bigodera
asp.net vb.net error-handling devexpress aspxgridview 2013-11-26 5:04:31
I have defined in my web.config a default error page:<customErrors mode=”On” defaultRedirect=”Erro_Padrao.aspx”> </customErrors>Now, I’m forcing an error in one of my pages to test the error page:TryDim var1 As Integer = 1Dim var2 As Integer = 0Dim result As Integer = var1 / var2Catch ex As ExceptionThrow ex End TryThe error occurs but nothing happens.Anyone?Thank you.Edit:I am trying this inside a method that is called by a DevExpress’ ASPxGridView component. The exception message i
Jon Egerton
c# asp.net devexpress 2013-11-25 1:18:00
I’m trying to get the text from the selected value in the combo box by using:lblMessage.Text = cmbArchivoModificado.SelectedItem.Text;I’ve already set the valuefield and textfield on the combobox settings, but visual studio keep telling me this:nullreferenceException was unhandled by user code.Object reference not set to an instance of an object.
Mikhail
asp.net devexpress 2013-11-4 14:33:24
ihave a dev ex file manager control in my aspx page . I have set the image folder to the control but the file manager control is disabled. below is my aspx code file.<dx:ASPxFileManager ID=”fileManager” runat=”server” Width=”700px” Height=”500px”><Settings RootFolder=”~\ImageSlider” ThumbnailFolder=”~\ImageSlider\products” AllowedFileExtensions=”.jpg, .jpeg, .gif, .rtf, .txt, .avi, .png, .mp3, .xml, .doc, .pdf” InitialFolder=”~\ImageSlider\products” /><SettingsFileList View=”Thumb
sagesky36
javascript jquery html checkbox devexpress 2013-10-21 12:06:06
I want to be able to select/unselect checkboxes for a specific column in a grid.It gets an error inside the JS “onUPCSelectAll” function on the eval statement as follows: JS runtime error: Object doesn’t support property or method ‘SetChecked’During debugging, I am able to see that my id value is:$(this)[0].id = “PrintCallbackPanel_selectAllUPCCheckBox”My source code does indeed have this particular id set up, but, you can see where the id value actually places an “_S” onto the end of the contro
Mitsosp
jquery asp.net devexpress vb.net-2010 2013-9-30 1:48:35
I have a problem with the following code block:Dim scriptHere As System.Web.UI.HtmlControls.HtmlGenericControl = control.Page.FindControl(“scriptHere”)Dim controlID As String = “”Dim disabled As String = IIf(isDisabled, “true”, “false”)If TypeOf (control) Is ASPxEditBase ThencontrolID = control.IDEnd IfTrycontrol.ReadOnly = isDisabledDim script As String = “”script &= “<script type=””text/javascript””>” & vbCrLfscript &= “// <![CDATA[” & vbCrLfscript &= “try {” &
user466663
asp.net gridview devexpress 2013-9-12 4:06:59
I have two asp.net devexpress gridviews in master/detail configuration. I expand a master row to display the child rows and do manipulations on the child rows such as edit, add new and delete rows. After that I want the parent gridview to collapse and both the gridviews to refresh with new data. Please let me know how could I do it. On devexpress site I see the mention of CollapseRow and ExpandRow javascript clientside methods. But couldn’t find any sample code describing how to call those.Thank