.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links


Posted By:      Posted Date: October 25, 2010    Points: 0   Category :WCF


I was researching on new features in IIS7.5 (windows server 2008 R2) and found WAS feature is newly introduced in IIS7 extending support of non-HTTP scenarios, which may work well for service-based application architectures. I came to an understanding that WAS comes in to picture only in case of non-HTTP scenarios (Am I wrong?) but later I found from http://msdn.microsoft.com/en-us/magazine/cc163357.aspx that WAS can be used for HTTP scenarios too. With this I got confused a little ....

Does even a HTTP WCF service uses WAS?

What configuration has to be changed in my WCF service to make sure it uses WAS (in case of HTTP)?


Any ideas??

Sorry if this topic has already been discussed in different post..



View Complete Post

More Related Resource Links

Extreme ASP.NET: Search Engine Optimization with ASP.NET 4.0, Visual Studio 2010 and IIS7


In this article, the author takes a look at SEO practices that the reader can apply when using the latest Microsoft Web technologies.

Scott Allen

MSDN Magazine September 2009

MVC 1 - Issues with the homepage - IIS7


Has anyone ever had strange behaviour with deployed MVC websites on IIS7.

Our homepage shows intermittent strange behaviour as follows

1 - Postbacks sometimes are not processed server side, sometimes postbacks change the URL and add random query string parameteres

2 - Server side code in the Index Action is sometimes not called when the homepage loads (we have some data we load in from a cookie on the Index action of Home Controller, intermittently this data is not loaded in.

3 - Tracking - We have a really strange issue whereby some people who hit or site on the homepage are being tracked by Google Anayltics, Our internal tracking database (which uses a cookie) and some other third party software as bounces and then the second page they hit is being logged.

It seems as if randomly, server side code is not being executed from our homepage only. All other pages are fine, this only ever happens on our homepage

Are there issues around MVC homepages in IIS7 - has anyone else ever seen this behaviour ?

Cannot get service reference for Net.tcp service hosted in IIS7

HiI've got a service that I want to host in IIS7. The service runs over net.tcp (currently without security), but I am unable to create a service reference to it, or call it, using the net.tcp protocol. My event log is populated with lots of errors related to ASP.NET and System.ServiceModel, relevant services are installed and running (net.tcp port sharing service and net.tcp listener adapter).O/S : Window7 RTMDevStudio: 2008I publish the webservice to IIS7 and I get a valid page when navigating to the published .svc file (which tells me to use svtutil.exe and point it at the net.tcp endpoint).For that, I get this error :    The message could not be dispatched because the service at the endpoint address 'net.tcp://gedm-desktop.profiledc01.appdevelop.local/ManageAVMEP/ManageAVMAgent.svc/mex' is unavailable for the protocol of the address.Googling the problem leads me down several blind alleys :(I cannot determine what is causing the net.tcp listener to keep stopping? Everything is fine if I use the wsHttpBinding.Any tips or pointers to a course of action would be appreciated.ThanksGed My event log is full of errors (here is a sample) :-------An error occurred while trying to listen for the URL '/LM/W3SVC/1/ROOT/ManageAVMEP'. This worker process will be terminated. Sender Information: net.tcp Exception: System.ServiceModel.WasHos

WCF Multiple Custom Assemblies in IIS7

Hi, I have a WCF service library that references a few sub-assemblies.  As an example, I have a service layer assembly and a business layer assembly.  When I attempt to deploy into an IIS 7 host, I keep getting the error: assembly 'business layer' could not be loaded.  Both the assemblies are in the bin directory and neither are in the GAC.  I'm trying to avoid introducing them there.  Is there somewhere in IIS or the web.config that I could update to tell it where to load the sub-assemblies? Please note that as a test, when I took out the reference to the business layer, the service compiled and was consumed by a test client successfully. Thanks, Kyle

Visual Studio 2010, MVC2.0, IIS7, .NET4 deployment problem

I have a problem where I can get an MVC2.0 application using .NET3.5 running in IIS, but when I upgrade it to .NET4.0, the browser just reports error 500 Internal Server Error. The problem is easy to replicate as follows.  Firstly, to show it works with .NET3.5: Create a new MVC2.0 application in Visual Studio 2010, using the inbuilt starter template. Run the application using the development server, and the Home & About pages display fine. Publish the application to a directory. Copy the directory to a subdirectory under inetpub/wwwroot on my Vista computer, running IIS7 Create a new application in IIS Manager & select the DefaultAppPool (integrated pipeline) Browse the application and Home & About pages are displayed. Then the problem I have is after upgrading to .NET4.0: Change to .NET4.0 for the project in Visual Studio Build & this runs fine with the development server. Publish the application & set up IIS as before, except choosing the application pool ASP.NET v4.0 (integrated pipeline) Browse the application, and I get the 500 Internal Server Error I'm guessing there is some extra configuration required - can anyone help? I've deliberately used the default MVC installation to eliminate any variables caused by my programming .. Thanks in advance, Steve

Publishing a WCF service in VS2010 and IIS7

OK, there is probably a really simple answer to this, but I have the flu and can't think straight.I am taking advantage of being out sick by downloading VS2010RC and playing around with it.I created a simple WCF service (my first in this foundation, but not my first service).  Its a redo of an existing asmx service I created a while ago.  I commented out all the processes, and am simply trying to publish the service to my local IIS7 to see the discovery working.I have setup a new site to host the service ( I tried using Default as well, with the same results).  I right click the project in VS and select publish.  It is prompting me for a login even though the site is setup for anonymous access.  If I try to use WebDeploy, it can't find my site, and if I use FileSystem, it give me a simple "Publish failed" with no details.Can someone point me to a tutorial or something that describes the publish process in VS2010 or give me some leads as to what setup needs to happen either in VS or ISS to let me publish?  Thanks. 

Detecting a page close using GetCallbackEventReference IIS6/IIS7 Issue

I have a popup page that when closed,  initiates a server side function that updates a DB table.  After looking at countless posts, I was able to use the following code (partial) to generate the callback when the window closes. The problem I'm having is that it works great on a server with IIS7, but the event doesn't fire on one with IIS6. Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load    If Not IsPostBack Then        Dim callBackReference As String = Page.ClientScript.GetCallbackEventReference(Me, "arg", "LogOutUser", "", True)        Dim logOutUserCallBackScript As String = "function LogOutUserCallBack(arg, context) { " & callBackReference & "; }"       Me.ClientScript.RegisterClientScriptBlock(Me.GetType(), "LogOutUserCallBack", logOutUserCallBackScript, True)    End If  End Sub      Public Function GetCallbackResult() As String Implements System.Web.UI.ICallbackEventHandler.GetCallbackResult               Return _callBackStatus    End Function     Public Sub RaiseCallbackEvent(ByVal eventA

SessionState works in VWD 2010 Debug, IIS 5.1 but not on WS2008 (IIS7.5)

Hi,I'm building a site using the .NET 4 framework using routing and MasterPages.Because I'm using both routing and MasterPages, I can't see any way how to get value from control on the previous page. To solve this I've used the code behind to store the control's value in a session variable. Is there a way to retrieve a value from a control using PreviousPage or something when using Routing and MasterPages?This works fine in VWD debug mode and in IIS 5.1, but when I try to deploy it on my Windows Server 2008 (IIS7.5) machine, it get this error:Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.Here is a copy of my web.config file:<configuration> <appSettings></appSettings> <system.webServer> <handlers></handlers> <modules> <remove name="UrlRoutingModule-4.0"/> <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition=""/> </modules> </system.webServer> <connectionStrings> </connectionStrings> <system.web>

VS2008, Virtual Directories and IIS7

I did have this working but now something has stopped it (after trying to integrate combres)My dev machine is win 7x64, running VS2008. I have a solution with number projects (mostly libraries), one was a webapplication. This webapplication used to debug through. That site was configured to point to the home directory of that web application.It was set up this way because i was URL Rewriting and that was the only way i could get it workingHowever now whenever i start up visual studio it complains that the local IIS has not been configured, would you like to create the virtual directory. If i say no then the project is not loaded, if i say yes then the process fails with could not find the server on the local machine. Creating a virtual directory is only supporting on the local IIS server.I can edit the XML of the project file to turn off Use IIS in which case i can load the project but the site doesn't work through the integrated visual studio server.I've tried removing the website in IIS7 and removing the AppPool and rebuilding but no go.Can anyone offer me advice or pointers on how to get this solved?many thankspaul

Session objects not cleared as expected, after upgrading to IIS7.5

I've just upgraded my development machine from XP SP3 (IIS5.1) to Win7 x64 (IIS7.5)Since doing this, my app has started to behave differently.  Within it I store users' preferences/access levels using an instance of a class that I store within the Session object.  This class is shown:Public Class UserSessionObject Private _customerID As Integer Private _userPermission As Integer Private _customerPermission As Integer Public Property CustomerID As Integer Get Return _customerID End Get Set(ByVal value As Integer) _customerID = value End Set End Property Public Property UserPermission As Integer Get Return _userPermission End Get Set(ByVal value As Integer) _userPermission = value End Set End Property Public Property CustomerPermission As Integer Get Return _customerPermission End Get Set(ByVal value As Integer) _customerPermission = value End Set End Property Public Sub New(ByVal CustomerID As Integer, ByVal UserPermission As Integer, ByVal CustomerPermission As Integer) _customerID = CustomerID _userPermission = UserPermission _customerPermission = CustomerPermission End Sub End Class My requirement is that on each page request (other than the login page), the application should check that the Session object exists.  The page data is therefore shown based on the values within the session obj

MOSS, Kerberos, and IIS7

Hi All, Done a ton of research and am still confused as to whether or not setspn needs to be run or not, and what it needs to be run for (machine name vs service account for app pool) We have 1 WFE, MOSS 2007 SP2 on a Windows 2K8 server with a SQL 2K8 separate back-end. We do not run the application pools under the network service.  We do use IPs and custom host names for the sites themselves. Can someone point me to a good article that kind of goes step by step for 2K8?  I found a Microsoft one, but that was a little confusing as it had BOTH 2K3 and 2K8 directions all mixed up.  Even our network admin was scratching his head over that one. Thanks! Veronica

Visual Studio 2010 & IIS7 / ASP 4.0

Hi,I recently upgraded from Visual Studio 2008 to the new 2010, after it had installed I opened a local website to begin working on it, it asked me if I wanted to update the web.config file to the new ASP version 4.0 - I clicked yes.After this I receive a server error'd regarding the ASP version 4.0 - any ideas?Thanks.

MVC doesn't work once is published in the WEB, "Error 404 Page Not Found" vs2010 iis7 mvc 2rc2 I up


Hi Everyone.

 I'm doing the samething in my two differents pc.

1) Windows 7,  vs2010 rc, mvc 2rc2, .Net 3.5

2) Winodws xp, vs2008, mvc 2rc2, .Net 3.5

My Hosting is in GOdaddy IIS 7, .Net 3.5.

I created a new project in both computers, i build it, i copied the 3 dll's files in the bin folder (System.Web.Mvc,  System.Web.Routing, system.Web.Abstractions), and i publish them...., i go to my website (www.luisbragagnolo) both same problem "Page Not Found"

 I tried many blogs...many advices...nothing yet....

 Any other new Advice people? Thankssssssss

UrlAuthorization module does not work expect on IIS7


Hello Guys,

Here are the structure of my web site:

Login.aspx in the root path

UserInfor.aspx and 1.txt in the sub-directory folder named 'Restricted'

Authenticate this website with form authentication configured in IIS, and does not allow anonymous to get into the Restricted folder with the web.config file.

I think it should work this way, if I manually access the 1.txt in the browser, I should be able to view the content, and if I go to the modules configuration for this applicaiton in IIS7, find the 'UrlAuthorization' module, and cancle the listbox for 'invoke for requests to asp.net ...', I should be directed to the loginurl setting in the root web.config file when I access the 1.txt file without logging, however, I still can see the content of 1.txt. Any suggestions?

ContextUser null on classic pool with IIS7


I set impersonation and windows on my IIS7.

But when I log on and I get an error my user context is null. I'd rather keep it on a classic pool to keep the users working on the site until I can make a full move to integration.

Anyone know what I need to do to get the HttpContext.Current.User equal to the autenticated user?

Here's a snipper from the event viewer

User host address: ::1
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
    Thread ID: 8
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False

Shows it's not impersonating event through I set the value.

Any help appreciated


Cannot Create SharePoint Web application IIS7 x64


Enviroment: Server 2008 x64, IIS7, SharePoint x64 with SP1.


The install process when normally except when I visit the SharePoint Central Administration, the link "Create or extend Web application" in the Application Management page is missing.  Everything else appears normal.


Any ideas why the link is missing?  I can't create a site collection.



Kevin C


PS, I posted this on the iis.net Server2008 forum a few weeks ago and got no response. 


Need some help here guys.  Any suggestions welcome.

request throttling via registry setting only for IIS7?


It appears the request throttling added to ASP.NET 3.5 SP1 (I think that's the version it was added) via the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0\MaxConcurrentRequestsPerCpu only works when run under IIS7.  Just wondering why?  In some of the posts talking about async WCF and the issues around outstanding async requests it seemed as if this registry setting was put in specifically for that reason and I'm wondering why it wouldn't make sense to use it under IIS6.  Does anyone know the answer?  Also, is there a way to globally control the throttling of async WCF requests under IIS6?



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend