user2806570

1

votes
0

answer
78

views

FileSystemWatcher within .NET MVC Deployed Issue

The code below sits in the Global.asx file within my ASP.NET MVC 5 project. It runs perfectly and detects the file changes when debugging and running through the IDE but when published to an IIS server nothing runs. Any ideas on how to get this started? I assumed as its in the application start that...
user2806570
1

votes
1

answer
100

views

Dynamic currency in MVC 5 from database

My current model to store a specific vendors currency is show below where the VendorCurrency value will be like 'en-US' or 'en-CA' and so forth. Currently I am using the tag in the Web.Config which sets the default currency globally but the requirement to make the site multi-currency has come about...
user2806570
1

votes
1

answer
1.2k

views

Pass ViewBag with List to view for foreach loop

I am passing a query result from the controller to a view through a Viewbag but when looping through the Viewbag result I get the error 'object' does not contain a definition for 'Ratings' even though it does show up when debugging. I am not using a model for the query so I cannot cast the list. How...
user2806570
1

votes
1

answer
369

views

ASP.NET MVC 5 detect new file end execute function in background server side

I need to to be able to detect a .csv file which will be dropped on an FTP Server. When the file is transferred it should trigger code to read the file and then upload all the information from the .csv file to a SQL Server. After the file is transferred it should then run a few other functions which...
user2806570
1

votes
1

answer
629

views

Partial Views in another Controllers View MVC5

Im new to using partial views in mvc and for some reason could not get this working Notes.cshtml @model IEnumerable @foreach (var item in Model) { @Html.DisplayFor(modelItem => item.Information) @Html.DisplayFor(modelItem => item.DateCreate) } This is where I'm trying to call the partial view in ano...
user2806570
3

votes
2

answer
2.4k

views

List of registered users with details on MVC 5

I would like to know if possible how to get a list of registered users and their details in MVC 5? I'm sort of trying to get all users outputted to a tabular form just like when creating controllers and views for other data sets where they can be edited and so forth. I'm using ASP .Net Identity to...
user2806570
1

votes
1

answer
218

views

Cuda global to shared memory and constant memory

I just started learning cuda and I'm having an issue converting some code to use shared memory and another to use constant memory, for comparison purposes. __global__ void CUDA(int *device_array_Image1, int *device_array_Image2,int *device_array_Image3, int *device_array_kernel, int *device_array_Re...
user2806570
2

votes
3

answer
126

views

SQL Query to LINQ for MVC with SUM and IS NOT NULL

Can someone please help me convert this query to LINQ as I am new to using Linq which will then be used for google chart information. Select Question.SubSectionName, SUM(Answers.RatingAnswer) AS Ratings FROM Question,Answers,Response,Section Where Answers.QuestionID = Question.QuestionID AND Answ...
user2806570
2

votes
1

answer
194

views

Machine Learning - Features design for Images

I just started learning about machine learning recently and have a project where I have to develop a program for QR code localization so that a QR code can be detected and read at any angle of rotation. Development will be done in Python. The plan is to gather various images of the QR codes at diffe...
user2806570
1

votes
1

answer
722

views

ASP.Net Core 2.1 register custom ClaimsPrincipal

I am creating a Windows Authentication app but the roles sit within the custom database and not on the AD so I created a custom ClaimsPrincipal to override the User.IsInRole() function that usually looks at the AD for roles. However, when running the application it still seems to be using the origin...
user2806570
2

votes
0

answer
85

views

Execute Task.Run() in ASP.NET ActionResult without waiting for result

Below is the function where I am trying to execute a function in the background and then carry on without waiting for a result from it. When debugging the task itself is executed but the actual function within it does not. The rest of the code then carries on like normal. What could be the issue as...
user2806570
4

votes
2

answer
591

views

ASP.NET Core 2.1 Custom RoleProvider with Windows Authentication

I am migrating applications away from the ASP.Net MVC 5 framework to the new .Net Core 2.1. I used Windows Authentication with a Custom RoleProvider in the MVC 5 Projects as shown in the link below. ASP.NET MVC How to create a custom role provider How do I accomplish the same in Core 2.1 as it does...
user2806570
1

votes
1

answer
44

views

Regular Expression starts with “AB” or “EX” and only uses alphanumeric values

This is what I've come up with so far but it doesn't seem to work [RegularExpression('/^(AB|EX)?([a-z0-9])/i')] I understand that ^(AB/EX) means start with and the /i is for case invariant. How can I add in the alphanumeric characters for the rest of the string?
user2806570