Questions tagged as 'c#'

0
answers

File without extension

I have an application that streams an audio file on a page, but when trying to download it the file comes with no extension. Here is the code I use: public HttpResponseMessage Get(string filename) { AudioSteam audio = new Aud...
asked by 06.07.2018 / 15:54
1
answer

Pass a property to a Label on xamarin

I need to make the Label of my code receive the value of a property. <Grid BackgroundColor="Black"> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> <ColumnDefinition>...
asked by 06.07.2018 / 20:46
0
answers

Entity Framework 6 Many to Many: PK validation problem when adding

Good morning guys, I'm breaking my head here and I still can not fix it. I have two entities, PropertyDetails and PropertyDetails, with relationship n to n. I have been populated, so when I am going to register the ImovelDetalhe, I select thr...
asked by 13.07.2018 / 17:55
0
answers

How to downgrade the version gave a Lucene.net index

Next, you had an index file Lucene.net in the Lucene.Net.Util.Version.LUCENE_29 version, ie the DLL is version 2.9. However a service ended indexing a new object in Lucene Lucene.Net.Util.Version.LUCENE_30 ie DLL is version 3.0....
asked by 20.07.2018 / 22:18
1
answer

Random () generating repeated numbers

I'm developing a small application to import XML, which searches for the items in the note and performs the search of the same in% of the internal% of the company. When the item is not found, the link is done manually and this information is sav...
asked by 25.03.2015 / 13:35
0
answers

Select with entity does not work

I have this method that makes me a select but it does not return anything to me. [WebMethod] [ScriptMethod(UseHttpGet = true)] public JsonResult GetContratos() { List<object> resultado = new List<object>(); var contratos...
asked by 13.07.2018 / 16:30
0
answers

JSon PHP Converter for C #

Hello, I'm having trouble converting a PHP API to be used in C #, I can connect to the API but I can not send data, could anyone help me? Follow the PHP API: $process = curl_init("URL API"); curl_setopt($process, CURLOPT_USERPWD, "USUAR...
asked by 13.07.2018 / 17:26
1
answer

Error deleting registration with Entity Framework when doing entity mapping

When I try to delete a record from the mapping of Mapper (Model to Domain) I get the following error as a result of E.F :    failed because another entity of the same type already has the same primary key value. But if I do a...
asked by 04.07.2018 / 20:29
1
answer

Error 174 - Event will only be accepted after the employer's compulsory start date for eSocial

I wonder if anyone else gets this error when sending the "S-1000" to the restricted production environment, and how it can be solved. I'm finalizing the structure but I can not send it successfully once. <retornoEvento> <eSocial xml...
asked by 04.07.2018 / 19:14
1
answer

Problem with Razor

I have a problem that I can not identify what it is causing. When trying to enter the log view, an "internal server error" occurs and the message below appears. I'm using ASP.NET Core 2.1.1    InvalidOperationException: Can not conspire se...
asked by 10.07.2018 / 05:33