Tag | IIS Posts

With thanks to Wriju for doing the work to pull these together. How to: Build a Windows Azure Application How to Configure Virtual Machine Sizes How to Configure Connection Strings How to Configure Operating System Versions How to Configure Local Storage Resources How to Create a Certificate for a Role How to Create a Remote Desktop Protocol File How to Define Environment Variables Before a Role Starts How to Define Input Endpoints for a Role How to Define Internal Endpoints for a Role How to Define ...
Check out the Top Five most popular news at SilverlightShow for SilverlightShow Top 5 News for May 23-29, 2011. Here are the top 5 news on SilverlightShow for last week: Entity Framework 4.1 Code First, Silverlight, and Shared Models with REST+JSON A Simple Physics Game using Silverlight and Farseer Engine Windows Phone 7 Mango - Sockets Using IIS Express to Secure Silverlight and WCF Applications Windows Phone 7 Mango - Silverlight and XNA integration Visit and bookmark SilverlightShow. Stay in ...
Afrer iisreset on production server I've got the error "Cannot register the URL prefix 'https://*:443/OldFolder/' for site '1'. The site has been deactivated. " The problem was that IIS folder still existed, when physical folder was deleted. Only after I deleted the virtual folder, I was able to start web site. Different reasons to see the same errors are described in http://support.microsoft.co... " You receive a "The process cannot access the file because it is being used by another process" ...
IIS Express is a new web server that replaces the old Visual Studio web server (aka Cassini). IIS Express provides a number of benefits which you can read about here and they key aspect is that it is IIS. However, that’s not to say that there aren’t any gotchas. One of the things that I ran into recently was that I was getting a 404 when trying to use the PUT and DELETE verbs (which are commonly used in RESTful services). The reason this is happening is because these verbs are not enabled in the ...

Write this line in web.config file (for IIS 7)

<system.webserver>
<validation validateintegratedmodeconfiguration="false">
</validation>

Ive recently just setup BizTalk 360 (http://www.biztalk360.com/) to try out the monitoring capabilities. I also thought it would be interesting to see how things go since this given environment was a BizTalk 2006R2 environment and fairly old stuff now. I had a couple of issues during the install/setup but i was able to solve all of these using the troubleshooting page on the BizTalk 360 website and a little common sense. To be honest a couple of them were me being a bit lazy and not reading the install ...
Part 2 of my "Reloaded-Series"! In the orginal post here TCPBinding seemed to be the solution. But it is not the best and in some cases just not usable. This only applies to large requests! Sabrina and Philippe, both colleagues in the current project, discovered something far better and much more interesting... What happnes here is DOS-attack-prevention by IIS! Fortunately this did not apply to us that much, sitting behind the DMZ and a far way from the outside world... Solution: Change the allowed ...
Every now and then I find that it is necessary to apply self signed SSL certificates when implementing Exchange servers. Self Signed Subject Alternative Name (SAN) Certificates that is, because Exchange uses that kind of certificates since Exchange 2007.BackgroundThe need for self signed SSL certificates can have different reasons. One of these reasons can be that a company has an internal Windows Active Directory™ DNS domain name, that this company does not own on the internet. As a result, no public ...
Windows Azure Boot Camp: Diagnostics (http://wabcdemos.cloudapp.... Remote desktop MonAgentHost.exe starts Auto, listener wired up in app/web.config Need to define a storage account User can set quota Source to Storage: Example: Trace log to Azure Table; IIS Logs to Blob; Windows Event to Azure Table, Crash dump to Blob, ... Load Diagnostic Agent <Imports><Import moduleName="Diagnostic" /></Imports> OnStart({DiagnosticMonitor.... TransferFilterLogLevel and ...
If you are: a senior technologist (Application Architect, Senior Developer or similar) with strong experience in developing solutions using the Windows platform (Visual Studio, SQL Server, IIS etc) fancy working for Microsoft UK and are not put off by these pictures of my team (and it is before 1st May 2011) then I would highly recommend you check out the job posting for two positions as Architect Evangelists in my team. My personal ideal “new colleague” would also: Enjoy online FPS gaming and be ...
URL Routing is a very nice new feature in ASP.NET 4.0. And in Visual Studio everything works just great. But as soon as you start testing on IIS you get a "Error 404.0 - Not Found". To solve this you need to make sure that: you have set the Application Pool to "asp.net 4.0 application pool". Routing will not work with "asp.net 4.0 classic application pool". you add the following code to your web.config: <system.webServer> <modules runAllManagedModulesForAllR... <remove ...
Today I was working on the mvc app I am building for a customer. We need to send email from the app so I used the system.net.mail feature in .Net. As part of this, I need a Windows 7 smtp server. So I found the smtp4dev app on codeplex. I found it on this nice blog http://social.technet.micro... Check out the notes titled “Mikeyyyy, this is how I made it work on Windows 7 64-bit with IIS 7.5 I hope it helps.” a good ways ...
A new release of Microsoft All-In-One Code Framework is available on April 16th. This blog introduces 14 ASP.NET and Azure code samples in the release. The rest new samples will be introduced next week. Download address: http://1code.codeplex.com/r... Alternatively, you can download the code samples using Sample Browser v3. The new Sample Browser gives you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically ...
Log Parser is a great tool for iis monitoring.
Recently i faced a bizarre problem in IIS 7.0 where none of my configured local sites worked. Hitting the starting URL of each application took me to the general error page. Infact when i tried to check if IIS is running or not i tried with http://localhost. But no success i still got the same error page. The IIS Manager was launched and checked if everything was okay? I found everything perfect over there. But still IIS was not working and none of my application was launching. Then i tried several ...
Last week, I was interviewed by Zandra Nilocas from Microsoft Philippines. It was my first time experience to talk about something in front of the camera so it's not surprising that I looked like an idiot in that interview (you know swiveling my chair back and forth without noticing it). Anyway in the interview we talked about ASP.NET WebForms, MVC and Web Matrix in general and just to elaborate a bit of what we talked about and to clarify things out, I have decided to write this post... WebForms ...
How to: Build a Windows Azure Application How to Configure Virtual Machine Sizes How to Configure Connection Strings How to Configure Operating System Versions How to Configure Local Storage Resources How to Create a Certificate for a Role How to Create a Remote Desktop Protocol File How to Define Environment Variables Before a Role Starts How to Define Input Endpoints for a Role How to Define Internal Endpoints for a Role How to Define Startup Tasks for a Role How to Encrypt a Password How to Restrict ...
In this Issue: Michael Crump, Jeremy Likness, Matthew Delisle, Xianzhong Zhu, Nigel Sampson, Jeff Prosise(-2-), Andrea Boschin, Mike Ormond, Jeff Wilcox, and Bil Simser. Above the Fold: Silverlight: "Silverlight Scaling and Anti-Aliasing Issues" Jeremy Likness WP7: "AgFx Windows Phone App and Data Caching Framework" Jeff Wilcox Shoutouts: The tool Mike Ormond discussed in a post listed below is WP7 Screenshot Tool by Cory Smith DiscountASP.NET has a post up about the latest SQL Injection attack going ...
WCF services under Azure have a nasty habit of not really telling you what you need to know. Having fought through this – and having been challenged to find exactly what I needed in a Google search, I thought I’d add some more specific info here. Before I do, let me say thanks to Steve Marx, whose blog posts and forum answers pointed me in the right direction. Here are the exceptions that surfaced: ConfigurationErrorsException: Could not create Microsoft.WindowsAzure.Diag... ...
We are glad to release the BizTalk RFID Data Services as part of our open source contribution here at Tellago. Let me get into some details on what’s BizTalk RFID data service and who can take advantage of it. BizTalk RFID data service is all about exposing BizTalk RFID artifacts as Restful service interface which can be easily accessed by different application within the enterprise and outside such as mobile applications. So anyone who wants to monitor the BizTalk RFID can take advantage of it. ...
How can we get SMTP to work on Windows 7 (Development Environment) as we used to just be able to turn it on for a windows XP box. SMTP isn't included in Windows 7 by default. But you can install Remote Server Administration Tools that includes SMTP Server Tools for Windows 7. It enables IT administrators to manage roles and features that are installed on remote computers that are running Windows Server 2008 R2 but it can be installed ONLY on computers that are running the Enterprise, Professional, ...
If your website uses the AppPoolIdentity and requires access to the private key of an x509Certficate, you’ll need to grant the read permissions to the iis application pool. To grant permissions to the AppPoolIdentity: Run Certificates.MMC (or Start->run->mmc.exe, Add Certificate Snap-In for LocalMachine) Select the certificate (Personal node on the certificate tree) , right click and Manage Permissions. Add a new user to the permissions list. Enter "IIS AppPool\AppPoolName" on the local machine". ...
Logparser in powershell One of the few examples how to use logparser in powershell is from the Microsoft.com Operations blog. This script is a good base to create more advanced logparser scripts: $myQuery = new-object -com MSUtil.LogQuery $szQuery = “Select top 10 * from r:\ex07011210.log”; $recordSet = $myQuery.Execute($szQuery) for(; !$recordSet.atEnd(); $recordSet.moveNext()) { $record=$recordSet.getRecor... write-host ($record.GetValue(0) + “,”+ $record.GetValue(1)); } $recordSet.Close(); Logparser ...
I was very excited when Microsoft released the Internet Explorer 9 Release Candidate. As far as I was concerned, this was another nail in the coffin for IE6 and step in the right direction for us .NET web developers as our base camp was finally starting to support the latest and greatest future-web standards. Unfortunately, my celebration was short lived as I soon hit a snag while loading up an HTML5 site I was building in Visual Studio 2010. The Mystery After updating Internet Explorer, I ran my ...
With the updates to Windows Azure CDN announced this week [1] I wanted to help illustrate the capability with a working sample that will serve up dynamic content from an ASP.NET site hosted in a WebRole. First, to get a good overview of the capability you can read the Overview of the Windows Azure CDN [2] content on MSDN. When you setup the ability to cache content from a hosted service, the requirement is to provide a path to your role’s DNS endpoint that ends in the path “/cdn”. Additionally, you ...
After successfully completing several installations of Management Reporter this year, I wanted to share a few lessons learned that should help you. First, you will want to make sure that you install Management Reporter under a domain account as opposed to a local system or network service account. Management Reporter gives you the option to install under these accounts, but it is a be a best practice approach to use a domain account. Upon installation of Management Report, you will want to make sure ...
Last week I was fortunate enough to spend time in Redmond on Microsoft’s campus for the 2011 Microsoft MVP Summit. It was great to hang out with a number of old friends and get the opportunity to talk tech with the various product teams up at Microsoft. The weather wasn’t exactly sunny but Microsoft always does a great job with the Summit and everyone had a blast (heck, I even got to run the bases at SafeCo field) While much of what we saw is covered under NDA, there a ton of great things in the ...
Ran into a situation today where after AD FS federation server was installed, configured and up & running, “all of a sudden” it stopped working. Turned out that another installer that affected the default web site, also seemingly affected the AppPools associated to all Applications under the Default Web site. By changing the “Enable 32-bit Applications” either through IIS admin or via command line appcmd set apppool /apppool.name:MyAppPool /enable32BitAppOnWin64:false Back to normal… ...
Looking in Web Analytics I could see several external sites pointing at an old .htm file on my web server that no longer existed, so I thought I would get IIS to redirect to the new .aspx replacement. How hard could it be? This has annoyed me for quite a while today so here is the answer. 1. Install the Http Redirection module - this is not installed by default!! Windows 7 Start->Control Panel->Programs and Features->Turn Windows Features on or off. Internet Information Services->World ...
We all know there have been some updates to Windows Azure, and one of the biggest I would say is the capability of being able to remote into the “OS level” of the image running a role. And I am not talking about VM Role, I am talking about a Web Role for example. As developers we use Visual Studio, and when we are getting ready to deploy a project, we have the option of enabling this. Here is how: 1. We publish our Project 2. On the Deployment dialog, provide all the details for your account, and ...
It's hard to believe October was the last time I was over here on my blog. Ironically after getter the developer phone from Microsoft I have been knee deep in iPhone programming and for the past few weeks Android programming again. This time I've spent all my non-working hours programming a fun project for my "other" website, Disneyland Inside Out. Disneyland Inside Out, a vacation planning site for Disneyland in California, has been around in various forms since June 1996. It has always been a place ...
A few months ago myself and colleagues had open sourced the BizTalk Data Services. We were meanwhile working on other artifacts which comes along with BizTalk Server like the “Business Rules Engine”. We are happy to announce the first version of BRE Data Services. BRE Data Services is a same concept which we covered through BTS Data Services, providing a RESTFul OData – based API to interact with the Business Rules Engine via HTTP using ATOM Publishing Protocol or JSON as the encoding mechanism. ...
So I’ve been doing some upgrades just to see if things will work from 2007 to 2010. So far most of the stuff I want works, but obviously there are some things that break. Did you guys know that in 2007 you could add a webpart to the view pages for lists and libraries without losing the toolbar? In 2010 the ribbon disappears every time you add a webpart. So if you are using Scot Hillier’s Codeplex project to hide buttons it will not work the same way, because the ribbon is going to disappear altogether. ...
Advert alert :-) The UK's only Cloud user group The Cloud is the hot topic. You can’t escape hearing about it everywhere you go. Cloud Evening is the UK’s only cloud-focussed user group. Cloud Evening replaces UKAzureNet, with a new objective to cover all aspects of Cloud Computing, across all platforms, technologies and providers. We want to create a community for developers and architects to come together, learn, share stories and share experiences. Each event we’ll bring you two speakers talking ...
Getting this silly thing to work turned out to be a painful experience, so I am recording my lessons learned so that if some other downtrodden programmer wants to see what I did, they will be able to figure it out faster (hopefully): Ok, so say you have a silverlight application and you want to talk to a database. Silverlight is Client-based, and Databases are Server based. This is a problem. You can either pass the values in initially (not very good for interactive stuff) or you can make a WCF service. ...
If you attempt to make an ajax call that cross domain or protocol boundaries, the default XHR (XmlHttpRequest) processor will fail. The out-of-the-box implementation forbids crossing boundaries. Enter flXHR. A flash-based proxy that implements (and extends) the XHR API. That’s good news for JQuery developers. It means you can use flXHR just like the native Jquery XHR. There’s also a Jquery proxy plugin that makes it SIMPLE. You can download the sample here. In my example, I’m hosting the website ...
I was trying to restore my WSS v3 dev server today after having some issues with IIS (see previous post) After installing the the Wss v3 SP2 and the wizard got to the end i got an error that the timer service wasn't started and it was unsuccesful. But truly i forgot to restart the Timer ser vice before clicking on the SP2 install. But then i said i would give it a try and try to restore my site from backup but unfortunately NO GO and got the error: An error has occurred on the server.http://go.microsoft.... ...
I would like to share a few points with regards to encrypting web configuration sections in .Net 4.0. This information is also applicable to .Net 3.5 and 2.0. Two methods can work perfectly for encrypting connection strings in a Web project configuration file: 1-Do It All Yourself! In this approach, helper functions for encrypting/decrypting configuration file content are implemented. Program would explicitly retrieve appropriate content from configuration file then decrypt it appropriately. Disadvantages ...
I was trying to install a new WSS v3 Sharepoint on a 64 bit Windows 2003 server today but the installation was giving some error saying i would need to allow ASP.NET 2.0 in the web server extension in IIS. Looking at the IIS there was a ASP.NET 2.0 32 bit allowed but not for a 64 bit. I tried registering the aspnet_regiis but no luck by doing so: For the 32 bit verison %SYSTEMROOT%\Microsoft.NET\... -i For the 64bit version %SYSTEMROOT%\Microsoft.NET\... ...
Microsoft have now released Web Matrix (and ASP.NET MVC3 if you so inclined!) One signifcant utility is IIS Express which will replace Cassini It is worth noting that SP1 for VS2010 should be out in Q1. Links: http://www.hanselman.com/bl... http://www.hanselman.com/bl... http://arstechnica.com/micr... ...
Last few weeks, I have been working on Application Packaging stuff using all the widely used tools like InstallShield, WISE, WiX and Visual Studio Installer. So, I thought it would be good to post about how to Build the Installers developed using these tools with Team Build 2010. This post will focus on how to build the InstallShield generated packages using Team Build 2010. For the release of VS2010, Microsoft has partnered with Flexera who are the makers of InstallShield to create InstallShield ...
Along with the release of WebMatrix announced here.. http://blogs.msdn.com/b/web... A slew of dependencies were released as well. If you download WebMatrix, it will install these dependencies – also via a new release of the Web platform installer (3.0). You get IIS 7.5 Express for hosting the Web Matrix projects as well. And, to top it off – the Microsoft Web Deploy 2.0 tool… The ASP.NET updates include the Visual Studio 2010 tools updates, ...
I have been specifically requested to blog about getting an ASP.NET 4.0 site working on a Windows 2008 server that has never run a 4.0 web site before. Make sure the 4.0 framework is installed on the server! Patch it will ALL the security patches have been applied. ((for a live server, make sure that you tested the patches on your development server first) You will find the HTTP Log status codes at http://support.microsoft.co... - they are very important in understandign the IIS logs) After ...
I have been spending the last 2 weeks immersing myself in a number of Windows Azure and SQL Azure technologies. And in setting up a new business (I’ll speak more about that in the future), I have also become a customer of Microsoft’s BPOS (Business Productivity Online Services). In short, it has been a fortnight of Microsoft cloud computing. On the Azure side, I’ve looked, of course, at Web Roles and Worker Roles. But I’ve also looked at Azure Storage’s REST API (including coding to it directly), ...
Background One of the clients I work with had been experiencing some issues for a while surrounding web service timeouts. It's been a little challenging to work through the problems due to limitations in the diagnostic information available from one of the applications, but I learned some interesting things while troubleshooting the problem which don't seem to have been discussed much in the community so I thought I'd share my findings. In the scenario we have BizTalk trying to make calls to a .net ...
The “Lessons Learned” blog has an update covering the error message "The protocol 'net.msmq' is not supported." "The protocol 'net.msmq' is not supported." OMG, a new lesson! Will wonders never cease? So I ran into an interesting issue setting up a WCF service to consume an MSMQ queue. I won't bother you with the details of how to actually build a WCF/MSMQ service; there are plenty of tutorials on the subject. I want to share with you an interesting error that I ran into and the surprisingly simple ...
OMG, a new lesson! Will wonders never cease? So I ran into an interesting issue setting up a WCF service to consume an MSMQ queue. I won't bother you with the details of how to actually build a WCF/MSMQ service; there are plenty of tutorials on the subject. I want to share with you an interesting error that I ran into and the surprisingly simple fix. The error occurs when attempting to generate a Service Reference or even simply browsing to the WSDL of your WCF/MSMQ service in the form of a YSOD ...
Cloud computing is about scaling out all your application tiers, from web application to the database layer. In fact, the whole promise of Azure is to pay for just what you need. You need more IIS servers? No problemo... just spin another web server. You expect to double your storage needs for Azure Tables? No problemo; you are covered there too... just pay for your storage needs. But what about the database tier, SQL Azure? How do you add new databases easily, and transparently, so that your application ...
We are currently in the process of upgrading one of our applications to .Net 4.0. Aside from us geeks wanting to always use latest and greatest technologies, an immediate business need for Silverlight 4.0 features justified our upgrade endeavor. The following is a summary of some issues we ran into with our web project: For security purposes, the IIS 7 .Net 4.0 ISAPI filter is disabled. “Allow” it from the ISAPI and CGI Restrictions screen as shown: Figure 1 - Allowing ASP.Net 4.0 ISAPI Filter By ...
With a little help from Shay Levy’s post on Stack Overflow and the MSDN documentation, I added this handy function to my profile to automatically recycle all IIS app pools. function Recycle-AppPools { param( [string] $server = "3bhs001", [int] $mode = 1, # ManagedPipelineModes: 0 = integrated, 1 = classic ) $iis = [adsi]"IIS://$server/W3SVC/... $iis.psbase.children | %{ $pool = [adsi]($_.psbase.path); if ($pool.AppPoolState -eq 2 -and $pool.ManagedPipelineMode -eq $mode) { # AppPoolStates: ...