Top ASP.NET Items

Sponsors

Archives

August 2012 - Posts

Getting Symbols and Source with ASP.NET Nightly NuGet Packages
You can now get full symbols and source along with the nightly NuGet packages making it possible to debug the latest MVC, Web API, and Web Pages bits by tracing directly through the source. This is enabled by SymbolSource , which hosts the symbols and source for the nightly NuGet packages, and MyGet which hosts the nightly NuGet feed. Great services! If you want to use the nightly NuGet packages then please see Using Nightly ASP.NET Web Stack NuGet Packages for getting started. Please remember that the nightly NuGet packages are “raw” and come with no guarantees. Configuring Visual Studio The instructions apply to both Visual Studio 2010 and 2012 and works in both full and express editions. First open the Debug | Options and Settings menu, go...
Announcing Windows Azure Mobile Services
I’m excited to announce a new capability we are adding to Windows Azure today: Windows Azure Mobile Services Windows Azure Mobile Services makes it incredibly easy to connect a scalable cloud backend to your client and mobile applications.  It allows you to easily store structured data in the cloud that can span both devices and users, integrate it with user authentication, as well as send out updates to clients via push notifications. Today’s release enables you to add these capabilities to any Windows 8 app in literally minutes, and provides a super productive way for you to quickly build out your app ideas.  We’ll also be adding support to enable these same scenarios for Windows Phone, iOS, and Android devices soon. Read this getting...
List of ASP.NET Web API and HttpClient Samples
Here is a list of the Web API and HttpClient samples you can find in our samples repository on aspnet.codeplex.com . They illustrate various features of Web API and HttpClient targeting either Visual Studio 2010 using .NET 4 or Visual Studio 2012 using .NET 4.5 with async/await language support. For details on how get up and running with the samples, please see the ASP.NET Web API Samples on Codeplex blog . If there are samples that you miss or you find issues then please register an issue and let us know what you think! HttpClient Samples Bing Translate Sample | VS 2012 source Sample illustrating using the Bing translator API from HttpClient. The API requires an OAuth token which we obtain by sending a request to the Azure token server each...
Customizing the login UI when using OAuth/OpenID
In the last post I showed how you can plug in your own OAuth/OpenID provider. This post shows you how you can pass in extra data about the provider such as display name, image etc and use this information when building up the UI for login screen   If you see the experience of login screen in the ASP.NET templates, it looks like this. Let’s see how can we customize this UI to look like the following Web Forms Pass in extra data in App_Start\AuthConfig.cs when registering the provider as follows Dictionary< string , object > FacebooksocialData = new Dictionary< string , object >(); FacebooksocialData.Add( "Icon" , "~/Images/facebook.png" ); OpenAuth.AuthenticationClients.AddFacebook( appId: "your Facebook...
NuGet Feed Performance Update
As you might know, NuGet has been having some performance (and timeout) related issues recently. Earlier this week, we completed a deployment that helped, but it didn't address everything. Many users are still seeing slow responses or even timeouts when trying to use the ‘Manage NuGet Packages’ dialog in Visual Studio. Ongoing Investigation The deployment earlier this week greatly improved the packages page on the gallery, but it didn't address the Visual Studio dialog performance as much as we had hoped. Since that deployment, we’ve been focusing on the queries behind the Visual Studio dialog. We have found that the SQL queries that get executed from the ‘Manage NuGet Package’ dialog are not great. While...
Plugging custom OAuth/OpenID providers
In the previous post , I wrote about how you can use the existing providers for Google, Facebook etc. and retrieve extra metadata about the authenticated users. Let’s assume you wanted to change the way the providers request for information. Some examples of this could be You want to request more data about the user You want to apply different scope levels when requesting the data This post covers how you can write your own provider and plug it into your ASP.NET web application Write your own provider Each Provider implements from OpenIdClient. Following example shows a custom implementation of Google Provider which requests information about the user such as firstname/lastname etc Please Note :   This addresses a bug with the existing...
Expected Downtime - August 22 11pm-12am PDT
As mentioned in a previous post , we’ve been working to address some performance problems on the NuGet Gallery . The fixes we have in place include some time-consuming database migrations. During our dry run deployments, we found that virtually all requests to the database will time out while these migrations are running. We have decided to take the precaution of shutting the gallery down during these migrations to ensure the best and fastest possible deployment. We are sorry for the inconvenience this will cause. Timing The nuget.org website is expected to be down from 11pm-12am PDT tonight. During this time, all requests to browse, search, install, or update packages will fail. You will see errors in Visual Studio when you use the Online...
NuGet Gallery Performance Issues
Since August 16th, and especially since August 21st, the NuGet Gallery has been exhbiting intermittent performance issues. Some users are reporting errors when attempting to browse or search for NuGet packages from Visual Studio or other clients. Many users are reporting that browsing and searching are slow. There have also been timeout errors when browsing the gallery’s packages page . During this time, we have been communicating with many of you on twitter, under the #nuget tag , as well as in JabbR’s #nuget room . We truly appreciate your patience and understanding with us. Status We have been working to address these performance issues over the last several days, and we hope to have a deployment in place this evening (August...
Web Deploy (MSDeploy) how to sync a folder
Today I saw the following question on StackOverflow MSDeploy - Deploying Contents of a Folder to a Remote IIS Server and decided to write this post to answer the question. Web Deploy (aka MSDeploy) uses a provider model and there are a good number of providers available out of the box. To give you an example of some of the providers; when syncing an IIS web application you will use iisApp, for an MSDeploy package you will use package, for a web server webServer, etc. If you want to sync a local folder to a remote IIS path then you can use the contentPath provider. You can also use this provider to sync a folder from one website to another website. The general idea of what we want to do in this case is to sync a folder from your PC to your IIS...
Extra Information from OAuth/OpenId Provider
When you authenticate a user using the OAuth/OpenId providers, you can request for some extra information about the user if you have granted access for these providers to send this information. For eg if you login using Facebook, you can request information such as Gender, country etc. Each provider has different set of data that you can retrieve. I am not going to into the details of these different sets of data. In this post I am going to cover what kind of information can you retrieve from the implementations of the providers that we shipped with templates  in VS2012 and how can you retrieve this information. What kind of information can you retrieve Google email firstname lastname country https://developers.google.com/accounts/docs...
More Posts Next page »