Most voted ".net" questions
The Microsoft . NET is a set of libraries and functions that are part of the Basic Class Library (BCL), such as user interface functions, data access, connectivity, cryptography, web development, mathematical algorithms, and network communication.
Learn more…2,689 questions
Sort by count of
-
0
votes0
answers65
viewsStrange text appearing on page after saving a file
I’m creating a C#text editor, but when I saved a file .html, on the page appeared this error Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;…
-
0
votes1
answer2646
viewsConsume REST windows Forms
I’m trying to consume a REST JSON, I’m developing a module for a legacy system in Windows Forms, it’s not working, nothing returns. Follows the code: var client = new…
-
0
votes1
answer121
viewsException error when authenticating login with null values - Simplemembership - ASPNET MVC
I developed a project on Asp.net mvc5 of a course I’m doing, which is accusing the following error of exception when authenticating the login menu when I enter no data in the form fields and step…
-
0
votes1
answer193
viewsSplit List with more than a thousand lines - . NET
I’m getting an error while performing this select sb = New StringBuilder sb.Append(" SELECT ") sb.Append(" SE.NU_SERIE_NF, ") sb.Append(" SE.NU_NF, ") sb.Append(" SE.DH_ENTREGA, ") sb.Append("…
-
0
votes1
answer575
viewsI would like to check in the customer register if the code entered already exists. How do I?
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AtFinal { class Program …
-
0
votes1
answer110
viewsGetwindowtext in C#
How can I use the Getwindowtext function in c# ? Need to convert this function into Delphi for c# function FindWindowExt(partialTitle: string): HWND; var hWndTemp: hWnd; iLenText: Integer;…
-
0
votes1
answer73
viewsConnection error while performing query
I’m a beginner in programming and I’m trying to connect to a database. But by clicking the "Search" button to browse the database and exbir values on my screen, the following error is generated…
-
0
votes1
answer1752
viewsPerforming the Submit Form using C#
There is the following HTML login form <form action="/Home/Login?ReturnUrl=%2f" method="post"> <input name="__RequestVerificationToken" type="hidden"…
-
0
votes1
answer106
viewsHide form by pressing key
I created a form, I do not want to use minimize or maximize button, I want to use for example when pressing "F1" my form stay hidden and press F1 again it comes back to. I tried this, but to no…
-
0
votes0
answers105
viewsIntermittent Application
I have a system developed in . net framework 4.0 running on IIS 7.5. From time to time, the system gives a problem where no user can log more into it, however, at these times, when I run the…
-
0
votes0
answers446
viewsMultiple RDLC (Report Viewer) in a single report
I have a report in Report Viewer that is all injected via parameters, do not use Dataset. I need to make it print a header that would be a single report model (a RDLC file), the body would be…
-
0
votes0
answers83
viewsCannot perform CAS Asserts in Security Transparent methods EXT.NET - Localweb
When I move my project to Ocaweb, I get the following error message, someone knows how I can resolve?…
-
0
votes1
answer749
viewsSaving fields with comma
What I need to do to save in a field currency-like values with the comma and send to the with the comma. As I declared the price field in the bank: preco number(12,2), Code: class clnPrato { private…
-
0
votes2
answers1356
viewsDatareader opens and gives error by not closing
I have a DataReader on my website to read the data that the bank brings. There when two people enter different computers, and even different browsers, opens a connection, but at the time I will read…
-
0
votes1
answer201
viewsError generating report: <Column> and <Column> have conflicting properties: incompatible Datatype property
When trying to fill a datatable dynamically the error occurs when performing a merge of the other data. For Each drw In dtbTemp.Rows dtb = obj.Enquadra(drw.Item("IDCON_TMP"), drw.Item("IDCAR_TMP"))…
-
0
votes0
answers57
viewsExecute string code in C#
I’m a C# beginner and I built a code inside a string and I need it to be executed. string MyString = "MyPictureBox.BackColor = Color.Red;"; I have found other similar questions (including apologies…
-
0
votes0
answers41
viewsDataset query showing last created ID giving error
I’m making a people registration form which when I finish entering the data it shows a MessageBox telling which ID the person was registered with. For that I use a query of my dataset(I’m using…
-
0
votes1
answer1684
viewsMaking Codefirst Error in Enityframework
That’s the mistake that’s happening: An unhandled Exception of type 'System.Typeinitializationexception' occurred in Entityframework.dll Additional information: O…
-
0
votes1
answer1064
viewsHow to create date file in iso string in name?
I’m having trouble creating a file with the following template: 2017-01-17T09:42:15.3419026-02:00_teste.txt When I run the application to create appears this message: No support for the given path…
-
0
votes1
answer182
viewsConsultation in Relationship Many-to-Many with LINQ to Entities
I created a database that has two tables called Teachers and Courses. A teacher can teach many courses and a course can have many teachers. I created the table Undergraduates to relate both. When…
-
0
votes1
answer55
viewsapp . NET can only access web service with Fiddler on
I have a client application developed in . NET, I am not able to call a WS through the URL that was passed by my provider. I did the test using SOAP UI and it worked perfectly, I received the answer…
-
0
votes2
answers276
viewsAccepting null fields from a Texbox
When I click on "Save", the program does a check of Texbox with a deal that I did not let pass repeated numbers, the problem is that it error if any Textbox is blank. Below is the Code I made saving…
-
0
votes3
answers82
viewsError while traversing vector
The user pastes the values that will be saved within the array and then displays these values. However, the following error is occurring: An unhandled Exception of type…
-
0
votes1
answer156
viewsC# Running a DDL command
I’m trying to run the Ddl command below that creates the table I need, but even not returning error the table is not created, would anyone have any idea where I’m going wrong? public const string…
-
0
votes0
answers86
viewsC# Choose Email Box when sending
I was wondering if there is any way to send emails to other inboxes, for example gmail At the moment my code for sending emails is this: using (var smtpClient = new…
-
0
votes1
answer380
viewsConnectionstrings: Write to app.config or windows registry?
My question relates to what is the best way to maintain the ConnectionString of my system on disk to be read as needed, ie what is the best way to do this by writing it to the file app.config, or…
-
0
votes2
answers180
viewsError while running program using "args"
I am trying to run a program passing some values as parameters on the command line but is returning the error below. C:\Users\joao.mello\Documents\C#> .\exercicio32.exe 5 1 0 4 9 32 4 Unhandled…
-
0
votes2
answers2249
viewsHow to resolve a string formatting error?
I was programming normally in VS in "Console" mode when I came across this message: "A first chance Exception of type 'System.Formatexception' occurred in mscorlib.dll An unhandled Exception of type…
-
0
votes2
answers87
viewsObject Reference not set to an instance of an Object?
I’m tapping into the database and calling a procedure to insert into the bank but this error occurs you know the reason: Code: Dim con As SqlConnection = New SqlConnection() Dim cmd As SqlCommand =…
-
0
votes3
answers163
viewsOperator "!=" does not work in my code?
I have a part of my program that I do several checks when the button is clicked and one of these checks is: it picks the value inserted in textboxRankTecnica and has to buy with the array…
-
0
votes0
answers1332
viewsInvalid DLL Error - System.Badimageformatexception
I searched and found that the Badimageformatexception exception is launched when the file image of a DLL or executable program is not valid. How to solve? Error log: Erro de Servidor no Aplicativo…
-
0
votes2
answers155
viewsHow to get only one information from this table? VB.NET
Hello, I have this table, which has no class, id or name. I would like to pick up only her phone. how would it be possible to take? <tr> <td><a…
-
0
votes1
answer787
viewsHow to extract the information from the Itau return file in C#?
I’m developing an application in which the Boletonet library is being used to generate billets. In this case the library itself when generating the boletos also generates the remittance file that…
-
0
votes1
answer222
viewsCommand "dotnet run" too slow
When I execute the command dotnet run via the command line in my ASP.NET Core project I have to wait 8 to 10 seconds until I can access the browser to test any changes. I downloaded Visual Studio…
-
0
votes1
answer662
viewsSystem.IO.Filenotfoundexception error
i am having a problem in my project, this giving Filenotfoundexception System.IO.error. I imported 2 Dll’s to my project, but it appears as if it is not. Does anyone know what it could be?…
-
0
votes1
answer86
viewsApplication template for . net standard library
In Visual Studio, I know I can create a UWP - Universal Windows Platform application template, where the wizard defaults to the . net core in the project, among them . net standard. net framework…
-
0
votes2
answers1230
viewsHTML inside a Stringbuilder
I have an HTML where I’m formatting it inside a StringBuilder, where there are "quotes" I am passing a bar, but it is not opening the correct HTML. public string CorpoPaginaHtml() { StringBuilder…
-
0
votes1
answer1250
viewsCtedistribuicaodfe - Problems when consulting webservice
I’m trying to consult the webservice of Sephaz. "https://www1.cte.fazenda.gov.br/CTeDistribuicaoDFe/CTeDistribuicaoDFe.asmx" I’m getting the error below: "403 Forbidden - Access Denied". The message…
-
0
votes1
answer162
viewsWCF + Web API - How to integrate?
I am developing a web api and need to integrate with a third party service that is a WCF. I have the definition of WSDL, integrated in my Solution as a service Ference, but is pointing to a physical…
-
0
votes1
answer81
viewshttppostedfilebase null after reloading the page, (image upload)
Is there any way I won’t lose data from HttpPostedFileBase? my action makes a check, and in case of failure the page recharges with the image in the form and I have to make the call again, then…
-
0
votes0
answers228
viewsError compiling project in Visual Basic 6
When I try to compile my project gives this error: I don’t know if it’s a problem with the Crystal Reports (See the background in blue), or if it’s really the problem of Visual Basic 6. I have never…
-
0
votes1
answer287
viewsError saving Entity framework
I have a very basic problem, but I must be short of coffee to understand what is happening. I have such an entity: public class Client : BaseEntity<Client> { [Required] public string…
-
0
votes1
answer76
viewsSystem.Drawing Image Class unavailability
This class is not available. System.Drawing.Image; I use Vs 2013 and Netframework 4.5.2 and the dll system.Drawing v.4.0 I already added the references and already imported a "new" dll and is not…
-
0
votes2
answers963
viewsI cannot apply Encoder to the text to correctly display "ç, accents, other special characters"
Hello, I need to gather some information from the station, and I’m getting it. However in the received text I cannot apply an Encoder to correctly display the special characters: I have tried using…
-
0
votes1
answer277
viewsLINQ to Entities x Lambda Expression
What is the difference between LINQ to Entities x Lambda Expression? Still using LINQ to Entities in the Entity Framework or is there something new?
-
0
votes1
answer69
viewsCapture Top of clicked object and apply on another Vb.net
Opa, I am creating a simple function and in it I need to identify the name of the clicked object, and from there collect your top. Private Sub sidebar_bt_all_MouseHover(sender As Object, e As…
-
0
votes2
answers169
viewsHide menu on login screen C#
I have a little problem, I need to hide a menu on the login screen when it is loaded. I used a solution that works locally, but on the server does not happen, follow below: //MENU QUE FICA NA MASTER…
-
0
votes1
answer245
viewsError while generating file
I have a method that generates a file that method is generating the file in fact, There I have another method within my service that returns the file to the download and to that return a List until…
-
0
votes1
answer70
viewsXamarin Portable
It is possible in Xamarin to have a Xamarin.Android and Xamarion.IOS project and to have a class that accesses the Sqlite and reuse it in these two projects? How can we call it? Does anyone have an…
-
0
votes1
answer79
viewsCapture Stackoverflowexception
I have a problem with Stackoverflowexception in an application ASP.NET MVC and I can’t find what might be causing it. I installed the Elmah as suggested in another topic on the same problem, but it…