1 answer

.NET application memory usage Visual Studio 2005

I've got a C# application running on Windows CE smart device and I recently added a new graphing option which results in a "OutOfMemory" exception after running for a few hours. How do I find what is ...

1 answer

@Html.DisplayFor does not show property of strongly typed ListObject which is a property of model

I am having my model as ClassA below : public class ClassA{ public List<ClassB> bs {get;set} } while ClassB: public class ClassB { public Datetime? date{get;set;} } I am trying to ...

1 answer

Convert Sql query to linq contains order by clause

tableA contains list of recent items that user has accessed, user has option to pin/remove the list. What I am trying is the list has to order by the below query. select * from tableA order by ...

1 answers | 2 mins ago by Pintu Paul on Stack Overflow stackoverflow.com
0 answers

C# code not catching SEHExceptions

I have a C# application that invokes a managed C++ DLL that deliberately accesses to an invalid address; I enabled SEH Exceptions in my C++ project, I added a _se_translator_function into my C++ code ...

1 answer

Azure Storage Queue: vs2013 shows queue as empty although peek shows a message while debugging from local machine

I have a strange problem. When I perform a peek on my storage queue, it shows there is a message on the queue after I insert the message. However, if I use the server explorer and drill down to the ...

1 answer

How to use reflection to cast a control as its type in order to modify properties?

Here's an example of what I currently do: book enable = false; foreach (Control c in controlList) { if (c is MyTextBox) { (c as MyTextBox).Enabled = enable; } if... ... } ...

2 answers

How to combine the product when the same and when add in a list box?

How to combine the product when the same? How to get the sum of the price? If not the same a product it will add in a list box. If the same the product it will combine and the sum of the price it will ...

2 answers | 6 mins ago by Mercy on Stack Overflow stackoverflow.com
0 answers

Issue with drawing routes on Windows Phone 8.0 maps - 0x8004231C

I want to create an app which shows the route from my location to some desired point. The problem is it sometimes works (for some locations the route is drawn) but in some cases I get this error: ...

0 answers

c# snake game list of button

hi i am already confused with the program here's the code : public partial class Form1 : Form { struct movedata { public Button s; public Point pos; }; struct snake ...

1 answer

error in objConnect.Sql = Properties.Settings.Default.SQL;

I have project for my graduate and i need a database I wrote this code {using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; ...

1 answers | 17 mins ago by rana adel on Stack Overflow stackoverflow.com
0 answers

How to properly add new items to a collection?

Here I am trying to store loads of datapoints of the custom WindDataPoint type. However, I recently found out that the whole time, my code has been creating tens of thousands of duplicate data ...

3 answers

How can I write to the root element?

When I use the following code I can write successfully to the XML file however it will write outside the root element. StreamWriter sw = File.AppendText(Environment.CurrentDirectory + ...

3 answers | 26 mins ago by Neccta on Stack Overflow stackoverflow.com
2 answers

Entity Framework:Why the collection type of entity class need to be instanced in the default constructor?

I am using Visual Studio to build a code first model of NorthWind database automatically. I have some questions. I found that if the entity class has a collection, then the is collection always ...

1 answer

Trying to connect to the Dropbox API v2 using C# Receive 400 error on all attempts

The new Dropbox API documentation is at: https://blogs.dropbox.com/developers/2015/04/a-preview-of-the-new-dropbox-api-v2/ I'm trying to execute a simple metadata call, but am having very little ...

1 answers | 30 mins ago by Joel Caples on Stack Overflow stackoverflow.com
1 answer

Publish to Azure Error - Error : '', hexadecimal value 0x0F, is an invalid character. Line 1, position 285

I am trying to publish to Azure, but I am getting an error when the publish task occurs. Transformed Web.config using C:\Users\Bootcamp\Documents\Visual Studio ...

1 answer

Instance of C# class with NLua

I'm trying to create an instance of a C# class within a lua file Using NLua Here's my code. class Program { public static void Main (string[] args) { Lua lua = new Lua(); ...

1 answers | 36 mins ago by Dusty on Stack Overflow stackoverflow.com
2 answers

“Only arguments that can be evaluated on the client are supported for the String.Contains method”

public static void MyFunction(MyErrorClass err) { var query = from filter in DataContext.ErrorFilters select filter; query = query.Where(f => err.ErrorMessage.Contains(f.ErrorMessage)); ...

2 answers | 40 mins ago by Steven on Stack Overflow stackoverflow.com
2 answers

Access database syntax error in update into statement

First of all I know password is a reserved type of Access Database. But I have read a post that you can put [password] like that and it will work. But its not working. I have tried many ways and ...

1 answer

getting listbox.selectedindex by clicking on checkbox

this is my user template in listbox. i want to have "listbox.selectedindex" on clicking any checkbox of listbox. i want to knw of which row,checkbox is selected.like on click event of checkbox,it ...

2 answers

What should i do if i want to create multiple overloads of CRUD methods?

If i have a class which represent a mapping to a specific table in my db in somehow .. This class contains about 30 properties . I have created the CRUD Methods . and find myself need to another ...

2 answers

Converting a method to use any Enum

My Problem: I want to convert my randomBloodType() method to a static method that can take any enum type. I want my method to take any type of enum whether it be BloodType, DaysOfTheWeek, etc. and ...

2 answers | 49 mins ago by BloodHound27 on Stack Overflow stackoverflow.com
1 answer

How do I store my numbers into an array?

In my code, I am trying to generate 5 numbers. If any of the numbers equal to 4, then I want to store that 4 into an array. Currently I'm having trouble and my code will not store the 4 into the ...

1 answers | 53 mins ago by Daniel on Stack Overflow stackoverflow.com
3 answers

Web API Gzip not being applied

I have added the web.config entry to enable gzip compression based on this S/O answer Enable IIS7 gzip. I then checked the Chrome Developer window while loading an ASPX page and saw the header in the ...

1 answer

Membership.GetUser -> Membership doesn't contain a definition for 'GetUser'. What have I missed?

MembershipUser newUser = Membership.GetUser(CreateUserWizard1.UserName); I get a red line under GetUser and when I hover over it, a message appears: Membership doesn't contain a definition for ...

1 answer

Get & Set MySQL Select

What am i missing here, it seems the main form is not calling the method from tsDBCon class and not connecting to the database, i need help, i'm new to get:set properties, am i doing it wrong or what? ...

1 answers | 1 hour ago by Kevin Rodriguez on Stack Overflow stackoverflow.com
1 answer

Delegate Action Lambda with class Person

I have the following problem: I want to make a Lambda, which should print the result of the class Person. The print should look something like this: ResetName, after (Name ==null) = True But I get an ...

1 answers | 1 hour ago by viddrawings on Stack Overflow stackoverflow.com
0 answers

Can't apply CalendarDayButton Style

I am trying to style the blackout day of the DatePicker. I figured I need to edit the CalendarDayButtonStyle and can get it working in a test project, but when I move it to my resource dictionary the ...

0 answers

Unity 5 object collision not detecting

So I've just started using Unity and new to C#. I'm running into a problem where my sphere (player) wont detect collision as it touches other objects (runs right through). I wanted to have the ...

1 answer

C# String Concatenation OutOfRange error

I'm utilizing Get String functions from a "Label" class to put together lines to print on a bitmap. The program compiles fine, and the previous form passes the LabelQueue properly (it would appear ...

4 answers

Dependency Injection (using SimpleInjector) and OAuthAuthorizationServerProvider

New to Dependency Injection, so this is probably a simple matter, but i have tried and cant figure it out, i am using Simple Injector. I have a WebApi that uses SimpleInjector perfectly fine, now i ...

15 30 50 per page
1 2 3