Vinegar

Author



.
In a scenario where the first datacenter contains two DAG members and the witness server, and the second datacenter contains two other DAG members. If the first datacenter loses power and you activate the DAG in the second datacenter (for example, by activating the alternate file share witness in the second datacenter), if the first datacenter is restored without network connectivity to the second datacenter, the DAG may enter a split brain syndrome.

Datacenter Activation Coordination (DAC) mode prevents split brain syndrome from occurring by including a protocol called Datacenter Activation Coordination Protocol (DACP). After a catastrophic failure, when the DAG recovers, it won’t involuntarily mount databases even even if the DAG has a quorum. Instead DACP is used to determine the current state of the DAG and whether Active Administrator should attempt to mount the databases.

Datacenter Activation Coordination (DAC) mode is disabled by defaulting.

Datacenter Activation Coordination (DAC) mode is disabled by defaulting.
DACP was made to address this issue. Active Administrator stores a bit in reminiscence (any a 0 or a 1) that tells the DAG whether it’s allowed to mount local databases that are assigned as active on the server. When a DAG is running in DAC mode (which would be any DAG with three or more members), each time Active Administrator starts up the bit is set to 0, meaning it isn’t allowed to mount databases. Because it’s in DAC mode, the server must try to communicate with all other members of the DAG that it knows to get another DAG member to give it an answer as to whether it can mount local databases that are assigned as active to it. The answer comes in the form of the bit setting for other Active Managers in the DAG. If another server responds that its bit is set to 1, it means servers are allowed to mount databases, so the server starting up sets its bit to 1 and mounts its databases.

But when you recover from a primary datacenter power outage where the servers are recovered but WAN connectivity has not been restored, all of the DAG members in the primary datacenter will have a DACP bit value of 0; and therefore none of the servers starting back up in the recovered primary datacenter will mount databases, because none of them can communicate with a DAG member that has a DACP bit value of 1.

To enable DAC mode use the following powershell command:

Set-DatabaseAvailabilityGroup -Identity TOPHDAG01 -DatacenterActivationMode DagOnly

Check it out:Clint Boessen’s Blog

Vinegar

Tagged with: activationCoordinationDatacenterMode 

.

I need to store lots of video editing files

Best answer:

Answer by Dr Who
You should buy an external harddrive instead. You will save bounty of money, a lot quicker and better security.

Know better? Leave your own answer in the comments!

Vinegar

Tagged with: backupbiggestCapacityOnlineserviceWhats 

.

I was getting the following error on an Exchange 2007 SP1 server when trying to run the https://www.testexchangeconnectivity.com/ for outlook anywhere.

ExRCA is hard the Name Service Provider Interface (NSPI) on the Exchange Mailbox server.
An error occurred while hard the NSPI RPC endpoint.
Test Steps
Attempting to ping RPC Endpoint 6004 (NSPI Proxy Interface) on server WATCEXCH.waturf.local
The attempt to ping the endpoint failed.
Tell me more about this issue and how to resolve it
Additional Details
RPC_S_SERVER_UNAVAILABLE error (0x6ba) was thrown by the RPC Runtime

The problem turned out to be Windows Server 2008 has made TCP/IPv6 the defaulting communication protocol stack over which relations are made by clients connecting to the server that is running Microsoft Exchange. The RPCProxy component tries to connect to the DSProxy component through port 6004 over TCP/IPv6. But, the DSProxy component does not listen on the TCP/IPv6 stack, which causes connection requests from the RPCProxy component to fail.

Perform the following procedure:

1.Under Network Relations, select the network adapter, and then click Properties.

2.In the properties window, click to clear the check box for Internet Protocol Version 6 (IPv6).

Note:
Clearing this check box causes the RPCProxy component on the Client Access server to use TCP/IPv4 to talk to the DSProxy component on the Mailbox server.
3.Click Start, and then click Run.

4.Type regedit in the Open box.

5.By Registry Editor, locate the following registry key:

HKEY_Local_Machine\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters

6.Right-click the Parameters key, click New, and then click DWORD (32-bit) Value. For the key, add the following values:

Name: DisabledComponents

Data: 0xFFFFFFFF

7.Restart the Client Access server.

Check it out:Clint Boessen’s Blog

Vinegar

Tagged with: EndpointerrorNSPIoccurredtesting 

Silverlight 3 and Web Service


.

The most effectual way for a Silverlight attention to tap into server-side code is through web services. The basic thought is simple—you include a web service with your ASP.NET website or add reference to a standalone web service, and your Silverlight attention calls the methods in that web service. Silverlight applications can call traditional ASP.NET web services (.asmx services) as well as the WCF services, which are the newer standard.

Making a Web Service

There are 2 ways how to make a Web Service in Visual Studio:

  1. Add New WCF Service Attention Machinate (File – New Machinate – WCF Service Attention)
  2. Add New Item – Silverlight-Enabled WCF Service (In the Solution Explorer on your web attention machinate right click and select from the make pleased menu Add – New Item – Silverlight-Enabled WCF Service

As I mentioned in my previous post, if you’re about to make a standalone WCF Service Attention you’ll also needed to make and copy to your web root directory clientAccessPolicy.xml and crossDomain.xml files. These two files take care about accessibility of the Web Service.

When the machinate “built-in” WCF Service is made, you don’t need to reflect about accessibility files. Visual Studio involuntarily configures the Web Service to be accessible for the Silverlight attention.

When you make a web service, Visual Studio, makes an Interface and Implementation files, explicitly as defaults: IService1.vb and Service1.svc.

All functions/subs definitions you make in the Interface file (IService1.vb) – make sure you Imports System.ServiceModel – have to start with <OperationContract()>
WCF Service doesn’t support all object types to return results from functions, expect of some defaults such as Integer, String. Non supported object have to be implemented via class. Each class definition has to start with <DataContract()> and all property within a class has to start with <DataMember()>

Example of IService1.vb

Imports System.ServiceModel<ServiceContract()> _Public Interface IService1<OperationContract()> _Function GetUsers() As List(Of user)End Interface<DataContract()> _Public Class userPrivate _uId As IntegerPrivate _firstName As StringPrivate _lastName As String<DataMember()> _Public Property uId() As Integer    Get            Return _uId    End Get        Set(ByVal value As Integer)        _uId = value    End Set    End Property<DataMember()> _Public Property firstName() As String    Get            Return _firstName    End Get        Set(ByVal value As String)        _firstName = value    End Set    End Property<DataMember()> _Public Property lastName() As String    Get            Return _lastName    End Get        Set(ByVal value As String)        _lastName = value    End Set    End PropertyPublic Sub New()    End SubPublic Sub New(ByVal usrId As Integer, _      ByVal uFirstName As String,  ByVal uLastName As String)    Me.uId = usrId    Me.firstName = uFirstName    Me.lastName = uLastNameEnd Sub

Very vital

If you’d like to use the web service with your Silverlight attention, you must modify the web service’s Web.Config file and exchange service endpoint binding to “basicHttpBinding”. That’s because the Silverlight works only with this one.

To edit this value, open the web service’s Web.Config file and scroll nearly at the very end of the file. You have to search for these tags:

<system.serviceModel>
<services>
<service name=…

under the <service> tag you’ll find <endpoint address=… tag. Edit this tag’s binding value to “basicHttpBinding

Example – before update:

<system.serviceModel><services>  <service name="WcfService.Service1"         behaviorConfiguration="WcfService.Service1Behavior">    <endpoint address="" binding="wsHttpBinding"              contract="WcfService.IService1">

after update:

<system.serviceModel><services>  <service name="WcfService.Service1"         behaviorConfiguration="WcfService.Service1Behavior">    <endpoint address="" binding="basicHttpBinding"             contract="WcfService.IService1">

Note: Before you publish your Silverlight attention to the IIS, make sure you modified the ServiceReferences.ClientConfig file located in your Silverlight attention folder. Only one but most vital exchange is required – modify WCF service’s endpoint address to the one on which the WCF service to be accessible on the Internet. By defaulting, Visual Studio set up this address for running the web attention in development environment, such as <endpoint address=”http://localhost:49249/SilverlightApplication.Web/Service.svc“.
Suppose, your WCF service is published on Defaulting Web Site\WCFService folder, so the “real” service address will be http://localhost/WCFService/Service.svc therefore service’s endpoint address in ServiceReferences.ClientConfig file should looks like:
<endpoint address=”http://localhost/WCFService/Service.svc
Delight refer to Publish Silverlight 3 on IIS 7.0/7.5 for more information.

And finally
Whatever service creation way you choose you’ll need to add a web service reference to your Silverlight attention.

Adding a web service reference is simple. Just, in the Solution Explorer right click on your Silverlight attention and from the make pleased menu select “Add Service Reference“. In the opened pop-up window (Add Service Reference) fill-up the “Address” text box with the service URL (if you’re about to add reference to a standalone service already published on the Web) or click “Learn” button and Visual Studio involuntarily finds service(s) from current machinate for you. You can exchange the defaulting service namespace in the “Namespace” text box to be more comfortable for you. Click “OK” and it’s done.

Delight note: if exchange and/or rebuilt your web service you have to update the web service reference in your Silverlight attention. To update a web service reference you have to right click on its name in the Solution Explorer under Service References and select “Update Service Reference” from the offered make pleased menu.

When you add or update a web service reference, Visual Studio, makes some files in Service References folder and ServiceReferences.ClientConfig file in the root of your Silverlight attention.

Start consuming the web service

Security

All data sent from web service are sent as clear text. So, if you’re carriage sensitive data consider by appropriate encryption for your data.

Adding Service Reference

If you’d like to use your WCF Service in your Silverlight attention you need to add a Service Reference.
In Visual Studio, in Solution Explorer right click on your Silverlight attention folder and select “Add Service Reference” from the context menu. The pop-up appears.
To the Address field enter the WCF service’s URL address. If you’re adding an “machinate built-in” WCF service (your service is in your current solution) you can click to “Learn” button – it will list all found services in the current solution. Choose one you’d like to add.
Exchange the Namespace field if you’d like to.
Click “OK“. If everything went smoothly your WCF service reference is successfully added and you can find the ServiceReferences.ClientConfig file in the attention root.

Consuming web service

After you’ve made the Service Reference you’re ready to use/consume the web service in your Silverlight attention.
It’s useful to import the Service Namespace to your attention (Performance tip: every “dot” in your command requires a call to the object and it’s dramatically impact on performance.)
And finally you can write “consumer” speech.

Example: Suppose, you’ve made the Web Service. Next step is to add a Service Reference, setup Service Namespace as wcfService. Your Silverlight machinate’s name is SilverlightApplication. First of all, open or make a xaml file which is about to consume your Web Service, import Service Namespace and write “consumer” speech (in this example I’ll call the Service after page is loaded). Because Service is asynchronious you need to add a Handler to sub what will consume the result from the Web Service. The MainForm.xaml contains <TextBlock x:Name=”txtUsers“/>

Imports SilverlightApplication.wcfService

Incomplete Public Class MainPage   Inherits UserControl

Private Sub MainPage_Loaded(ByVal sender As Object, ByVal e As _    System.Windows.RoutedEventArgs) Handles Me.Loaded        Dim client As New ServiceClient        With client            AddHandler .getUsersCompleted, AddressOf usersComplete            .getUsersAsync()            .CloseAsync()        End With        client = NothingEnd Sub

Private Sub usersComplete(ByVal sender As Object, ByVal e As _ getUsersCompletedEventArgs)       Dim users As New System.Text.StringBuilder       For Each u As usr In e.Result            With users                 .Append("uID = " & u.uId.ToString & vbCrLf)                 .Append("firstName = " & u.firstName & vbCrLf)                 .Appned("lastName = " & u.lastName & vbCrLf)             End With        Next       txtUsers.Text = users.ToStringEnd Sub

That’s all the basic information you need to know about Silverlight ∧ Web Service. For more details see next postings.

Pleased coding!

Check it out:.NET Programming

Vinegar

Tagged with: serviceSilverlight 

Answers Rating

  • Bassman1: Back up any thing you want to keep before making any system changes in case of a problem....  Thumb up 0
  • Boris 24: Same thing.You will loose everything on hard drive.Recovery drive D/ stays untouched.  Thumb up 0
  • ♫Neon♫: Your recovery drive won’t format. The recovery drive will probably recover the old files...  Thumb up 0
  • Micael: when you do the factory restore, it will use the image from the recovery drive lol so your...  Thumb up 0
  • Jenna Nguyen: No, a broken screen will not make it stop working as it was working with an extenal...  Thumb up 0
© 2010 Computersplace.net