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


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

WCF server-agents infrastructure

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :WCF
 
Hi,I am implementing a server-agents infrastucture. The server and agents run on different machines. All the agents are identical. I am using WCF services to communicate between them. I have hosted two request-response pattern services on both server and agents so that they can communicate to each other. Server maintains the real time state of the reachability(channel state in WCF) of the agents.There are following requirements:1) When the server starts, it picks the list of agents(endpoints of agent wcf services) and "ping them"(don't want to call a service operation) to discover alive agents.2) When an agent starts(assuming server is already running), it calls a operation on the server wcf service to register itself. Then server "pings" it back to ensure service reachability and then update the agent state from unreachable to connected.3) When an agent goes down, server needs to know the particular agent is not reachable(channel faulted).4) The channels need to be "always alive" as by default WCF faults the channel after 10 mins.So basically, I want a discovery(with a list of endpoints), heartbeat(at regular intervals after initial discovery) mechanism to be implemented in wcf.Can someone give me any helpful pointer/sample code?thanks in advance,Navneet


View Complete Post


More Related Resource Links

Token-based server access validation failed with an infrastructure error

  
Hi We have a new Win 2008 Enterprise x64 server running SQL 2008When we try to connect to the server using Windows Authentication, from a user account which is a domain administrator, we get the following message:"Token-based server access validation failed with an infrastructure error"What needs to be configured here for this to work ?ThanksBruce

Office Sharepoint Server Publishing Infrastructure is missing in site collection feature SharePoint

  
I was trying to activate the Office Sharepoint Server Publishing Infrastructure feature in the site collection features but the feature is simply not there. Is this option not available in SharePoint Foundation 2010?

Login failed for user: Reason:Token-based server access validation failed with an infrastructure err

  

Hi,

I have installed a named instance of SQL Server 2008 R2 Enterprise 64 bit on Windows Server 2008 R2 Enterprise 64 bit. The os is running as a VM ware virtual machine.

I have created an AD security group for database engine sys admins on that machine. I added my user to that group.So for example;

domainname\machinename_SQL_DBE_SysADmins is a user with SysAdmin server role permissions. User domainname\MichaelEFF is a member of this group.

When I log onto the machine as this user and run the management studio with run as administrator I cannot log into the database engine. The log shows the error:

Login failed for user: Reason:Token-based server access validation failed with an infrastructure error

I've read many posts where the MVP says that the UAC is not passing the group membership. Is this the case? If so then how will role based access ever be possible with windows authentication? How can this be resolved?

 

Thanks!

Michael


Login failed for user:Token-based server access validation failed with an infrastructure error

  
 

I would appreciate help with the following issue:

 

I have created a local group in our SQL 2008 server and added two Windows user accounts "DOMAIN\UserName"  I  then added the local group to the database and granted read only access.

 

The users are trying to link tables using MS Access using and ODBC connection and getting the following error.

Users are not system administrators.

 

Date                      6/30/2010 1:01:54 PM

Log                         SQ

SharePoint 2007 activating Office SharePoint Server Publishing Infrastructure

  

We turned on the Office SharePoint Server Publishing Infrastructure feature on our MOSS 2007 (after we already had sites created) to allow users to be able to use features like excel services and reporting which both require this be activated the Publishing feature to be turned on,  In order to do this you have to activate the Office SharePoint Server Publishing Infrastructure feature at I beleive the top level site, however when we activate this feature it changes the templates and navigation for all the existing SharePoint sites in our collection. 

Is there a way to turn this feature on with out impacting existing site sites?  Or am I doing something wrong that is causing this to happen?  Basically I need to know how I can activate this option (Office SharePoint Server Publishing Infrastructure) to just specific sites but not all or turn it on so it does not impact all sites?

 


Activate "Office SharePoint Server Publishing Infrastructure" in Central Admin

  
I wonder if it is possible to activate "Office SharePoint Server Publishing Infrastructure" in the Central Admin page?

When I try to do that I only get:

Error
Publishing sites and features cannot be activated in the Central Administration Web Application.


On my other site collection(s) I manage to activate this feature by using the "publishing template".


In the logs of sharepoint ( C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN ),
i see the following entries:



w3wp.exe (0x1168)                 0x1048 CMS                            Publishing Provisioning        6wy9 Unexpected CommonUtilities.ConfirmNotCentralAdminWebApp(): Failed trying to activate publishing sites/features on CentralAdmin Web App. WebUrl: 'http://hk81:9200'



w3wp.exe (0x1168)                        0x1048 CMS                            Publishing Provisioning        8gyv Unexpected PublishingPrerequisistes Feature activation failed. Exception: Microsoft.SharePoint.SPException: Publishing sites and features cannot be activated in the Central Administration Web Application. WebUrl: 'http://hk81:9200'     at Microsoft.SharePoint.Publishing.CommonUtilities.ConfirmNotCentralAdminWebApp(SPWeb web)     at Microsoft.SharePoint.Publishing.PublishingPrerequisitesFeatureHandler.<>c__DisplayCl

SQL Server 2008 R2 Merge error in Replication agents checkup job

  

We have a customer with three publications, one distributor/publisher and on subscriber using merge replication.

looking at the history of the job replication agents checkup, every entry shows a message of:

Executed as user: NT AUTHORITY\SYSTEM. The replication agent has not logged a progress message in 10 minutes. This might indicate an unresponsive agent or high system activity. Verify that records are being replicated to the destination and that connections to the Subscriber, Publisher, and Distributor are still active. [SQLSTATE 01000] (Message 20554).  The step succeeded.

 

Throughout the day this error still appears as this job runs every 10 minutes but replication works fine. The issue is at some point throughout the night the replication stops with that same message. Sometimes it stops at 6:00:00am, sometimes at 6:40:00am, others at 6:50:00am. All we have to do to fix it is go into the replication monitor and stop synchronizing and then start synchronizing and replication will run all day until it stops next morning - again.

What is causing that error message? I have checked the other logs and there is nothing running at those times. in addition, no one has logged into the server that early (they don't start arriving until 7:15 or later).

What can i do to correct the issue so the message stops happening.

i

call JavaScript - jQuery code from ASP.NET Server-Side

  
jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side.

Making Ajax Callbacks to the Server Using jQuery with ASP.NET

  
In the first part of this article series I introduced jQuery's functionality and how it provides a rich client side programming model. This time around I'll expand on these concepts and show you how you can use jQuery in combination with ASP.NET using it as an AJAX backend to retrieve data. I'll also discuss how you can create ASP.NET controls and otherwise interact with jQuery content from ASP.NET pages in WebForms.


jQuery is just a JavaScript library so it will work seamlessly with ASP.NET both from page code as well as through backend driven code using the Page.ClientScript object or ScriptManager. You can use jQuery on its own as a client side and Ajax library that communicates with ASP.NET or you can use jQuery in combination with ASP.NET AJAX. The two actually complement each other quite well as jQuery provides functionality that the ASP.NET AJAX library does not and vice versa. For the most part the interaction between the two libraries is trouble free except for a few very rare edge cases.

MS SQL Server: Disconnect Users From Database - Kill User Session

  
If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

MS SQL Server: Search All Tables, Columns & Rows For Data or Keyword Query

  
If you need to search your entire database for specific data, this query will come in handy.

So when a client needs a custom report or some sort of custom development using Great Plains, most of the time I will have to track down the data in the system by running this query and find the table(s) it is in.

call JavaScript - jQuery code from ASP.NET Server-Side

  
jQuery got so close to me lately that I can see myself adding the scripts to my project almost unconsciously. The thing is, jQuery is very useful for me, in almost all situations and it has been a do or die enhancement for all my project since I first put my hands on it.

Of course while using it, you encounter few situations which need a bit of research to solve, mostly when you are trying to combine it with some other technologies like: UpdatePanels and ASP.NET Ajax. For instance there are many situations when I would like to run some jQuery magic based on some decision that I make on the server side

Publishing SQL Server Database using Publishing Wizard : Tips & Tricks

  
We can use SQL Server Publishing Wizard to deploy our local Database to remote hosting server/production server.This feature is available in SQL Server 2008/VWD 2008.

Below is the complete step by step guide of this process.

CLR Integration With Microsoft SQL Server

  
Transact-SQL provides as much flexibility as possible but, because it is not a real programming language, it has some shortcomings about many issues (memory management, exception handling, debugging, file processing (or streaming), object-orientation (classes), or thread management). Transact-SQL also lacks features of normal libraries (arrays, collections, serialization, expressions, or string manipulations, etc).

IP Address Blocking or Restriction in SQL Server

  
"is it possible to block connections to SQL Server based on IP address". As far as now there is no official way in SQL Server to block the connections in SQL Server based on IP address. However this can be done from the OS end, we have the following three options available, refer HERE for more.


.Firewall
.IPSec
.RRAS IP Filter

Determine whether Forms Server is installed on a server

  
Check whether the Microsoft.Office.InfoPath.Server.dll and FormServer.aspx files are installed on the server.

Connestion string create any database server

  
This links important to how to create connection string to any data base sever.
Categories: 
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