Questions tagged as 'c#'

1
answer

IIS - Capture user logged on machine without using Windows authentication

I have a site that uses the user logged in to the computer to validate which features it will have access to within the site. To capture the user logged in to the machine I am using the code below, I had to change the authentication of IIS for W...
asked by 26.12.2017 / 16:50
3
answers

Error with vectors c # / {"Object reference not set to an instance of an object."}

Friends I'm coming in php and starting to develop in C #. The differences are many ideas that I have when I will apply give errors such as the problem that I have a combobox html that dynamically filled with database data, I thought separates th...
asked by 26.12.2017 / 21:17
1
answer

error while loading a ProgressRing (Mahapps)

I have a ProgressRing in a Page in WPF that needs to be displayed while the Grid is loading (Purpose: Show the user who is loading) and then be deactivated when the load of the Grid is completed. But it is giving this error: public Client...
asked by 26.12.2017 / 18:22
0
answers

Image Capture via WebCam C #

I have an application developed with Windows Form in C # that captures image through the webcam installed on the computer. This application has several forms, and one of them is the image capture. When I finish capturing the image and closing...
asked by 20.12.2017 / 14:40
0
answers

A referential integrity constraint violation has occurred

I'm getting this error every time I try to update an object in my SQL database via EntityFramework , the error is as follows:    A referential integrity constraint violation has occurred: Property values that define referential constraints a...
asked by 04.01.2018 / 11:35
1
answer

Images disappearing from my application using Xamarin Forms

I made an application using the Xamarin Forms Cross Platform, at first I only need the android version of it so I do not care about IOS and Windows. The application is working properly when I test it on one of my Xiaomi Redmi 4x cell phones, but...
asked by 03.01.2018 / 20:59
0
answers

Return Image (Database Blob)

I can not return the images from a controller. Below I explain all the encoding: I created a controller, and a view for this controller that returns the image that is in an Oracle blob field. It worked, usually with the controller and view be...
asked by 04.01.2018 / 00:45
0
answers

Error Invalid / Unknown / Unsupported format

I have the following line of code: new PrintPDF(ConfigurationManager.AppSettings["Comprovante"]); What is stated in app.config : <add key="Comprovante" value="C:\Client\Resp\Comprovante.txt" /> That goes to the PrintPDF m...
asked by 21.12.2017 / 19:42
0
answers

Binding wrong on select ASP.NET MVC option

When I give a form post to Controller , the binding on asp-for="VehiclePlate" takes value from option from select ( @vehicle.Category ). However, I want to get the text of option of select...
asked by 21.12.2017 / 17:02
1
answer

Do Load the photos from a specific directory in a texture c #

I'm doing a new application and I need to load a photo from a specific directory on the computer in this case c:\Biosearchassets to a gui texture in unity3d I could find an example but it uses texture2D and I want to load 3D gui te...
asked by 21.12.2017 / 21:11