WCF Callback function – FileSystemWatcher

FileSystemWatcher class allows to get notification on any change in the directory. The notification can be even filtered by changes like rename, delete and all. File types can be specified to the class to allow notification for a particular file types. Code Snippet Dim watchFile As New FileSystemWatcher()         watchFile.Filter = ConfigurationManager.AppSettings.Item("FileType")         watchFile.IncludeSubdirectories =... Continue Reading →

WCF Service Error Hosting – Adding reference to netTcp binding service error

  System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].   at System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) Metadata contains a reference that cannot be resolved: 'net.tcp://localhost:8732/Callback.ServiceLibrary/CallbackService/'.The socket connection was aborted. This could be caused by an error processing your message or... Continue Reading →

Create a website or blog at WordPress.com

Up ↑