Questions tagged as '.net'

1
answer

Application template for .net standard library

In Visual Studio, I know that I can create a UWP - Universal Windows Platform application template, where the wizard places references to the .net core libraries in the project, among them the .net standard. The .net framework supports .net stan...
asked by 08.04.2017 / 22:21
1
answer

"dotnet run" command too slow

When I run the dotnet run command via the command line in my ASP.NET Core project I have to wait for 8 to 10 seconds until I can access the browser to test any changes. I downloaded Visual Studio 2017, I run the application quietly if I start...
asked by 02.04.2017 / 17:37
0
answers

x509 - The key set is not set

I use the x509certificate class from C # to read an A3 certificate for XML signature, it happens that it was necessary to renew the certificate and at first nothing changed, it continued same type, but when trying to sign now is giving the error...
asked by 23.03.2017 / 19:11
0
answers

Invalid DLL Error - System.BadImageFormatException

I searched and found that the BadImageFormatException exception is thrown when the file image of a DLL or executable program is not valid. How to solve? Error log: Erro de Servidor no Aplicativo '/'. Não foi possível carregar arquivo ou as...
asked by 24.02.2017 / 16:17
1
answer

C # Executing 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 scriptCriacao = " if exists(select * from sys....
asked by 10.01.2017 / 20:02
2
answers

Compile string as code

How can I compile a string inside C #? Example: Console.WriteLine(\"Hello World\"); . As if it were a eval of JavaScript? I had a project to load a code into a text file or something else.     
asked by 10.05.2014 / 02:10
0
answers

C # Choose Email box when sending

I was wondering if there is any way to send mail to the other inboxes, for example gmail Atthemomentmycodeforsendingemailsisthis:using(varsmtpClient=newSmtpClient(WebConfigurationManager.AppSettings["smtpHost"], 587)) { smtpClient.Cre...
asked by 20.01.2017 / 17:17
1
answer

Many-to-many Relationship Query with LINQ to Entities

I've created a database that has two tables called Teachers and Courses . A teacher can teach in many courses and a course can have many teachers. I've created the Teacher Courses table to match both. When using the Entity Framework wizard...
asked by 09.12.2016 / 23:54
1
answer

Put a slash at the end of Url?

I'm doing a mapping in web.config for when the person accesses the project root, already loading ~ / Default.aspx <urlMappings enabled="true"> <add url="~/" mappedUrl="~/Default.aspx" /> </urlMappings> Mapped URL> lin...
asked by 06.12.2016 / 19:55
0
answers

Multiple RDLC (Report Viewer) in a single report

I have a report in Report Viewer that is all injected via parameters, I do not use DataSet. I need to make it print a header that would be a single report template (an RDLC file), the body would be another template and would be repeated sever...
asked by 24.11.2016 / 19:29