Tag | IIS Posts

All MIME types needed to support hosting Silverlight applications are implemented by default in Windows Server 2008 IIS 7.0 and Windows Vista SP1. However, a little manual effort is needed if you want to turn on Silverlight support on IIS 7.0 on Windows Vista RTM (without SP1) or IIS 6.0 on Windows 2003. The following three MIME types are required to host Silverlight applications in IIS. .xap application/x-silverlight-app .xaml application/xaml+xml .xbap application/x-ms-xbap If you are using IIS ...
We're looking at using Microsoft's ESB Guidance package to implement a message bus. The bus will be the core of the client's planned Service Oriented Infrastructure, and all existing apps will route communication through ESB. There'll be a few posts coming up covering what it provides, how to use it and some simple walkthroughs, but I'll start with a basic overview and installation tips. Overview Ignore the name - ESB (Enterprise Service Bus) Guidance is not a set of documents giving you best-practice ...
I spent a couple hours today installing Windows Server 2008 on my home server. I have to admit, this was the easiest and fastest Windows OS software install I *EVER* completed. My goal was to build a Windows 2008 Server as a VPC host using Hyper-V; I literally spent more time installing the Hyper-V Role than installing the Win2k8 OS (I suppose this is the benefit of Role based installations). Do yourself a favor and download this utility (http://www.grc.com/securab... to verify your BIOS is configured ...
I recently put together a glossary of common security-related terms to aid in discussions around "Single Sign-On" scenarios. I've experienced this a few times now -- a level-set on terminology is almost always needed to make security discussions productive from the start. Oftentimes the terms are confused, misused, or ambiguously defined. I have attempted to stay general with the definition of terminology, however, since I'm a Microsoft consultant the examples and products mentioned are Microsoft's. ...
When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and delegates were given CDs containing a pre-release version of the .NET framework/SDK and Visual Studio.NET. When was the first version of .NET released? The final version of the 1.0 SDK and runtime was made publicly available around 6pm PST on 15-Jan-2002. At the same time, the final version of Visual Studio.NET was ...
Authentication in ASP.NET There are two closely interlinked concepts at the heart of security for distributed applications - authentication and authorization. Authentication is the process of obtaining some sort of credentials from the users and using those credentials to verify the user’s identity. Authorization is the process of allowing an authenticated user access to resources. Authentication is always precedes to Authorization; even if your application lets anonymous users connect and use the ...
If you don't know by now you can reset your web applications and or web sites with a simple change to the web.config. For example you can FTP(if remote or hosted) to your server and edit the web.config by adding a space or removing a space. Basically you want the application your using editing with think something has changed since you touched the document. Save the form after this has happened and IIS will recycle the application / web site. This however can be tedious and just well feel like a ...
When you want to host Silverlight 2.0 applications in IIS you need to add the extension .xap for the MIME type applicaition/x-silverlight-... otherwise zip, no errors, nadda, nothing, zilch!! Technorati Tags: Silverlight 2.0,MIME type ...
Microsoft EDC 2008 Website is UP. You Can Click Here To Register. EDC will be April 13 and April 14 - In Cairo International Conference Center (Agenda) But Watch out. The Attendance Fee is 100 EGP. There're Invitations Available. An Invitation Code is required to register, and you get that by calling the guy mentioned in the right top part of the registration page, and you can call his mobile phone only on Egypt working hours. I've written about Microsoft EDC 2008 (Egypt Developers Conference 2008) ...
Last week Microsoft release the first Technical Review of the administration pack for IIS 7.0. Brand new features for IIS Manager will help you in a bunch of different scenarios. Configuration Editor: The configuration editor module will help you manage your configuration files. This tool is available for server administrators only. It allows you to edit any section, attribute, element or collection in your configuration file. In addition to editing these values you are also able to lock and unlock ...
Yes folks, I received one of the most abstract error messages from MOSS the other day. When trying to provision a new site collection (team site site collection, that is), the error message that was thrown by MOSS was titled: "Unknown Server Error: d". After checking my usual spots for crazy activity when errors are thrown (event logs, IIS logs, MOSS logs, etc.) which turned up nothing, I tried to provision a new site collection of a different type thinking "ahh...it must be in the site provisioning ...
Rob Houweling tackles unpacking ZIP files in SL2, Marlon Grech on the DataGrid in Blend, Jesse Liberty on Routing & Bubbling again and discussed SL/WPF, Delay delivers SilverlightDefaultStyleBrow... Walter Oliver on IIS and SL, Jon Galloway on DeepZoom, Shawn Wildermuth on SL2 conversion issues and his Silverlight Page and SeeqPod Player being converted to SL2. From SilverlightCream.com: Unpacking files in Silverlight 2 Rob tackles unpacking ZIP files in SL2 using ICSharpZipLib instead of using ...
Fix for "Unable to get the private bytes memory limit for the W3WP process. The ASP.NET cache will be unable to limit its memory use, which may lead to a process restart. Error: 0x80070005"
This has been pooled together from a number of resources: What is ASP.NET? Microsoft ASP.NET is a server side technology that enables programmers to build dynamic Web sites, web applications, and XML Web services. It is a part of the .NET based environment and is built on the Common Language Runtime (CLR) . So programmers can write ASP.NET code using any .NET compatible language. What are the differences between ASP.NET 1.1 and ASP.NET 2.0? A comparison chart containing the differences between ASP.NET ...
I being a very intelligent web developer (This is true). Decided it might be fun to delete the Default Web Site in IIS6.0 not thinking much of it. Of course it wouldn't have mattered at all, at least until I decided to install commerce server 2007 enterprise on the production server that I had deleted the Default Web Site. Why was this a problem you ask? Wow good question. Here's the long and short of it. When installing Microsoft Commerce Server 2007 sp1 you can get about oh I'd say 5 minutes into ...
So the experiment I was working on the other day was successful and now I'm in the process of applying it to other selected servers. In short what I set out to do was to take an existing server I had running, and virtualize it so I could change things as needed and move the "server" to other physical network environments as needed for testing. To do this I've taken an HP DV9000 laptop with 2GB of RAM and am using it as the virtual PC host. The other steps are outlined below: Create a blank VPC with ...
Okay, so "everyone" hates Visual SourceSafe. But the simple truth is many .NET developers have access to it for free because it comes with their MSDN Subscription. So a lot of .NET developers use it and they are familiar with it. Not because it's the best, but just because it's there. When we launched the new company we too went with Visual SourceSafe because it was included in our subscriptions, we were familiar with it, and it was better than nothing. But since then it has failed us in the biggest ...
The new edition of the Wrox ASP.NET book is officially on the shelves today! Amazon received their shipment and it is now in stock for a CHEAP $34.64. My co-authors, Scott Hanselman and Devin Rader, revamped this book and added quite a number of new pages to deal with the new features from AJAX to IIS 7 to LINQ to this book. We really focused on helping the ASP.NET developer understand the tools, APIs, controls, and environments at their disposal for this release. ASP.NET is, in my humble opinion, ...
Well, even though I had heard before that Vista SP1 wasn't going to be out until March time and I just did a quick Google News search and the most recent article from Computer World still says that it won't be released until then, I was surprised to see that Windows Automatic Update had downloaded SP1 and was ready to install. I had heard about issues people were having with it making their computer unbootable, but since I had migrated to Vista x64 I was missing the additional features SP1 brought ...
I was trying to host a small DNN application in one of our Server and I was facing couple of issues. Problem 1: The first problem I faced is it was always redirecting to localhost, whenever I tried http://domain.com/dnn it was redirecting to http://localhost/dnn as a result the site was un-accessible from outside. Solution This was easy to solve.1. I needed to log in as host account.2. Then I needed to go to the Admin > Site Settings page3. And finally In the Portal Alias section I added a new ...
Grrr... Just wasted lots of time on a stupid mistake due to misleading error message. I hate it when that happens. I usually do self-hosting for my WCF services, but on a project I am working on we wanted to host in IIS. I was focused on the security aspects - trying to get Integrated Windows security on a web site, using impersonation to call the service under the client's credentials, protecting the service with Integrated Windows Authentication and turning off anonymous access in IIS. I was trying ...
Today was .NETwork usergroup second gathering. The usergroup is the first and only large/effective "offline" usergroup in Egypt (although there're many others in INETA). They had a great success in their first gathering when they brought Steven Forte to talk about SQL Server 2008 new features for developers and ASP.NET MVC design pattern. I had a detailed post about it in my GWB blog at that time. Check it out for details. Background: First To Second Gathering (Warning: Boring Part!!) The .NETwork ...
A question was posed to our user group's listserv yesterday. After typing up a response I saw that I had written a short novel on the subject, and thought it may be of use to those outside our group. First the question posed: > My employer doesn't want to expose it's production databases to the world, so they sit safely behind a firewall. The production web servers want to talk to those databases, so we open the right ports to let them talk through matching, local machine user accounts. This way ...
This error occurs when attempting to view an asp.net application (using the Run button or right clicking on the project and selecting 'View in browser'). This usually occurs because the browser is looking for something that does not exist. For example, when using the project name 'MyProject', VS opens a browser with the following URL: http://localhost/MyProject/ Although this points to a project (virtual directory/application within IIS), it does not point to a specific resource. In my case I just ...
I found that one of my ImageButtons stopped sending postback. I've noticed that it uses DoPostBackWithOptions. I remembered, that I had a problem when my page had PopupControlExtender and Validation controls(see.How do I get rid of DoPostBackWithOptions? ), but it was not a case this time. I've checked that it is nothing with IIS setting for handling ".axd" extensions - checkbox for "Check that File Exists" is unchecked! (see WebForm_ DoPostBackWithOptions not defined ). Finally I understood that ...
So someone was bound to do it sooner or later... might as well be me ;-). I got the new shinny Windows 2008 ISO from MSDN and install in a VM. 20 min later I was logging into W2k8. Very nice. I then add the IIS 7.0 feature and following the TFS install guide info about 2008 selected the proper added features ASP.NET HTTP Redirections IIS 6.0 Compatibility Default options Windows Authentication So far so good... I then used my scripts to install SQL 2005, I got the incompatibility prompt for SQL 2005 ...
I put together a WCF REST over HTTP service and learned a few things along the way. Sample Project The best way to learn about WCF REST is to examine the sample project supplied by Microsoft. This is available at Windows Communication Foundation (WCF) and Windows CardSpace Samples. Once you unzip the download you'll find C# and VB sample projects at TechnologySamples\Scenario\... These simple projects demonstrate everything you need to know. Creating Your Own Project The Visual Studio project ...
Loosely stated, an event storm is a large number of warming, informational and error class occurrances on a given node (or array of nodes) over a relatively short period of time. Since these events must be detected and addressed to improve the health and reliability of any given system, a whole science and collection of supporting applications exist to best manage these occurrances. The best academic abstract/whitepaper I've seen on the topic comes from Mouayad Albaghdadi, Bruce Briley and Martha ...
A number of months ago I did a couple of posts about how we integrated the Soap and WSE web service publishing wizards into our build process as MsBuild tasks. These posts are located at the following url's: Soap Adapter: http://geekswithblogs.net/m... WSE 2 Adapter: http://geekswithblogs.net/m... Now that BizTalk 2006 R2 is around I want to have the same approach for the WCF Publishing Wizard. Before I get into ...
Here's an easily misinterpreted error when consuming a WCF service that's hosted in IIS (vs. a self-hosted service): The content type text/html;charset=iso-8859-1 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. This typically happens with a mis-configured service. Anything that will result in a configuration or compile error will be returned as a 500 ...
When working with Visual Studio 2005 on Windows Vista and create web applications running out of IIS 7, you need to perform a few steps before getting it work. I had blogged about it, in my earlier post However, after performing all the above, you might still get "An authentication error occurred while communicating with the web server. Please see Help for assistance" when trying to create a website / debugging a website created using Visual Studio 2005 running on a Windows Vista with IIS 7. There ...
If you are working with Windows Vista and IIS7 and developing web applications using Visual Studio 2005, you might want to know certain things before you panic on getting issues with creating http://localhost applications running out of the IIS Webserver. With Windows Vista, we ensured that security is the utmost important aspect and anything that needs an administrative privielege (could be running a script, could be creating a website in your webroot or simply could be changing your desktop resolution) ...
*Moved to: Kerberos and SharePoint 2007If you want to use Kerberos authentication and not NTLM with SharePoint then there are some extra tasks that you need to get someone with Domain Admin privileges to perform. For EVERY dns / port combination a SPN needs to be added to Active Directory to tell it that it is allowed to use Kerberos to authenticate a specific account or server to that URL. In a production environment with a farm of multiple server you will need to use the account option. The account ...
I recently had a bear of a time trying to determine why a particular web application wasn't behaving like it should. As part of my log checking I was going over the HTTPErr logs in IIS in addition to going over the standard IIS logs and event logs. While I have a good amount of experience pouring over and making sense out of event logs and IIS logs, I hadn't really looked at HTTPErr logs too much in depth until then and wanted to find out more...after a quick search I came up with the following Microsoft ...
Note: This is ported from my old weblog. Originally published June 22, 2006 First, I assume here that you know themes and read about them, but are a bit afraid or unfamiliar with using them. If you don't know what are Themes and skins in ASP.NET 2.0, check their section on MSDN as well as this great article (another one). Do you know that... Do you know that you can provide intellisense to skin files in VS2005? Simply go to Tools menu, click Options, and from the tree in the left, expand the node ...
Recently on a project, I was bit hard by a Least User Access (LUA) bug that I ultimately should have caught. I was using a third-party component which was performing some unexpected operations. I didn't catch this item, however, until it almost went live. And it was intermittent at best when it failed. This was an unknown unknown as opposed to one of those known unknowns. So, where did my process go wrong? LUA and Development Going back through my career, I've usually been security focused. I want ...
Reason behind installing another server to your system Whichever platform you have been working with must using a server. For .NET developers, IIS eases all the pain. So, what is now if you must install PHP in your system side by side .NET. I suggest you not to install PHP in the same server the .NET is working in. So, install another server which will work with all burdens of PHP stuffs. Why Abyss? The reasons behind choosing this server is Abyss is free, easy to configure, very lightweight, and ...
This article is a Part 3 of the Interview Questions series. Part 1: BizTalk: Questions for interview without answers Part 2: BizTalk: Interview questions and principles Part 3: WCF: Questions for studying and interviewPart 4: WCF: Questions for studying and interview: DiscoveryPart 5: WCF: Questions for studying and interview: Routing Service Part 6: BizTalk: Advanced Questions Additions (2008-06-18): Debugging: What tools are used for the debugging WCF? Is it possible to log the messages on the ...
The PUT method not as widely used as the POST method is the more efficient way of uploading files to a server. This is because in a POST upload the files need to be combined together into a multipart message and this message has to be decoded at the server. In contrast, the PUT method allows you to simply write the contents of the file to the socket connection that is established with the server. When using the POST method, all the files are combined together into a single multipart/form-data type ...
Mutex Could not be Created. Some time while running ASP.NET web application through Visual Studio you might receive following error Server Error in Application. Mutex could not be created. Few workaround for “Mutex Could not be Created.” Interview Questions | ASP.NET Interview Questions | .NET Interview Questions ASP.NET 2.0 Interview Questions | .NET 2.0 Interview Questions | SQL Server 2005 Interview Questions “Mutex Could not be Created.” Solution number 1 1. If your visual studio 2005 is open, ...
I just signed up the Philly.net Code camp. Did you? There are only 400 seats available! Here are the details: Our first installment of the 2008 Code Camp series will be held at the DeVry University campus in Fort Washington, PA on Saturday, January 12 from 8:00-5:30. Please register on our web site.-->Detailed directions are on the DeVry web site. Lots of code, just say no to slides! 9 hours 48 sessions (8:00, 9:30, 11:00, 1:00, 2:30, 4:00) 8 tracks 400 seats with tables (laptops welcome) Free breakfast, ...
Recently I submitted a patch for the MSBuild.Community.Tasks because there were certain tasks that were not working for us. I decided to blog about this because there are others that indicated they were having the same issues. In IIS, you are able to specify more than one website with the same ports. By default, the WebDirectoryCreate task will always loop through and choose the last website with that port. If you do have more than one website with the same ports, you need to distinguish differences ...
Glen Gordon will be coming to town on January 24th 2008 to host an MSDN Event titled “What’s New in IIS7 and Extending ASP.NET 2.0 Application Services” Here’s a quick overview of what he’ll be covering: • Authentication methods and integration between ASP.NET and IIS 7 • Writing IIS managed handlers and modules • How the IIS protocol listeners support hosting WCF services on TCP, Named Pipes and more • IIS handler permissions, request filtering and administration lists • How the XML replacement ...
While trying out the /n software IP*Works! 3-D Secure MPI C++ Edition (for implementing Verified By Visa, MasterCard SecureCode, or JCB J/Secure) I needed to figure out how to run a CGI application in IIS7. I had a compiled c++ exe (3dsecure.exe) that would handle my 3d secure authentication, but what was the next step? Here's how to do it: First, go to the Internet Information Services (IIS) Manager snap-in. Click on the server in the Connections list, and then click on "ISAPI and CGI Restrictions" ...
Just solved a problem, and wanted to document the solution. Problem: SharePoint MOSS 2007 Central Administrations site. Select Application Management --> InfoPath Forms Services --> Manage form templates. This runs the page _admin/ManageFormTemplates.... Response is the ever-helpful SharePoint screen: Error. Unknown Error. Thanks, guys. How do I turn on custom errors in SharePoint? And how do I get Manage form templates to work? Disclaimer: `No warrantees, express or implied, are granted with ...
I wanted to disable a few web application on IIS server, running within the same application pool. I've opened the pool properties, but I didn't find the option to disable. I've tried to find in Google, but didn't find the answer. So I decided that changing identity to some not authorized user will be sufficient. Fortunately, my collegue told me, that to disable pool you need to STOP it. And pool will be stopped until you as Admin explicitely start it.- it is not re-started autiomatically after reboot. ...
Name: Everything runs as the same user Description: This situation exists on some of the test environments at a project I have been working on. Basically all of the BizTalk hosts and IIS application pools are configured to run as the same user account because it is easier to setup. This is especially common for development and testing environments. I came across the situation on this particular project where the user account had become locked out and as result testers on three different environments ...
I have just encountered a very bizarre and annoying problem today and thought Id do a quick post to vent my frustration. Problem Ok so in one of the testing environments we have a BizTalk application running which had been fine. There are a combination of recieve locations from some orchestrations published as web services. 2 ports are one way recieve and the rest are 2 way recieve. As I say all had been working fine, then today the one way recieve ports started to have problems. The symptoms are ...
Background and Problem Recently, I developed a website which implements PKI infastructure. On Click of a Button I sign and encrypt a document and send to desired location. During the development I have put the signer certificate in my "Certificates-CurrentUser" store and worked good. But when I deployed the site in production I found that IIS cannot locate the certificate from "Certificates-CurrentUser" store.Initially I wrote this code and which was the CULPRIT:object locationCertificate = "SomeCertificate";X509Store ...
Today I encountered the following error after changing a value in a web.config file of a published webservice on two nodes of an NLB cluster "Attempted to access an unloaded AppDomain" After the web.config change all web service requests failed. The solution was to reset the IIS and restart the corresponding BizTalk Hostinstance. (although I think restarting IIS should have been enough) The interesting thing was that another application, running under the same AppPool also had the same error. Update: ...