2018-10-22         Angelo

Getting logged off on Azure

We have an ASP.NET MVC3 based Web role running on the Azure cloud, using Forms Authentication. Occasionally we have noticed that users that are logged in will get logged out automatically without any action (while the browser window is open). Has anyone else seen this? Any ideas as to why this might be happening?It has been observed on multiple machines for multiple users using multiple browsers. Thanks! Not much to go on, here, but...Are you running multiple instances? If so, did you set up SQL Azure or Cache as your Session Provider? If not, you'd have two sets of ses...

 asp.net-mvc                     3 answers                     81 view
 2018-10-22         Annabelle

Connect to VPN from Windows Azure

We have a SMS provider that gives us access to their SMPP Server. The only problem is that, for security reasons (estipulated by this provider), we need to use a VPN connection. That is: once there (in their net) we can access the smpp server using a local IP address (10.x.x..)Can I do this in Windows Azure? Connect to their net using the Virtual Networks feature? Maybe late as answer, but I don't see the difference here regardless to AWS - in both cases you will VPN with their site. On Azure, you can definitely create a Site-to-Site VPN Gateway then establish VPN connec...

 asp.net-mvc                     1 answers                     78 view
 2018-10-22         Leo

Azure ASP.NET MVC Web.Config Deployment Issue

We are developing an ASP.NET MVC web app that will be hosted on Windows Azure. We have deployed the application a few times during development without any problems. It was actually quite surprising how smooth the process went. Then, when we went to deploy the app for beta testing we kept getting 403 Access Denied errors whenever we tried to navigate to the base url of the site. If we tried to navigate to any of the various Controllers and Actions of the site thereafter we would get 404 The resource could not be found errors.The other strange thing that we noticed is tha...

 asp.net-mvc                     1 answers                     46 view
 2018-10-22         Rae

Cannot implicitly convert type 'System.Collections.Generic.HashSet'

I am trying to follow the tutorial listed here:LinkAnd when I insert the below code public ApplicationUser() { UserUpload = new HashSet(); } public ICollection UserUpload { get; set; } }into the ApplicationUser class of IdentityModels.cs I get the folloiwing error:'Cannot implicitly convert type 'System.Collections.Generic.HashSet' to 'System.Collections.Generic.ICollection'. An explicit conversion exists (Are you missing a cast?).I am very new to programming and have no idea what to do! Any help would be appreciated, thanks. Whole code is below. It's built on...

 asp.net-mvc                     2 answers                     27 view
 2018-10-22         Everley

Windows Azure MVC 2 in Dev blank

I been trying to create a new MVC 2 application under Azure, but when testing it in the Dev Fabric I get nothing but a blank page. What am I doing wrong? Sometimes this is an IIS configuration issue... I'd look for "static content" and "HTTP redirection" being enabled in IIS. See http://msdn.microsoft.com/en-us/library/dd573369.aspx for a longer list of IIS features to make sure are enabled. [XXX]I got bitten by this too. There's a more discriptive thread on the msdn forums about this:http://social.msdn.microsoft.com/Forums/en/windowsazuredevelopment/thread/0dbecc0b...

 asp.net-mvc                     2 answers                     30 view
 2018-10-22         Cecilia

ASP.NET MVC 3 RC and Azure?

I keep running into problems creating a Windows Azure Cloud Service and trying to add an MVC 2 (which ends up being an MVC 3) Web Role. Initially it says MVC 2 but I was really hoping to get an MVC 3 app. Then it says that it will be an MVC 3 Web Role. Once I've gone through the steps, I get the following error: Cannot add the item because the item to add it to is not a solution folder or the solution.This happens no matter what I do to add it. Worker Role, standard Web Role work fine. Only the MVC 3 Web Role fails. Is there something special that I need to do to get thi...

 asp.net-mvc                     3 answers                     31 view
 2018-10-22         Ulysses

Creating PDFs in iTextSharp with Azure

I am looking to use itextSharp to create PDFs in my MVC 3 application, and I will be using Azure. What I would like to know is will this create a problem and does Azure support this function. You can pretty much run anything you want in azure so it wont be a problem from that prospective. The biggest thing to remember is that you probably won't want to perform such a heavy operation in a web role. A worker role is much better suited for this type of task. You could setup a system where you use Azure queues to request PDF jobs and the worker role reads the queue and runs...

 asp.net-mvc                     1 answers                     33 view
 2018-10-22         Reginald

Rename Web Role in VS 2010 Cloud Service Project

I just started using VS 2010 to create a Cloud Service (HealthTracker), and I attached a MVC2 web project to it. When I hit Debug, the dev fabric was started and I was able to navigate my web app on my machine as expected.I decided MVCWebRole2 was a bad name for my web app, so I renamed it to HealthTrackerMVC. I used Refactor --> Rename to change MVCWebRole2 to HealthTrackerMVC. I Built clean and now when I hit debug the dev fabric starts, and the web app never starts and eventually it exits debug mode without me doing anything.How do I fix this? I'd rather not start ov...

 asp.net-mvc                     3 answers                     34 view
 2018-10-22         Neil

MVC 3 Preview 1 with Azure Development Environment

I am in the early stages of developing an Azure web project which will likely take more than six months to complete. The views which make up the UI would benefit from clean syntax provided by the Razor view engine found in the MVC 3 preview 1.The following exception is thrown whenever the site is run as an Azure web role:InvalidOperationException: The view 'Index' or its master was not found.The following locations were searched: ~/Views/Content/Index.aspx ~/Views/Content/Index.ascx ~/Views/Shared/Index.aspx ~/Views/Shared/Index.ascx ~/Views/Content/Index.cs...

 asp.net-mvc                     1 answers                     35 view
 2018-10-22         Tracy

How do i get my Windows Azure Worker Role to connect to my Ado.NEt Entity-based db

I've built a backend in ASP.NET MVC2 which has an underlying ADO.NET Entity-based Database.In the MVC Backend, I call my database entities, i.e.:Entities entities = new Entities();...and that all works fine.Unforutnetly, in my Azure/mvc2 project, My worker role makes the azure project throw weird exceptions:"The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid."Any ideas ladies and gentlemen? Solved it myself - it was a PEBKAC issue.Had to manually set the configuration string in the...

 asp.net-mvc                     1 answers                     36 view
 2018-10-22         Kevin

Problems installing Application Insights on .NET 4.7.2 from Visual Studio

First of all I got all kinds of weird errors trying to use Visual Studio 15.9 Preview 1 including all kinds of popups during installation. I reverted back to Visual Studio 15.8 RTM but still received errors.This is what I see trying to open my ASP.NET application.[BadImageFormatException: Cannot load a reference assembly for execution.][BadImageFormatException: Could not load file or assembly 'System.Runtime' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HR...

 asp.net-mvc                     1 answers                     9 view
 2018-10-22         Juliet

How can I automate publishing and referencing static content to Azure Blob Storage?

To optimise the speed of my MVC3 Azure site it has been suggested that I should host my JS, CSS and image files (basically any static content) in Azure public containers with CDN enabled. These should then be linked to instead of being stored on the web role.Is there anyway to automate this as part of a publishing the solution? So that I get underlining etc in VS2010? Effectively anything that is stored in the local MVC3 content & scripts folder should be copied to Azure storage and referenced from there.It seems like something that should be a straightforward option. ...

 asp.net-mvc                     2 answers                     24 view
 2018-10-22         Herman

Passing defined parameters to the Power BI Embeded

It is possible to define the parameters in the Power BI Desktop as per this feature (https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/7141377-allow-runtime-parameters-in-power-view-and-or-powe).Is it possible to send this parameter from the target application (ASP.NET MVC) of the Power BI Embedded? Power BI Embedded does not support parameters yet but you can pass in one additional filter value on the embed URL when you render the IFrame:report.EmbedUrl = report.EmbedUrl + "&$filter=table/column eq 'value'"; [XXX]

 asp.net-mvc                     1 answers                     70 view
 2018-10-22         Victor

The model backing the 'ApplicationDbContext' context has changed

I am not able to log in to my application, that's the code I use in my AccountController : // POST: /Account/Login [HttpPost] [AllowAnonymous] [ValidateAntiForgeryToken] public async Task<ActionResult> Login(LoginViewModel model, string returnUrl) { if (!ModelState.IsValid) { return View(model); } var allowed = Membership.ValidateUser(model.Username, model.Password); if (allowed) { var result = SignInStatus.Failure; var user = UserManager.FindByNameAsync(model.Username).Result;...

 asp.net-mvc                     2 answers                     26 view
 2018-10-22         Wayne

How expensive is .Include in Entity Framework?

I have following simple query in ASP.NET MVC action method.IEnumerable<Company> query = unitOfWork.CompanyRepository.dbSet .Include("Adresses.PhoneNumbers") .Include("Adresses.FaxNumber") .Include("Emails").Where(q => q.CustomerCompany == true);This action method is called via ajax get request and sometimes it takes up to 25 secs! for just 40 Companies in database.Each of them has single Address and at most couple of PhoneNumbers and FaxNumbers.(Interestingly it sometimes takes 200-500 msecs, but very rare)If I change this query to followingIEnumerable<...

 asp.net-mvc                     1 answers                     34 view
 2018-10-22         Rae

How can I handle different server and different to connect Asp.net Web API using linq and lambda

Previously, My older API version is connecting different server and database from code side. I called sql query, views and store procedures directly asking from client which server and database need to connect and then return respective JSON results to clients.For now, I would like to convert Linq and Lambda expression and also I would like to use edmx and entity framework .Please kindly response me if there any suggestion about this. Because you already have a database use entity framework database first that will generate your models automatically and will create a Su...

 asp.net-mvc                     1 answers                     68 view

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