Tag | IIS Posts

We are delivering an ASP.NET Developer Webcast Series next week. Last quarter we delivered a similar web developer webcast series where we covered some of the new things that are coming up in Visual Studio 2008 for Web Developers, ASP.NET "Futures", ASP.NET 2.0 Deployment Tips and Tricks as well as AJAX Enabling ASP.NET 2.0 Applications. You can view all of these recorded webcasts at our On Demand Page Click on the ASP.NET link under the "By Series" section in the left and you would find all of the ...
I'm curious what people think is that fastest way to show SQL Server data in a web page. Assuming you create the virtual web in IIS yourself, I'm hoping somebody knows of something that lets you create an xml file with connection settings and a query file, then the product automagically puts the data in a grid on the web page. Granted once you're used to Visual Studio it doesn't take terribly long to do such a thing, but I'd still like something faster, maybe something that can automagically create ...
Judging by my limited experiences with Vista the "security" sounds like it might be a case of how much security you need to turn off until your Server actually communicates with the other devices and runs the Applications correctly? Other than that I'm looking forward to seeing just how much can be accomplished with Power Shell, it's certainly got my Brother excited ;-) 10 things to consider when making a Windows Server 2008 upgrade decision Windows Server 2008 is expected to officially launch in ...
I recently needed to do a little analysis of some of our BizTalk implementations and needed to get some information from the IIS logs to help me. I read a little about the Log Parser tool and this post will provide a little about how it helped. Log Parser is a tool which allows you to use a SQL like syntax to parse various types of log files. This can be very useful when looking at a BizTalk environment and you want to be able to interogate a significant amount of logging information. Log Parser ...
I was trying to sovle a sticky problem involving someone else's assemblies but not getting very far -- I needed more information such as line numbers. Usually when you invoke a .NET assembly from BizTalk you need to put it in the GAC and this means you are deprived of the symbols (PDB) which would normally sit beside the assembly in the file system. There are some good posts out there but they seem to relate to .Net 1.0 so they didn't quite work. Here's what you do: You can copy the PDB files directly ...
Now the BizTalk is recognized and advertized mostly as an Integration server. There is an architectural pattern for using BizTalk. BizTalk is used: * as an integration engine, as an integration layer between applications (and as a data transformation layer); * for the workflow applications (including the long-running workflows); * as a host for Business Rule Engine applications. But the BizTalk Server is more then that. The BizTalk Server is a generic Application Server. Now we have the Windows Server ...
We have recently started using Cruise Control to manage our build processes, this works great with asp.net web deployment projects and TFS. Cruise control for those who dont know, is, according to the website "CruiseControl is a framework for a continuous build process. It includes, but is not limited to, plugins for email notification, Ant, and various source control tools. A web interface is provided to view the details of the current and previous builds" We run it on a separate box (soon to be ...
Microsoft has a couple of articles on how to set up HTTP connectivity for SSAS, one for Win XP http://www.microsoft.com/te... and another for Win2003 server http://www.microsoft.com/te... But Vista Business/Ultimate includes the new version of IIS (IIS 7) which means some of the steps have changed a little. So let's walk through the process with the help of a few screen shots. Getting binariesCopy the contents of the %Installation ...
Vinegar is an important ingredient in the kitchen; with it you can make baked tropical spareribs, Indian mutton curry, orange almond greens and a host of other delightful dishes. Baking soda, too, is an essential ingredient in nutmeg raisin coffee cake, buckwheat pancakes, and many other delectable baked goods. Both are useful, reliable, and safe in storage. However, as any fourth-grader who has ever attended a science fair can tell you, all you have to do is mix the two to create a volcano that ...
I've been experimenting with the Server Core version of Windows Server 2008 for a project I'm working on. You may be aware that Win2K8 ships with this great new streamlined "Server Core" mode that you can select during setup. Installation is lightining-fast, just 10 minutes on my Core 2 Duo machine. (And that's including the 2 reboots, hardware detection, and everything!) You end up with only a very minimal set of GUI tools, including notepad and regedit. The thing is lean and mean, and can run very ...
Microsoft provides three approaches for upgrading from WSS 2.0 to WSS 3.0. More here. If you are installing WSS 3.0 on a different server than the existing WSS 2.0, the only approach available is the “Database Migration”. This approach is considered "advanced" and requires additional steps. If you have a WSS 2.0 that has not been customized, this seems likes overkill for such a simple upgrade. The following approach lets WSS do some of the behind the scenes work for you. This approach has WSS 3.0 ...
IntroductionThe 404 or Not Found error message is an HTTP standard response code, there are many reasons for a 404 to show up like, Mistyped URL Pages have been moved. Pages have been deleted. The default error page for 404 may look something similar to this: The purpose of this blog/article is to discuss ways to handle 404 smartly in ASP.NET. So the big question is how? On an event of 404, the first thing I would try do is to catch the event and redirect to somewhere where I can handle it in a more ...
Well John and I are back in the swing of things. We have reorganized the equipment to make it easier and faster to record podcasts. Watch this blog for our next move as it should happen fast. Here is a recap of the HDC podcasts we recorded: Joe Olsen and Phil Wolfe, HDC coverage and our last podcast from the event Don XML - LINQ, VB Literals, New XML Technologies Chris Williams - XNA and Game Development Adam Esterline & Chris Ortman - Ruby, Agile, Testing Kent Tegels - SQL Adoption and features ...
*Moved to: Why Integrated Authentication does not work with host headers!You receive error 401.1 when you browse a TFS Web site that uses Integrated Authentication and is hosted on IIS 5.1 or IIS 6 This little problem occurs when you have Windows 2003 SP1 or later installed and you try to change your Team Foundation Server to a friendly name, like say tfs01.[intranet].[company].... more...Follow my new blog on http://blog.hinshelwood.com ...
To address user dynamic security for a specific dimension, we have used the technique we found from the article “Implementing User-Specific Security in SSAS” from Hitachi Consulting Microsoft BI found at http://hccmsbi.blogspot.com... This approach defines 2 new tables to the AdventureWorksDW database, DimUser and the fact-less fact table FactResellerUser. The DimUser table contains the UserName column which will be set to the domain user. The FactResellerUser ...
The former Ohio Developer Evangelist and now IIS Evangelist in Redmond, Drew Robbins, discusses what changes are coming out in IIS 7 and how it is different than IIS 6 and IIS 5. Drew is one of my favorite Microsoft employees and is a very sharp guy. Click here to find out more about IIS 7. Definitely check out the shared configuration logic. Listen to Drew talk about IIS 7! Technorati tags: HDC, Drew Robbins, IIS ...
I am back to blogging after a vacation..! This time I had an issue with TFS Alert not working properly. You need to make sure that you have done the following setting properly: C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services\Web.config <add key="emailNotificationFromA... value="TFSAdmin@Company.com" /> <add key="smtpServer" value="ExchangeServerName" /> Now you need to reset IIS or recycle the pool that "Services" application is linked with. ...
I know this is going to come as a shock to you, but there were a few places where I might have slightly exaggerated in my last post. For example, the Alt.NET exclusivity test we had to take really only had about 5,000 and not 6,000 questions on it and Scott Bellware did not actually carry a sword when he came out in his gladiator costume like the now famous photo suggests (the power of Photoshop). I sincerely apologize if I have shaken your faith in the veracity of my investigative reporting. As ...

Anyone know how to get a WCF Host in IIS to behave as a specific user?

I want my WCF Service to use a specific user for database access and i don't want to spec a username/password in my connection string.

-d

SITUATION: I needed to find out how many people hit and stayed on an internal company site per day on average. So, I looked through the many MANY IIS log analyzers available on the nets to help me with the task. SOLUTION: While I was looking for a decent one I found the LogParser tool by Microsoft, which caught my eye because it's free. I ended up using a 30-day eval copy of something else, but I kept monkeying with LogParser because it survived the 30 days. INFO: http://www.logparser.com/ - The ...
Yes, we have Windows Server 2008 coming. Yes, also SQL Server 2008 and Visual Studio 2008, the .NET Framework 3.5, and more - but probably one of the more exciting new items to come at this same time is IIS 7. As Scott Guthrie states in his recent blog post on IIS, this is a major update to the technology. IIS 7 will allow for a plug-in architecture and allows you to take out all the pieces of the IIS stack that your applications don't need. It also allows you to build your own extensions and plug ...
Today I exposed my first WCF service in the 'old fashioned' Web Service way. The WCF service behaves exactly as ordinary Web Service hosted in IIS. It wasn't as easy as I thought. The app.config of the WCF is complicated a bit and I couldn't find appropriate sample. Hmmm, in such case I say: I just don't know what to type in google to find the exact answer. I finally found it here: http://msdn2.microsoft.com/... The article describes how to create WCF service that can be ...
I am currently reading a great WCF book by Juval Lovy (I am not sure if I picked the proper o sign) which can be found here: http://www.amazon.com/Progr... I know most of things that are there as I read almost everything that is in the MSDN on the WCF but the book is written in a way that particular topic is described fully in a one place. I actually do not read it and just walk through it, analyze the code samples and read only those topics I am intersted ...
Michael Washington posted a DNN/Silverlight Picture album viewer; Andy Britcliffe posted an article to help debug Silverlight no-show issues; vivekdalvi discusses XamlReader.Load; Craig Dunn has an example of combining Silverlight and Virtual Earth; Bob Familiar discusses Silverlight 1.1 and Web Services; and Dave Campbell [that's me :) ] posted a write-up on the Desert Code Camp III Silverlight presentation of a Silverlight 1.0 Outlook Bar From SilverlightCream.com: Silverlight Album Michael Washington ...
Like most BizTalk Server developers I am addicted to the use of DebugView. This, in case you are one of the three BizTalk developers out there who are still not aware of it, is a free utility written by the SysInternals people. Microsoft bought SysInternals a while back, and the utility can now be downloaded from their web site at: http://www.microsoft.com/te... DebugView provides a viewer for traces created using the Win32 OutputDebugString() API. You can ...
The new Central Administration site for WSS 3.0 is proving quite easy to use. In fact, it's so easy to use you can click some links, fill in the blanks and have a new Web Application in no time. It's so easy, if you don't know the best value for the "fill in the blanks" as you create the Web Application it still works. But then, if you want to remember what your answers were; it's not just a single click away. I needed to document the steps used in creating a Web Application and after some digging ...
The challenge I was facing was being able to accomplish the following within a single ASP.NET application: Use an NT authenticated connection to my SQL Server database; this would assume the identity set for the IIS application pool Disable anonymous access to my web site; only allow Windows Authentication Force all use of the TFS API to happen within the context of the Windows authenticated user First, in ASP.NET, in order to force the execution context to use the identity of the person browsing ...
My article on using managed code to detect what versions and service packs of the .NET Framework are installed on a system has been updated to account for a minor registry change between the January 2007 CTP and Beta 2. Along with that article, the article on using managed code to detect if IIS is installed and ASP or ASP.NET is registered has also been updated with the same fix ...
If you find yourself needing (because I'm not sure anyone would WANT to do this here in 2007) to work in classic ASP on a dev machine running IIS7, you have to enable/install ASP first since its not part of the package by default. Go to Control Panel/Programs and Features, then select "Turn Windows Features On or Off". Once you're into the Windows Features interface, navigate to Internet Information Services/World Wide Web Services/Application Development Features and check off ASP (I noticed that ...
So thanks to Doug at DABCC there is this article - this also contains a downloadable PDF of Credit Suisse's research on Citrix Is Citrix Making A Broader Virtualization Play? Posted on Friday, August 10, 2007 2:47:00 AM - E-mail Printer Friendly Version Written by: Philip Winslow and Dennis Simson Implications. In our opinion, one of the Xen developers—either XenSource or Virtual Iron—could represent an attractive target for Citrix, as we believe that hypervisor and associated management solutions ...
I was recently asked what tools do I use on a regular basis. As I thought about the question I realized that I have a heavy load of links, apps, and tools that I use frequently for administration of my sites. I decided I would put a list of these tools together for other administrators. My next series will contain downloadable tools Online tools - Tools that are available online to help with the administration of IIS and web servers. Please add comments or additional tools that I may have missed: ...
I'm running into an issue trying to export a file from an ASP.NET page. When trying to export the Excel file (which is created in-code and returned in the response of the page), it works fine in HTTP...but as soon as I add an 'S' to the end, things go wonky: - It tries to download Default_aspx instead of the Excel file We monkeyed around a bit with some different code altering the Cache values and tried to see if we could set anything in IIS directly, which now has us at this: - When you try to download ...
I decided to take the time to download the latest beta of Visual Studio. Below are my impressions from initial usage. This mainly means I opened the environment and played a little. The first thing that you notice is that the IDE looks essentially the same as it did for VS2005. When you create a new project you will notice that there are now options for WPF, WCF, WF and AJAX projects. Seeing as I spend most of my time in web applications I figured that would be a good place to start. It is good to ...
While I have been writing a lot about ASP.NET AJAX and other stuff, I also wanted to keep adding my little nuggets on ASP.NET 2.0 which is one of the favourite platform for Web Development. While working with ASP.NET 2.0 and Visual Studio 2005, you may not know certain new things which are a part of it and usually go unnoticed. Atleast I missed them and after a year, completing a big application realized that it would have been great if I had used these features. So, here it is, 10 things you might ...
While having my first steps towards learning WiX v.3, The first step was to read some of the tutorials over here, then after downloading the samples I started exploring them to learn more. In my very first sample (named SampleWebDir) almost the simplest one although I had some troubles because the samples were built using the WiX v2 while I am trying to build it using v3. Simple changes had to be done inorder to make it built: Change the Wix Schema from xmlns='http://schemas.micro... ...
I've been through almost all sorts of Timeout related issues with Asp.net web service development. I’d like put a check list here to remind myself and hopefully save some headache of yours. If use database, you may get ‘System.Data.SqlClient.SqlE... Timeout expired’: a: Check your connection string setting for ‘Connect Timeout’: I.e. connectionString="Data Source=SNYC14D11511;Initial Catalog=d_dbivt003;Persist Security Info=True;User ID= user;Password= Password;Connect Timeout=4200 b:Check ...
I had to install the latest Infragistics ASP.NET suite of controls for testing, but ran into an odd problem: every time I went to install, I'd get an error right at the end telling me very ambiguously that there was a "fatal error" and that the "product wasn't installed due to an error". Great...thanks. Doing what any other good geek would do, I began to investigate this obvious issue with Infragistics and Vista online, hunting for any article that could shed some light on what the obscure error ...
Okay, so I am back with another rendition of things I should have learned in Kindergarten, but must have been absent that day. J Thursday of last week , we had a team site owner cleaning up a her team site getting rid of things that were no longer needed and lists that were no longer used. Well, it just so happens she executed a click path that sent about 23 of her 78 sites in to the ether and whenever she or her teammates tried to access the sites they would get a plain SharePoint "500 – Internal ...
I can see I will need to check the price of the Sony MicroVault as Dugie is right, it certainly is small enough to fit in your wallet I would simply add to this with TeraCopy (previous post) being a tool that can support the resume function in traditional SMB, LAN, WAN connections just as it is possible via FTP. I have found myself stuck with trying to download 100mb or more over a VPN just knowing that it will timeout at some stage but being absolutely helpless - well now it doesn't matter with ...
Having worked on a real SOA project for over 3 year I think it's time to examine the reality SOA on .NET. Introduction SOA is standards based late bound distributed systems. In traditional programming, when function A call function B, the compiler and/or linker binds the functions together. In SOA you embed a logical address for the function to call and assume the binding will take place at run time. This isn't the formal definition of SOA but it is the key enabling technique. Distributed late binding ...
UPDATE (12/17/2007): My blog has moved. This post is now located at: http://jason.whitehorn.ws/2... To correspond with the release of aspNETserve version 1.1, I have written a simple demonstration of hosting an ASP.NET 2.0 web server right into your own application. The following code sample is about as simple as it gets. using System;using System.Collections.Generic;... System.Text;using aspNETserve;namespace ConsoleWebServer { class Program { static void ...
First, let me correct my service implementation. I must have missed my low caffeine light when I wrote the implementation. The code should read str = str.ToUpper(); and str = str.ToLower(); to work. Amazing how returning the string you sent offers little value. Not that this particular service is of great value, but at least now it does what I intended. What we have done so far... So far we have a simple, 3 method web service, using basichttpbindings, sending strings in and out. This should be very ...
Hmm.....I have a very under utilised Blog. Very sad indeed. Not sure if that's because I have nothing to say or I am just too lazy to put it up. Probably the latter. Anyways, I attended a Windows Server 2008 Technical Readiness event yesterday in Melbourne. As I was too busy in the past, I never had a chance to look into what new goodies Windows Server 2008 will bring, so I thought this would be a good opportunity to find out more. Surprisingly, the session was quite informative and did not turn ...
Yeah, Tech Mela is over now. I am back home after an extensive week of travel / planning / tensions and some useful presentations. Last month has been a busy month with me delivering "Next Web Day" Sessions in two cities, "AJAX Virtual Classrooms" for five days and a few trainings for our partners. But Tech Mela was the big daddy of all. The amount of work and planning we had to put to bring this up is phenomenon and the results have shown the same. TechMela was a huge success considering the volume ...
Configuring CruiseControl.NET for IIS 6.0 In your system's IIS Admin tool: 1. Map a virtual directory to the 'webdashboard' subfolder of your CCNet folder (typically called ccnet) 2. In the configuration for this virtual directory, click the Configuration button of the Virtual Directory tab 3. Click Add to add a new Application Mapping 4. In Executable, enter the location of the aspnet_isapi.dll file you use (look at the .aspx mapping as an example. A typical value would be c:\WINDOWS\Microsoft.NET\Fr... ...
Ha man !!!! 2 evenings lost trying to make this darn simple web app. It's a Web Client Software Factory - June 2007 project on Vista box and whenever I was running the web app, I would be getting: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.Hosting.HostingE... Failed to access IIS metabase. The process ...
With less than 24 hours to go for TechMela to begin, I thought I should brief a little about the sessions that I am going to deliver in the Web Platform track. The first session is going to be on Upgrading your existing ASP.NET 2.0 Applications to AJAX. Many of you have invested already in ASP.NET 2.0 and built cool applications. Now you can find out how you can upgrade those existing applications to ASP.NET AJAX. The session is going to talk about the intricacies and tips / tricks while upgrading ...
Visit http://www.silverlight.net for more information, downloads, samples, etc. Silverlight is a browser plug-in that runs on IE, Firefox and Safari - Windows and Macs Silverlight is a vector rending engine that supports an upward compatible 2D subset of WPF graphic description language XAML Silverlight has built in media support for wmv, wma, mp3, jpeg and png files on both windows and MAC with a few lines of code and WITHOUT media player The 1.0 Version of Silverlight supports javascript client ...
TechMela is almost here. If you have been following my posts on TechMela you would get the volume of the efforts we are putting into this event. With 3 Days, 7 Tracks, 150 Sessions and 300 HOLs, its the biggest event we have ever managed to roll out and this could not happen in all the cities considering the efforts required and the varied audience requirements in different cities. TechMela Web Platform track is all about the Web and its new paradigm and the bunch of technologies floating around ...
Courtesy of bink.nu I found Web Server Software and Malware and this makes some very interesting reading Which kind of makes Roberts comments very valid - Time for Microsoft to Change Its Patch Policy? Distribution of web server software by country. Web server distribution by country Malicious web server distribution by country The figure on the left shows the distribution of all Apache, IIS, and nginx webservers by country. Apache has the largest share, even though there is noticeable variation ...