Questions tagged as '.net'

2
answers

Define a generic variable without defining the type

I'm doing some tests on Unity for me to practice programming. I'm a beginner and this question can be kind of stupid. I want to know if this is possible: I created the following abstract class: public abstract class Variable<T> : Scri...
asked by 22.07.2018 / 22:34
1
answer

Upload system with rotate image automatically as in windows 8.1 or facebook

Today when viewing an image in windows 8.1 even if the image is lying down it automatically understands and shows correctly, in windows 7 the image lying down appears. When sending this image to sites like facebook it appears correct. However, w...
asked by 05.03.2015 / 16:33
1
answer

Can not use tskill in C #

The tskill command when used via C # (Visual Studio) returns this error:    'tskill' not recognized as an internal or external command, operable program or batch file However the same command when running via the command prompt works wi...
asked by 05.10.2018 / 15:47
2
answers

Patterns for user authorization / permission

Are there other standards for user authorization / permission other than the standard Role-based access control implemented by Microsoft for .NET technologies?     
asked by 16.06.2014 / 20:27
1
answer

How to configure IIS for its correct operation?

When I run my API through Visual Studio CTRL + F5 or F5 and open my application that consumes this API it works perfectly (both on the same network or through NAT port redirection). However when I publish, I give publishing, the API works on...
asked by 24.05.2018 / 13:57
4
answers

Convert String to Decimal

And I'm having trouble correctly converting this string to decimal . decimal.Parse(txtValor.Text)=meuVen.Valor; When I place the conversion in front, it shows error after = . I do not know how to convert the second part,...
asked by 13.09.2015 / 09:02
2
answers

IF condition within _Layout.cshtml in MVC

I have two _Shared.cshtml (MVC masterpage type, I do not know the name) and both are pretty much the same, only the left menu is different. I would like to do only 1 and according to the querystring I will call the page I want to be th...
asked by 13.05.2014 / 19:11
2
answers

LDAP and AD - Error adding user to group with C #

I'm trying to add a user to the group, but I get the following error:    Message: The server is reluctant to process the request.   ErrorCode: -2147016651   ExtendedError: 1359   ExtendedErrorMessage: 0000054F: SvcErr: DSID-031A120C, Proble...
asked by 23.05.2014 / 17:33
1
answer

Add row to DataGrid with DataSource defined

I have DataGridView that has DataSource setado with List<MinhaClasse> and would like to add a new line to it. I know this is not possible using the AddRow() method of DataGrid . Is there any way I...
asked by 16.10.2015 / 21:53
1
answer

Feed list gives "Index out of range"

On my system, I need to return the number of questions the student missed on a given topic. To achieve this, I tried creating a class that has two attributes: Tema and QteErros and instantiated it in my controller. public ActionR...
asked by 14.10.2015 / 02:25