.net

How to convert ASMX Web reference method HttpWebRequest

Recently i started creating a Xamarin-iOS app, which consume ProjectServer PSI WebService. When I add the PSI as WebReference and I try to access the PSI methods I am getting 401 unauthorised error. Interestingly It works fine in local network and but getting error in enterprise network. So I plan to change WebReference to SOAP – HttpwebRequest method. This is…
Read more

C# Create a playlist on SoundCloud

I have some problems with the soundcloudapi and i hope someone can help me. All GET Methdods works perfect, but now I want to create a new playlist on SoundCloud and I alwas receive resonse 422 with message “Unprocessable Entity” This s my current api execuion method private T Execute<T>(Uri url, HttpMethod method = null, object bodyParams = null) where…
Read more

How to disable popup window on browser back and Forward button

I Doing simply insert operation on Aspx page with popUp on operation completed Problem is that when I Navigate on this page through browser back and forward button .. this Popup Appears again on Load here is my Insert Code protected void insert() { try { if (txtusername1.Text==””) { ClientScript.RegisterStartupScript(this.GetType(), “myalert”, “alert(‘” + “User Name can’t Blank” + “‘);”, true);…
Read more

EventingBasicConsumer: max number of threads

What is the easiest way to control the maximum number of working threads when implementing RabbitMQ(.NET) consumer that uses EventingBasicConsumer? As much as I understand at the moment by default there will be as many threads as many messages come in. If consuming operation opens a database connection for example then the max number of threads should be under control….
Read more

Winscpnet File resume not working while downloading

I were using winscpnet for file downloading. now i needed to support file resume funtionality. For that what i have done is var options = new TransferOptions(); options.ResumeSupport.State = TransferResumeSupportState.On; And in my code for downloading I have done TransferOperationResult transferResult = session.GetFiles( _appSettings[“SFTP_IncomingFileFolder”] + file.Folder + @”/” + file.FileName, _appSettings[“Local_IncomingFileFolder”] + file.Folder + @”” + file.FileName +”.filepart”, false, options);…
Read more

Obtain sub array from jagged array

The input to my routine is a jagged array (unfortunately, I have to live with it). It represents a data table (rows and cells). Now I have to output another jagged array being a sub array of the given input, i.e. I want to have the rows 500-1000. Is there a nice way to do that? Maybe even something like…
Read more

Information Radiator .NET

I’m considering writing software to produce an Information Radiator that can run on a big screen in the office. The screen would rotate through different content like Work views and burndowns charts from Visual Studio Online, dashboards from Visual Studio Online, custom messages etc. Is anyone aware of any commercial or open source software that is capable of doing this?…
Read more

Multi counter on a collection list

This is my code: return (from x in alumni_corsi group x by new { x.FAC_ID } into g select new StatCounter { value = g.First().Dipartimento.AreeDipartimento.ID, count = g.Count() }); in fact, for each AreeDipartimento, I return an object with its ID and the number of time it appair in the table (DB rows). The problem is that I’ve extended the…
Read more