0 answers

ASP.NET Save Image in ashx handler

I have a simple handler (ASHX) which receives a base 64 encoded image and I want to save that image. Here is the code: Sub ProcessRequest(ByVal context As HttpContext) Implements ...

0 answers

ASP.NET MVC getting the date from an implemented datepicker

I've implemented a working datepicker in a form, which is part of my asp.net mvc project. However, I am having trouble obtaining the input value. For the other attributes in the form, I've been using ...

1 answer

Can we use global.asax file in DotNet class library projects

Can we use Global.asax file in .NET Class Library projects? Because I have not seen anywhere that Global.asax file can only be used only with Web based applications. The code of Global.asax file are ...

1 answers | 19 mins ago by user2147315 on Stack Overflow stackoverflow.com
1 answer

Why Controller.UpdateModel doesn't validate model with globalized validation attributes from a unit test?

I created an ASP.NET MVC 5 application, with the following model class using a globalized Required validation attribute on its Email property: public class Person { ...

1 answers | 20 mins ago by eXe on Stack Overflow stackoverflow.com
1 answer

JSON parsing using JSON.NET windows phone

I'm trying to parse 7 day forcast from openweathermap. I catch a null reference exeption in the line foreach (JObject array in JsonRequest["main"]["wind"]["name"]["weather"]), but I don't understand ...

1 answers | 21 mins ago by Youhy on Stack Overflow stackoverflow.com
0 answers

Writing a single row to a SQL Server database using ASP.NET MVC 5 and Visual Studio 2013

I apologize if I offended someone with my last post, I found some pointless code, and tried to update it, which caused my rep to go down two points. So whatever I post from now on, I will not change. ...

0 answers

FileSystemWatcher not responding to file events in folder shared by virtual machine and its host

I have a dnx console application on a Ubuntu VM that watches a folder which is shared with the host OS (Windows 8.1). When file changes occurs in the shared folder on the Ubuntu VM, the console ...

1 answer

Prevent INSERTing duplicated references to category table with Entity Framework

I'm working with a Database First model with Entity Framework 5. In particular, we have one table with a list of predefined categories that are used as reference to a second table of items. TABLE ...

1 answer

Build failed: cyclic build dependencies are not supported

I've been trying to build a project in MonoDevelop, but it bitches about a project having a cyclic build dependency. Project1 is the main project. Project2 is the one which has the cyclic dependency. ...

1 answers | 28 mins ago by Alexandre on Stack Overflow stackoverflow.com
1 answer

Verify Access Token - Asp.Net Identity

I'm using ASP.Net Identity to implement external logins. After user logins in with Google I get google's external access token. I then make a second api call to ObtainLocalAccessToken() which trades ...

1 answer

C# TargetInvocationException and FormatException

Ok, I have a really weird situation happening here. First I need to give some background. I'm creating AI agents for a game that was made on the XNA engine. The way things are set up, people are ...

0 answers

SqliteConnection Trace event refuses to fire

I have used NUGET to install the Sqlite Core package into my c# project using: >Install-Package System.Data.SQLite.Core I create a database connection as follows: var data = new ...

0 answers

XmlDataProvider Source hot to direct to Environment.SpecialFolder.CommonApplicationData

My App.xml contains <Application.Resources> <XmlDataProvider x:Key="xmlData" Source="C:/ProgramData/MyApp/MyData.xml"/> </Application.Resources> Unfortunately this does not ...

3 answers

How to reference to assembly in mvc at runtime

In my Asp.Net MVC application, i have some view file (.cshtml) which has reference to an external library which it will be loaded at runtime. so after app started, i load the assembly by Assembly.Load ...

0 answers

Can't seem to get class library projects to build after upgrading aspnet 5 from beta4 to beta5

after upgrading from aspnet beta4 to beta5 I have a solution with multiple class library projects and a single web app. I'm getting all kinds of errors. So I started over creating a new web app ...

0 answers

'System.UnauthorizedAccessException' but file is still being copied

I have code that I am trying to use to backup the host file. When I run the code, I get the following error: An unhandled exception of type 'System.UnauthorizedAccessException' occurred in ...

46 mins ago by greyspace on Stack Overflow stackoverflow.com
1 answer

Need help to fix my inner join sql statement and csharp code

i have 2 table , what i am looking for is: JobApplic table contain: ApplicNum, JobNum, UID "this is the employer", Jobtitle, AplicUID " this is job seeker" CVs table contain: CVNum, UID ...

1 answers | 48 mins ago by Wiliam J on Stack Overflow stackoverflow.com
1 answer

how to use data annotations to convert int ID to string ID

I am using Entity Framework code first approach and would like to have a class with a string that increments as my Id. I have the following code in my sql server that will do this for me but I cannot ...

1 answer

Pass input text to controller mvc

I have a list of teams on my index page. I'm trying to pass the text of an input(type text) from the index view back to the index controller, to reload the index page, this time only displaying items ...

1 answer

Get TableName of Entity while using Fluent API

I'm using fluent api to change the names of the tables for my entities like: public class TestMap : EntityTypeConfiguration<Domain.Test> { public TestMap() { ...

1 answer

C# Send unicode SMS using UTF8 encoding

I am using http api to send sms. I have a following php code to send unicode sms <?php $api_key = 'XXXXXX'; $contacts = '97656XXXXX,98012XXXXX'; $from = 'DEMO'; $sms_text = 'Hindi - हिंदी , ...

1 answers | 1 hour ago by Ajay Punekar on Stack Overflow stackoverflow.com
1 answer

WPF Nesting ItemsControls

I've just began meddling with ItemsControls/Binding, and I've encountered an issue. I've looked at various tutorials regarding nested ItemsControls, so I'm not positive what it is that I'm doing ...

4 answers

ASP.net MVC - One ViewModel per View or per Action?

Is it a better idea to have a single ViewModel per view or one per controller action? Example: public ProjectController : Controller { public ActionResult Edit(int id) { var project ...

4 answers | 1 hour ago by Dismissile on Stack Overflow stackoverflow.com
1 answer

Sending Image in Base64 String and receiving in webservice via kSoap

i am sending an image in byte[] and 3 strings to a webservice usingksoap but its not working for me , i am not sure where i am wrong, in sending image from Android and at receiving end, i am putting ...

5 answers

How to Get Clicked ListView Item

I am having trouble getting the clicked item in a ListView MainPage.xaml <ListView ReorderMode="Disabled" SelectionMode="Single" ...

4 answers

What is the use/advantage of using CommandBehavior.CloseConnection in ExecuteReader()

Can anyone tell me what is the CommandBehavior.CloseConnection and what is the use/benifit to pass this as a parameter in com.ExecuteReader(CommandBehavior.CloseConnection)?

4 answers | 1 hour ago by Vijjendra on Stack Overflow stackoverflow.com
2 answers

How to retrieve historical events after changes to Domain Event structure

Given event store with fields: AggregateId : integer Payload : blob Version : integer Which contains events based on: public class OrderLineAdded { int Id; short Quantity; } ... and ...

1 answer

Migrating existing users from MVC 4 SimpleMembership to MVC 5 ASP.NET Identity

I have an MVC 4 site that currently implements SimpleMembership. In the next iteration of the site I would like to upgrade to MVC 5 and ASP.NET Identity. Both sites have the same machine key in ...

1 answer

Fast XML (SVG) Read?

I have an XML (an SVG actually) file, 4000 lines, around 700 individual nodes, with one significant attribute each. I want to preload the data, and populate actual C# runtime model graph with the ...

1 answers | 1 hour ago by Geri on Stack Overflow stackoverflow.com
3 answers

Why does checking this string with Regex.IsMatch cause CPU to reach 100%?

When using Regex.IsMatch (C#, .Net 4.5) on a specific string, the CPU reaches 100%. String: ...

3 answers | 1 hour ago by Nir on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3