WCF / ASMX :: Use WCF To Monitor A Folder?

Jul 18, 2010

I'd like to use WCF to monitor a folder. WCF need to pick up and process the file if there is a file dropped to the folder. Is there a way to do so?

View 1 Replies


Similar Messages:

C# - Threading Problem With Monitor.Wait () And Monitor.Pulse ()?

Oct 18, 2010

I have a producer-consumer scenario in ASP.NET. I designed a Producer class, a Consumer class and a class for holding the shared objects and responsible for communication between Producer and Consumer, lets call it Mediator. Because I fork the execution path at start-up (in parent object) and one thread would call Producer.Start() and another thread calls Consumer.Start(), I need to pass a reference of Mediator to both Producer and Consumer (via Constructor). Mediator is a smart class which will optimize many things like length of it's inner queue but for now consider it as a circular blocking queue. Producer would enqueues new objects to Mediator until the queue gets full and then Producer would block. Consumer dequeues objects from Mediator until there's nothing in the queue. For signaling between threads, I implemented two methods in Mediator class: Wait() and Pulse(). The code is something like this:

Class Mediator
{
private object _locker = new object();[code]....

Inside Mediator I use this.Pulse() every time something is Enqueued or Dequeued so waiting threads would be signaled and continue their work.But I encounter deadlocks and because I have never used this kind of design for signaling threads, I'm not sure if something is wrong with the design or I'm doing something wrong elsewhere ?

View 6 Replies

WCF / ASMX :: How To Create A Folder On A Network Share

Mar 7, 2011

I have a web application that uses Windows Authentication, not forms, and has identity impersonate = true.

From an .aspx page, the following code can create a folder on a network share successfully but fails in my .asmx page.

dirPolicyFolder.CreateDirectory(ConfigurationManager.AppSettings("PolicyApplicationsPath") & strFolderName

I have confirmed that the same user is logged in both examples, permissions on the parent folder are set correctly, and the logged user has propper right to do this.

If I change the path to a local one, the asmx page can create the folder.Why would this fail when running in the .asmx page?

View 3 Replies

WCF / ASMX :: Accessing A Web Service In A Protected Folder?

Dec 31, 2010

I have a web service which is in a folder within my application. This folder is only accesible to certain roles. I use this service in a page on root of the application but I block creation of the javascript or the service definition in the aspx page if the user is not in the role.

The problem is that when anonymous users try to access the page in the root of the application they are prompted for a user name and password. I hope I am clear. The code below is what I have set up in the ASPX page:

[Code]....

View 3 Replies

WCF / ASMX :: Move Mails To Another Folder In The POP3 Account From The Inbox?

Dec 3, 2010

I have a WCF application which reads mails from a pop3 account and deletes them from the inbox after reading it by sending "DELE 1". Now i want to do some change in this functionality. ie instead of deleting the mail from the inbox i want to move it to another folder.

View 2 Replies

Can Monitor Who Uses The C# App?

Jan 17, 2011

I have a small app that is used to register users to the system. I am interested in having a log that will tell me, who - userid that logs in, what they do, how long. meaning, the rows they look at or update. I suppose to make a small table for this logging. lets assume a small table with only 2 columns, timestamp and the userid. It would be good to get some kind of ip address for identity.

the other parts will begood to know and interesting to learn how to code but less critical.

the signon.aspx you can see here. Is this where to code

<%
@
Page
Language="C#"
AutoEventWireup="true"
CodeFile="SignIn.aspx.cs"
Inherits="SignIn"
%>

View 3 Replies

SqlDependency / Want To Use It To Monitor Several Tables (around 10)

Aug 6, 2010

I'm using SqlDependency to control my cache. I want to use it to monitor several tables (around 10). There should be one SqlDependency per watched table.

Should I create for each of them code like that:

public void CreateDependency_Table()
{
if (connectionStringSettings != null) [code]....

or can I reuse something between them? Like connection?Is this the preferred way of setting multiple notifications?

View 1 Replies

Monitor All The The Works Done By The User

Jan 3, 2011

i have one software in asp.net..once the user login to the software.then only user can acces the desktop and i want to monitor all the the works done by the user in my asp.net software .

View 3 Replies

Monitor If Production Application Is Resetting On Its Own?

Dec 21, 2010

Can I objectively determine if my production ASP.NET web application is resetting its application pool? It could be for whatever reason (for example, an error occurred or memory topped off). I don't have direct access to my production servers, so when I want something on the server, I have ask specifically for it like PerfMon counters to run. It is a running IIS 6.0. I understand that I could use PerfMon to catch ASP.NET Application Restarts. If I was not monitoring that PerfMon, is there anything that can tell me the application restarted sometime in the past?

View 2 Replies

How To Monitor All Incoming HTTP Requests

Dec 13, 2010

I need to monitor my application from incoming http post and get requestf originating from outside and sometimes inside the machine.

Is this possible?

Been using fiddler but this only does outgoing not incoming (from outside the machine) or have I configured it incorrectly?

This is for my web app that is meant to be receiving a POST from an external server.

View 6 Replies

Monitor/logging Who Signs Into The .netapp

Feb 6, 2011

I want to have a log file keep rows of who logs in and timestamp. is there a place to do this? And what sort of code is needed?

View 2 Replies

Monitor A Windows Service Using A Webpage?

Feb 14, 2010

I have built a web page that does a complex processing, and I realized recently that I need to convert it to a windows service running at the background and keeping the web page for monitoring and initiating the service.

The service will process some files, and provides information messages to the user.

I'm not sure how to implement the link between the windows service and the web site, but i was trying to avoid using MSMQ to connect both application together.

View 1 Replies

Start / Monitor An Application Through A Webpage?

Feb 24, 2011

I would like to create a webpage that will be able to monitor if an application (process) is running.

I would also like the ability to start an application (process) if it is not. Where would I even start?

View 4 Replies

Use Process Monitor To Determine Which DLL Is Causing A BadImageFormatException?

Mar 8, 2011

I have a large web application, which is supposed to run in a 64 bit process. However, when I set "Enable 32-bit Applications" to False on my App Pool, I get the following error trying to run the app in IE:

is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

The application name at he beginning of the error message is missing, i.e. I have not lost it during copy and paste.

I have been advised to use Process Monitor to determine which application/DLL load is actually causing the error, but I have no idea where to start with this.

EDIT: I have tried filtering Process Monitor on only w3wp.exe and only file system and process events, but simply attempting a navigate to the root URL yields 34,012 events.

View 2 Replies

SQL Server :: Monitor The Query Performance As It Is Run From The Webpage?

Mar 11, 2011

isnt there performance analysis tools that i can use to monitor and trouble shoot things like timeout expired (slow query execution)?

I mean is there a way for me to monitor the query performance as it is run from the webpage. It runs perfectly in the SMS but it's slow when it's running from the webpages so it throws Timeout expired exception.

View 7 Replies

SQL Server :: Database Diagram Becomes Big - Doesn't Fit In Monitor's View

Sep 7, 2010

We have been assigned a project for future developement. The problem is original developer did not create any data model, so we are in trouble understanding how db structure flow goes. I know we can create database diagram (even did that), but db contains 162 tables so the db diagram becomes so big that it does not fit in the monitor's view. Viewing each table > keys (for relationships) is not possible.

View 1 Replies

Web Forms :: Monitor The Entire Project Through The Clicks (maintaining Log)

Sep 15, 2010

I would like to monitor the entire project through the clicks. For example if i open a new page and clicking any control it should get monitored like ( User x clicked this many events on this page )

View 1 Replies

JQuery :: Set A Webpage Layout (automatically) According To Monitor Resolution?

Jan 27, 2011

How to set A web Page Layout(automattically) according to monitor resoulation using jquery

View 3 Replies

Crystal Reports :: How To Use Fiddler To Monitor WCF Service In Detail

May 7, 2015

"HTTP data inspector Fiddler." what is the use of this and give me any article  for how to use fiddler to monitor wcf service in detail

View 1 Replies

Response Time Monitor In Application And Dynamic Performance Management?

Sep 6, 2010

I want to implement a response time monitor in a ASP.Net application. This monitor has to calculate the average response time during 2 secs. Whats the performance counter i can use. I tried ASP.NET ApplicationsRequests/Sec but did not work. Whats the best way to do this. I am using the default server formed by VS2005 for development, does this affect the performance counter programming?

Where should I implement the logic? Global.ASAX? in every 2 sec i want to check this value and make some decisions.

In addition, what are the parameters I can alter in a ASP.Net application at runtime to improve perfromance. How can I change them?

View 5 Replies

C# - Monitor Session State In Order To Watch Object Size?

Jul 15, 2010

Is there any way to monitor asp.net session state in order to watch object size, or is there any other practice to find out a way to lighten asp.net session?

View 1 Replies

Web Forms :: Monitor Screen Size And Resolution Affecting Page Design?

May 26, 2013

my asp net site views are different on 15" monitor than 21" screen.

site layout ruin on 21" screen however it works fine on 15".

View 1 Replies

AJAX :: Display Directory (Folder) Structure For Folder Outside Project In TreeView Control

Nov 22, 2015

[URL] ....

In above link you clearly describe (How to display directory folder structure).  

The path only works when the folder insight the project.

When I put folder outside the project it didn't work. What type of changes I need to made to acces the folder outside the poject. & How can I show other details of files which are including in folders Like. Last Modified Created Date, Modified Date etc..

View 1 Replies

Web Forms :: Create Folder And Upload File In That Folder On Other Machine Connected In LAN

Jan 25, 2010

I am working on asp.net 3.5 in C#. In my application I have to Create folder and upload file in that folder, which works fine on my machine. I want help for create folder and upload file in that folder on other machine which is connected in LAN. code for create folder and Upload file on my machine

string FileName = FileUpload1.FileName;

View 4 Replies

Hudson Continuous Integration - Can Copy Contents Of A Folder To Another Folder Or Website

Feb 9, 2010

Im trying out the Hudson Continuous Integration. After the build is executed i want to copy the content of the ReleaseBuild to another website on the server.This should be possible i guess but i cant seem figure it out.I know this can be done in nAnt and msbuild but i need to make Hudson do it, eg plugin or something.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved