Tag | IIS Posts

It is always interesting to find out what technology I will have to work with next. One of the latest that I’ve had to learn is PHP and since I am running Windows 8 I had to get it working in that environment. At first I tried just downloading the Apache server files and running that, but then you have to deal with possible collisions between Apache and IIS. In the end I found out that it is easier to setup PHP for IIS. The first thing you need to make sure that the IIS feature installed. Then you ...
Node.js is a server-side JavaScript platform "for easily building fast, scalable network applications". It's built on Google's V8 JavaScript engine and uses an (almost) entirely async event-driven processing model, running in a single thread. If you're new to Node and your reaction is "why would I want to run JavaScript on the server side?", this is the headline answer: in 150 lines of JavaScript you can build a Node.js app which works as an accelerator for WCF REST services*. It can double your ...
Recently, I came across an issue where I had to change the size limit for WorkItem Attachments in TFS 2010. I searched all around the internet only to find very little information around it which wasn’t clear honestly. So after breaking my head for sometime, I was successful in doing it. Here are my conclusions and the procedure to do it. 1. You DON’T 'have to' programmatically change it. You can do it directly from IIS webservices. 2. You CAN change it programmatically too, by making an entry into ...
If you are installing SharePoint 2010 on a new box you might see the Setup Errors notification from the installer. In my case, I am using Windows Server 2008 R2, but I have seen the similar Error on Windows 7 as well with little less requirements. As you can understand all the “-“ bullets are the requirements that needs to be installed or configured on the box. There are two ways to do this 1) Microsoft SharePoint 2010 Product Preparation tool In the SharePoint 2010 Splash Form, you can find that ...
Let me start off by stating that I am in no way an expert on MSBuild, writing build scripts, MSDeploy, Web Deploy, etc. I learned a lot in this process about those things which helped me find a workable solution. I'm sure there are better ways to accomplish what I'm trying to do, but this is what I came up with. My goal in writing this is that someone will hopefully avoid wasting their time as I did trying to get app_offline.htm to work.For those of you who don't know what app_offline.htm is, it's ...
Red Gate launched the Ants Performance Profiler 7.0 product today. This application is simply amazing! SharePoint 2010 support! Decompilation without PDB using Reflector’s engine! Azure and EC2 Support! Seriously, if you need a profiler for your .NET applications this one takes the cake. They have some great videos online to show you how the product works and the team is very interactive if you have questions or concerns. There is also a 14 day trial so you can give it a go. The license fee is only ...
Translate this pageArabicBulgarianCatalanC... SimplifiedChinese TraditionalCzechDanishDutch... CreoleHebrewHindiHungarianI... TranslatorCheck out this page in {0} translated from {1}translated fromOriginal:Translated:Aut... translation powered by Microsoft® TranslatorStart translatingStop translatingCloseClose ...
It's important to understand the account that IIS is running under when you need to make changes to the security settings. If, for example, your Web application writes to files or to a database, you'll need to grant the correct permissions to the folder or database. Before you can change these security settings, it's important the know what account IIS is using. This FAQ details the various options available, both for "classic" ASP and ASP.NET applications. There is a big difference between classic ...
It’s known that on web Farm using of eTags under IIS doesn’t work properly unless all servers are synchronized.http://support... suggests to synchronize the ETag values on all the Web servers that are running IIS using Mdutil.exe that should be extracted from Windows CDhttp://developer.yahoo.co... to use iiscnfg.vbs script (with the /copy switch) to keep cluster configuration synced up, this keeps the MDETAGCHANGENUMBER ...
This post is an example of how to write a WCF Service using a class. The example uses Visual Studio 2010, written in C#, SQL Server 2008 and hosted in IIS. So lets have at it. The table is pretty simple just three columns, an TestID (int), Value1 (varchar(50)) and Value2 (varchar(50)). The stored procedure used will return one record from the table using the TestID as a parameter. Table SQL: CREATE TABLE [dbo].[Table_1]( [TestID] [int] IDENTITY(1,1) NOT NULL, [Value1] [varchar](50) NOT NULL, [Value2] ...
ASP.NET Enterpise Manager is a web based database management system designed specifically for the management of Microsoft SQL databases through a web browser, without the need for any desktop database management systems such as Microsoft’s SQL Server Management Studio. ASP.NET Enterprise Manager is included as default with an installation of Plesk for Windows, meaning that if you are a customer who uses Plesk based Windows hosting, you will most likely have used ASP.NET Enterprise Manager at least ...
We needed to swap out the DB box. Our DB box runs SQL Server, SSRS and SSAS. The AT is on its own box and SharePoint is on its own box.NOTE: I will update the blog post per resolution of the issue :) The Microsoft procedure I used was: Restore Data to a Different Server or Instance Setup new DB box with WS08 R2 with all updates applied. Installed SQL SQL 2008 R2 on new DB box (same version as on the old DB box). Took TFS offline. Disabled the transaction backup job from existing backup plan (runs ...
From you with new with WebMatrix, check out here . In this tutorial, I will show you how to create web page using WebMatrix with the following:1. Open the Web Matrix by double clicking the icon on your desktop.If you can’t see the “Add New File” dialog box when the application opens you may need to open it by selecting “New File” from the “File Menu”.2. If it’s not already selected under templates select “General” and on the right hand side select “ASP.Net Page”.3. Next you need to specify the location ...
Here is the official documentation on how to publish a LightSwitch application – How to: Deploy a LightSwitch Application. For this example, I’m going to show how to deploy a simple application that does not have any role-based security set up. I’ll show how we can configure that in a later post. So back over on my LightSwitch development machine the first thing we need to do is specify the type of 3-tier deployment we want. In the case of my application, I want it to be a Windows Desktop client ...
At http://weblogs.asp.net/scot... Scott Guthrie talks about data binding is ASP.NET 4.5.There is a key statement "Because our GetProducts() method is returning an IQueryable<Product>, users can easily page and sort through the data within our GridView. Only the 10 rows that are visible on any given page are returned from the database."Consider paging through a large dataset, this is going to give ...
I'm working on a 5+ year old ASP.NET project that has 74+ projects and we've been adding new Silverlight applications to run in the ASP.NET page islands. My machine at work isn't the most powerful, so I find myself waiting a lot for the whole thing to build. I'm using Visual Studio 2010, so that takes up a lot of resources as well. This causes me to get distracted and I start looking at the news... I need to combat that more :-). I can't get a new machine, that's up to someone else, so I've found ...
Welcome back once again, in Part 1 of Load and Web Performance Testing using Visual Studio 2010 I talked about why Performance Testing the application is important, the test tools available in Visual Studio Ultimate 2010 and various test rig topologies, in Part 2 of Load and Web Performance Testing using Visual Studio 2010 I discussed the details of web performance & load tests as well as why it’s important to follow a goal based pattern while performance testing your application. In part 3 I’ll ...
Welcome back, in part 1 of Load and Web Performance Testing using Visual Studio 2010 I talked about why Performance Testing the application is important, the test tools available in Visual Studio Ultimate 2010 and various test rig topologies. In this blog post I’ll get into the details of web performance & load tests as well as why it’s important to follow a goal based pattern while performance testing your application. Tools => Options => Test Tools Have you visited the treasures of Visual ...
One of our .net application teams has had a problem for quite a while that related to impersonation and kerberos multi-hop delegation which had proven quite difficult to resolve. We eventually resolved this and I thought it would be worth popping a little bit of information about it out there incase anyone else has similar problems. We had two web services with 2 methods which participate in a Kerberos multi-hop delegation scenario using WSE 2. One of the methods works fine all of the time and the ...
One of the cool things about HTML5 is the ability to play audio/video files out of the box without the dependency on plugins. Earlier I had written about HTML5 Video and the fallback using Silverlight for non-supported scenarios Visual Studio 2010 SP1 has decent support for HTML5, in terms of intellisense, validation etc., But, one issue that is constantly faced when using the HTML5 Video tag in an ASP.NET Application (Web/MVC) built using Visual Studio is that, the videos doesn’t play when running ...
Recently I looked at a performance problem when transferring image data from a custom HttpListener to web browser clients. In the end it came down to one change I had done which was writing the image data to a memory stream first – this was required so I could add the right content-length header to the output based on the actual image size which some of my clients required. Before this change I had directly written the image to the output stream when it was generated but the modified code looked ...
HTML5 for ASP.NET Developers is my attempt to learn HTML5 myself being an ASP.NET Developer. I am planning to post a series of posts on how ASP.NET Developers can leverage some of the HTML5 features in their applications. To begin with, I plan to post a few samples on the following 1. Markup Enhancements that every ASP.NET Developer should know 2. Using HTML5 Geolocation API 3. Using HTML5 Local Storage in ASP.NET Applications 4. Making HTML5 Video work with IIS Express 5. HTML5 Boilerplate template ...
I'm a big fan of automated testing which actually proves something. Unit tests may prove all the components in a solution work independently, but that doesn't mean you have a working solution. Integration tests give you confidence in the whole solution, but the cost of having a test suite with a lot of external dependencies is the risk of false build failures and long-running test suites. To get something in between, we have acceptance tests written in SpecFlow which run tests at the highest layer ...
This issue is related to permission on MachineKeys folder. I think this is right place where you should know what the determination of MachineKeys folder is. What is MachineKeys Folder? The MachineKeys folder stores certificate pair keys for both the computer and users. Both Certificate services and Internet Explorer use this folder. Possible reasons for getting this error message in your application are, may be your application using a certificate or your application trying to access a private key. ...
v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 false false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; ...
While the development server in Visual Studio 2010 is great for most work, it does have 1 shortcoming in that if you start adding content types that are not part of the base set of known Mime types built in, you won’t affect the proper header response that is emitted to the client/browser. For example MP4 files, out of the box the development web server emits application/octet-stream or something like that. What we really need is video/mp4. Now, with IIS Express, you can easily switch over to use ...
Yes, all unhandled exceptions will kill the IIS worker process, but in WCF you can tag an IErrorHandler onto your service behavior and all unhandled exceptions will be neatly taken care of. Unless that exception is thrown from a factory task, in which case the error handler is bypassed and the worker process is killed. So this code: public ServiceResponse OnBoardClient(Client newClient) { if (IsValid(newClient)) { var client = newClient; Task.Factory.StartNew(() => OnBoardClientInternal(clien... ...
Do you know what happens when you create a new instance of a class? Why do we need a value type and a reference type? Do you know what is meant when the .NET framework is referred to as a “managed” platform? What is managed versus unmanaged code? Why do we need a .NET runtime? What is a memory leak; is that like an oil leak? All of these are questions that you should be able to answer as a Microsoft developer. If you can’t answer them all, then keep reading as the next series of research blogs that ...
In the world of custom web application development a critical component of our success is the hosting environment and services. We can choose to deploy our web applications using 3rd party hosting providers such as GoDaddy.com, Rackspace, DiscountASP.NET, or another provider, or we can choose to deploy to on premise servers either virtual or physical. In either case the web application must be serviced up to consumers by a web server software such as Internet Information Service (IIS), which is included ...
When developing WCF services that interact with a custom Security Token Service (STS), you will need to create at least one X.509 certificate. If you have access to a trusted certificate authority – e.g. a Windows Active Directory domain – then this task is pretty simple. But if you don’t, or maybe you would just rather create a set of self-signed certificates, here is an approach that works well for me. This particular scenario utilizes three separate certificates. The first one is named “localhost” ...
If you are developing you WCF service for web service deployment under IIS and coding with the Visual Studio web server you are in for a rude awakening when it comes time to deploy your solution. Ok, so that is a little over dramatic, but there are a few steps and precautions you need to know about. Below are the main steps to deploying your application to IIS assuming WCF is already installed and registered. The first step is to create an application pool. Make sure that for your .NET 3.5 WCF service ...
Issue: Due to an upgrade from .Net 2, 3.0 or 3.5 to .Net 4.0 or you are starting a new .Net 4.0 project, you may run into this message: A potentially dangerous Request.Path value was detected from the client Or A potentially dangerous Request.Form value was detected from the client Environment: .Net 4.0 MVC 3 (could be MVC 2 also because of the controller/action action filters that are available) Fix: Lets tackle the first issue: A potentially dangerous Request.Path value was detected from the client ...
Requirement was to create Multi-tenant WCF Service for custom development using WCF and Dynamics CRM 2011. There is just one SVC file but multiple URLs to access it e.g. in Dyanamics Organization Org1 have URL http://CRMserver_name/Org1/... and Org2 have http://CRMserver_name/Org2/... I was trying this using URL Routing but problem is, it is creating REST services which we don’t want. We should be able to access these services just like ...
I had a bit a of trouble today getting some classic ASP pages to load in IIS 7. Here is what I had to do: 1. Install ASP Feature for IIS if it is not installed. Server Manager -> Roles -> "Role Services" section : Check ASP under Application Development. 2. Check your application host config file for the line: <add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptprocessor="C:\Windows... resourcetype="File" precondition="bitness64" /> ...
Since exchange versions from 2007 and up put more emphasis on the webservices for use in the distribution of the offline address book, out of office, the scheduling assistant and autodiscover (a.k.a outlook connectivity to exchange) the correct configuration of the virtual directories and IIS components is the main key to a healthy exchange environment. It is for this reason that I have compiled a quick reference as to how these components should be configured in order to function properly and so ...
While developing applications for Windows Azure, we are all aware that we need to create Web and Worker Roles and use the Azure Compute Emulator (previously known as the Development Fabric) for running and testing applications in the local IIS server. However to run unit tests against libraries that are being consumed from your web/worker roles we need to perform some preliminary steps before we can start using the CloudStorageAccount class within our Unit Tests. The First step is to start the Storage ...
The protocol 'net.msmq' is not supported If you get this error you need to do the following steps :- You can just do the following if everything is right in place for you :- 1. Open IIS -> Your Website -> Advanced Settings -> Enabled Protocols This will have only http. You need to add net.MSMQ separating it by a comma like this : http,net.MSMQ 2. If it still doesnt work you need to do the following for activating MSMQ in your machine :- Open visual studio command prompt as administrator ...
Recently, my Active Directory user account was getting locked out on a regular basis after changing my user account password. In our environment, the most two common causes for Active Directory user account lockouts are disconnected RDP sessions or an invalid password on a mobile device configured for Exchange ActiveSync access. I used the LockoutStatus.exe Tool to search for one or more disconnected RDP sessions using my old password but I was not able to find anything. So, the next thing I checked ...
Recently I was tasked with rebuilding or migrating our Certificate Authority to a new server. The previous server was 8 years old and was holding some pretty critical information. Some of which was a Domain Controller, Certificate Authority, Email, Public Folders, Share Folders, and some Printers. Since our Public Folders were not replicating, that was the first priority. I solved that by changing the IIS port that was configured, once that was solved, the Public Folders took off. Second challenge ...
Heres a good one. Today I was working away and fixed a simple bug. Then hit F5 again and VS says” Can’t start app in debug mode. er. Restart VS and try again. Same deal. So, hit Control + F5. Get a 503 error this time. With a quick search I found this: http://www.dotnetfunda.com/... So, I opened IIS Admin and sure enough, then Default AppPool was stopped. Restarted it and now it works. Weird ...
I was working on a MVC3 project using jQuery to populate a text input in an iframe element from the parent. The catch is that the iframe source is on a different domain. When I first tried to do it, the javascript gave me the Permission Denied error for trying to access the iframe document in a different domain. If the domain of the parent and iframe child are the same this Permission Denied error will not be encountered. To get the iframe domain the same as the parent I needed to use a proxy to ...
I have a need for a highly responsive web page that must at least appear to be "pushed" information from the server as it happens, much like you'd see with an HTTP protocol based chat window. The client will utilize JavaScript, and will use JQuery and its UI plugins, and will use its AJAX support to call the requests that will only return when there is data to be "pushed". I know HTML 5 includes support for WebSockets, but I feel it is too soon to rely on them, as the spec is not yet finished and ...
Have you ever get the following error when you run Central Administration in SharePoint Server? I hope you haven’t yet and make yourself ready to fix this error for future Config Error There is a duplicate 'system.web.extensions/scri... defined Problem: I have installed SharePoint 2010 in a server and recently I got this error in my server when I tried to run central administration. I was stuck here to resolve this issue as it was my staging server and I can not re-build ...

At http://searchsecurity.techtarget.co.uk/tip/How-to-stop-SQL-injection-and-prevent-data-compromises there is a free download on measures to combat SQL Injection Attack. (free registration is required).

One very important thing to note is that SQL Injection Attack is not confined to IIS / SQL Server but has occurred on many non-Microsoft systems.

Initial troubleshooting As always, one of the first things to check is the event viewer to see if an event was generated detailing the error. Additionally check the %windir%\debug for the adamsetup.log and adamuninstall.log (this last one is only created during the uninstall process). These two logs will tell you where the setup is failing and what should be checked. It also pays to know that setup errors are written to the registry. If you cannot find the following key there was no failure as the ...
A month or so ago I was working on a feature for a project that required a level of anonymity on the Sharepoint site in order to function. At the same time I was also working on another feature that required access to the Sharepoint search.asmx web service. I found out, the hard way, that the Sharepoint Web Services do not operate in an expected way while the IIS site is under anonymous access. Even though these web services expect requests with certain permissions (in theory) they never attempt ...
The approach takes advantage of the SP 2010 OOB Session Token handler and FBA claims provider implementation that during a period of token lifetime, if there is activity during the period of time that can be defined as "EW" in the image in the section "Background" below, that the SPSecurityTokenManager will, with the FBA provider, reissue a Session Token with new SessionToken ValidTo and ValidFrom times without forcing a re-challenge for user credentials (username and password). Additionally, it ...
Technorati Tags: TFS 2010 Database,TFS 2010,TFS 2010 Administration Considering you have an advanced TFS installation such that the app tier and the data and reporting tier are spread across multiple servers and the data tier goes down because of a network failure. The below error message may seem familiar, Team Foundation Services are not available from server xxx. Technical information (for administrator): Unable to connect to the remote server. Now your first reaction would be to verify whether ...
A couple of years ago, I used 'something' to encrypt the connectionstring on a production server. But I never wrote anything down about it. And in the other projects I did later, I never had deploy to the production server. Yesterday, I had to use it again but I couldn't find it. Why? Because I never wrote about it. This blogpost is copy of Chirag Darji post about the encryption of the connectionstring in web.config. All credits to him! The most sensitive information stored in web.config file can ...