2018-10-22         Quintina

Cannot use Gmail smtp from Azure Cloud Service

My code for sending email through Gmail's smtp:SmtpClient client = new SmtpClient("smtp.gmail.com", 587);client.EnableSsl = true;client.UseDefaultCredentials = false;client.Credentials = new NetworkCredential("my_user_name", "my_password");MailMessage message = new MailMessage(new MailAddress("from...@gmail.com"), new MailAddress("to...@gmail.com"));message.Body = "body";message.Subject = "subject";client.Send(message);The code works on my local machine and when I publish at Azure as "Web Site".BUT when I publish in a "Cloud Service" I get this exception: System.Net.Mai...

 .net                     5 answers                     40 view
 2018-10-22         Ansel

What is a good API architecture to handle long running tasks?

I'm trying to implement a ASP.NET Core based web service that's going to deploy Azure resources via ARM templates and the Azure SDK for .NET. The thing is, based on my tests some operations can take up to three of four minutes to complete. I have no experience designing API's that take this long to do something.So what I'm thinking of doing is the following.When API get's a request to provision a resource, I put the request information in a queue.I return a 200 with a ticket number for the caller to monitor the progress, which the caller can to by calling another endpoint.I...

 .net                     2 answers                     51 view
 2018-10-22         August

Is it possible to configure a rule in Azure ACS so that I can match a claim value with a wildcard/regular expression?

See attached screenshot, I'm trying to create a rule that allows me to control who gets the Administrator role based on the domain of their email address from the google identity provider.This seems like it should be pretty straight forward; the google apps OAuth provider should probably provide the domain for it's google apps accounts, but as it doesn't at the moment I want to do some sort of wildcard match on the email address.It's straightforward to handle it in the relying party application, but I'm trying to externalise the identity management function. The rules en...

 .net                     1 answers                     56 view
 2018-10-22         Mirabelle

How to configure the message size for a WCF web role (Currently getting HTTP error code 500)

Thank you all!We were able to solve this problem simply by changing the binding element name from "basicHttpBinding" to "webHttpBinding".Silly, I know..Hello,I am trying to implement a web role using WCF, that will receive JSON objects and store them in the Azure storage. During the integration tests I got a 400 error code. I then discovered that WCF has a very small message size (~65535), and that I need to configure it to be larger. The configuration I am currently using causes a 500 error code whenever I try to post an HTTP request to my service (the request never reache...

 .net                     1 answers                     58 view
 2018-10-22         Francis

Multi-Tenant CQRS Architecture

My team is beginning implementation of a greenfield application, with a requirement for multi-tenancy. I have been doing a large amount of research on patterns for simple scalability, especially on distributed cloud-based infrastructure, and CQRS seems to be the buzzword du jour (going so far as being called "Crack for Architecture Addicts" which I find quite funny). Benefits and pitfalls aside, it is quite hard to find anyone besides Greg Young that has used this idea extensively (or at all) in production apps and can provide real-world guidance for it.So here are my que...

 .net                     3 answers                     57 view
 2018-10-22         Sibyl

Azure free storage

hellois there free storage on Azure so i can test my program ?if there how can i access it?and if there are example n it i hope to guide me If you have an MSDN subscription you can sign up via the Subscribers portal on the MSDN web site.There's more here http://www.microsoft.com/windowsazure/offers/ [XXX]Check out the "Introductory Special" http://www.microsoft.com/windowsazure/offers/ It is essentially a free account. You have to go through the whole process and sign up, but once set up you get to use it free as long as you don't go past the limits. When/if you do th...

 .net                     3 answers                     62 view
 2018-10-22         Mandy

Windows Azure Startup from a pre-existing MVC2 app

I have an already existing .NET MVC2 App that, because that we are wasting 80Gb of bandwidth per day and I want to place it in the cloud for to be more scalable as well cheap.I was looking around and there is almost no alternative of Azure if we are in Europe, but I already have a 700 hours account on Azure.I installed the latest SDK of Azure on VS2010I created the cloud appI said nothing when asked to add a roleI manually add 2 roles selected the existing projects in the solution that I had imported beforeBecause I always get an error when trying to work with the certifica...

 .net                     2 answers                     60 view
 2018-10-22         Lindsay

At what point does a project require Azure?

I was diving further into the .NET framework over at Microsoft's site, and I came across Azure, a technology that I have really only briefly heard about prior to my investigation.Now, that got me thinking, why exactly did Microsoft make Azure, and why is it useful over other technologies?For example, for an ASP.NET web app (WF / MVC), when does it make sense to seek the help of Azure? A good analogy to the rescue.A car engine is designed for peak capacity, not normal capacity. So for the 1% of the time when you really need to gun it an get passed that semi-truck, you can...

 .net                     4 answers                     65 view
 2018-10-22         Vivien

Azure Cosmos DB - Delete entire partition

I am very new to cosmos Db and have a requirement of deleting a complete partition. On performing a brief research I found that drop partition is not a thing. Consequently i stumbled on the following link which is a stored procedure for bulk deletehttps://github.com/Azure/azure-cosmosdb-js-server/blob/master/samples/stored-procedures/bulkDelete.jsI created this stored procedure on my collection and clicked 'Execute'. I got the following promptI entered the partition key and input parameter to 'select * from c'. However, I can see that only 38 documents are deleted at a time...

 .net                     1 answers                     17 view
 2018-10-22         Kama

Anyone using Amazon EC2 + SQL Azure?

Anyone running any .NET web apps on Amazon EC2 but using SQL Azure for their RDBMS?I can't see why this wouldn't work but I was wondering if anyone has any experiences good or bad. We are actually doing the opposite of this. Our SQL Server is in EC2 but web server on Azure. I know it sounds odd, but we did it because we already had servers in EC2 but we get a certain amount of free Azure hours per month with BizSpark.Anyway, it is working very well. We just had to open the firewall in EC2 to allow the Azure IP address through. We havnt noticed any performance issues. ...

 .net                     2 answers                     103 view
 2018-10-22         Devin

How to make active services highly available?

I know that with Network Load Balancing and Failover Clusteringwe can make passive services highly available. But what about active apps?Example: One of my apps retrieves some content from a external resource in a fixed interval. I have imagined the following scenarios:Run it in a single machine. Problem: if this instance falls, the content won't be retrievedRun it in each machine of the cluster. Problem: the content will be retrieved multiple timesHave it in each machine of the cluster, but run it only in one of them. Each instance will have to check some sort of common re...

 .net                     6 answers                     50 view
 2018-10-22         Elsa

Xamarin Forms variable initialization

I just started working with Xamarin Forms, but there is smth strange, that I cannot understandI want to use CarouselView control and setting as a ItemsSource a list of namesI was getting the error index out of bounds every time I deploy it to my phone, when I debugged it - I saw that list of names never initialized, despite I clearly doing it.This is probably some rookie mistake, but please help me with it.Application uses .NET standart 2.0, deploying to Meizu m3 note (Android 5.1)XAML file:<ContentPage x:Class="GMS.MainPage" xmlns="http://xamarin.com/schemas/2014/...

 .net                     1 answers                     80 view
 2018-10-22         Sean

Power BI / add refresh button on report view

I don't have much expertise in Power BI. I started work on it and found it very easy and I've created a report. That report is working fine.Now, I've requirements to add Refresh button on the report that will refresh the data source and get the latest data from it. I tried to search alots on it but still, I'm not able to find any reasonable solution.Do we have that kind of functionality available on Power BI?Thank you for your time! Assuming you are working on powerbi.com, the end user cannot refresh the data in a report manually (though it is possible to manually refres...

 .net                     1 answers                     36 view
 2018-10-22         Abel

How can I measure SQL Azure bandwidth usage per client?

I have an SQL Azure database that multiple client programs are connecting to. I would like to log the network usage of the SQL Azure traffic per client. Is there a better alternative then aggregating the BytesReceived/ByteSent connection statistics? You can query usage per database, but I don't think you can segment it any further than that. [XXX]

 .net                     1 answers                     101 view
 2018-10-22         Clara

How can I load automatically .dll plugins in AutoCAD 2019?

How can I load automatically .dll plugins in AutoCAD 2019?Preferably without changing any file in AutoCAD directory (I'm not the admin).I'm trying to load this plugin that registers, in an excel file, when AutoCAD is closed. It was created with .net in vb.I've tried this but failed because i'm not the admin and cannot change files in AutoCAD directory:https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-autoload-DLLs-with-AutoCAD.htmlThere has to be a solution that does not involve manually editing files in AutoCAD's directory...

 .net                     3 answers                     41 view
 2018-10-22         Omar

File.Exists returns true on file name only

I am currently debugging an application, where the following code returns true on the file name only. If Not IO.File.Exists(out) Then '' WorkEnd IfThe watches for this execution is as follows:How is this statement validated as true, when the actual file is located fairly deep on a network drive? I'd assume that this could be true, if the file was located in the same directory as my execution. Documentation: File.Exists the path parameter is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the curren...

 .net                     1 answers                     102 view

Page 1 of 914  |  Show More Pages:  Top Prev Next Last