Re: ASP.NET App As service

2012-04-07 Thread Muhammad Niaz Rana
I know Phil Haack's implementation is latest and great, but what if
this,please comments if i prefer this approach of article written by:
Omar Al Zabir
"Simulate a Windows Service using ASP.NET to run scheduled jobs"
http://www.codeproject.com/Articles/12117/Simulate-a-Windows-Service-using-ASP-NET-to-run-sc

please do comments the pros & cons of this implementation.


thanks in advance.
Regards,
-MN
On Sat, Apr 7, 2012 at 3:22 AM, Filip Kratochvil  wrote:
> Have a look at Quartz.NET (http://quartznet.sourceforge.net/).
>
>
>
>
>
> On 6 April 2012 19:25, Michael Minutillo 
> wrote:
>>
>> A good starting point is this article by Phil Haack
>> http://haacked.com/archive/2011/10/16/the-dangers-of-implementing-recurring-background-tasks-in-asp-net.aspx
>>
>> I don't think they can kill off threads (unless they have customized the
>> ASP.NET host) but they can recycle your app pool if you don't take steps to
>> prevent it
>>
>> On Apr 6, 2012 4:13 PM, "Muhammad Niaz Rana"  wrote:
>>>
>>> Can you please send any sample source code, what you did if possible
>>> or any url to get the idea.
>>>
>>>
>>> thanks in advance.
>>>
>>> On Fri, Apr 6, 2012 at 1:03 PM, Greg Keogh  wrote:
>>> >>But what is my understanding, that hosting company can remove your
>>> >> Threads.
>>> > like GoDady.com
>>> >
>>> > I find it hard to believe they could do that -- Greg
>>> >
>>>
>>>
>>>
>>> --
>>>
>>> Regards,
>>> Muhammad Niaz
>
>



-- 

Regards,
Muhammad Niaz


Re: Distributed Logging Experiences

2012-04-07 Thread Dave Walker
Currently running on approx 125 nodes grown from 50 over the past six
months on demand - we have to expect that to continue so are anticipating
200 in the next six months. On top of that we have a staging environment
which has about 20 nodes. We do a *lot* of complex processing on them due
to the nature of our business. In addition to this we have
massive fluctuation of sessions depending on the time of day - e.g. when
office workers get into work in the morning we take a big spike. Also we
run in about 35 different countries.

I have a project in the pipeline to start rebuilding some of the code base
as it is a sprawling mess which probably doesn't help our scalability but
right now we have issues with logging which I need to solve as a first
priority.

Currently all we have 'in the mix' is log4net doing exception handling and
logging to the filesystem and website monitoring to tell us of our uptime
and some errors. This is obviously not good enough by any stretch of the
imagination.

The MSMQ idea is not a bad one however I wondered if it was overkill? We
have enough server power in house to not need EC2 or anything - however the
problem still remains what are we going to use for the
aggregation/reporting? Ideally we want to know when we are experiencing
problems, their level of severity, without being peppered with feedback
from 100,000 users all at once..

On 6 April 2012 23:35, Joseph Cooney  wrote:

> I've seen people use msmq to write a log entry locally and have it read
> from the local machine into a centralized location, but that was on a
> system with only about 20 web nodes. I've also seen ppl write to the
> windows event log, and use monitoring tools like SCOM to aggregate (also on
> about 20 nodes).
>
> I'm curious to know what you're doing that requires that many nodes. I
> know a lot of household name web sites that run on a 10th or 20th of that.
>
> Sent from my iPhone
>
> On 06/04/2012, at 11:20 PM, Dave Walker  wrote:
>
> > Hey guys,
> >
> > looking for ideas or proven experiences involving logging from larger
> applications e.g. 200+ web nodes. Our current system of log4net into files
> on each server is quickly proving to be a nightmare - We are struggling to
> find out when, where, how and why things are breaking because of the rapid
> growth we have experienced.
> >
> > E.g. things we have thought about include log4net into a DB that we can
> pull into a centralised location, MSMQ, file watchers etc.
> >
> > What have you guys done in the past?
> >
> > Thanks,
> > Dave Walker
>


Weird spooler error on Windows 7

2012-04-07 Thread Greg Low (GregLow.com)
Hi Folks,

 

I'm having a weird spooler issue on one of our Windows 7 machines. If I
leave the spooler service running, it constantly sends the same file again
and again to one of the network printers (a big Kyocera box).

 

I even removed the printer (logical printer) from the devices list and no
other printer has that IP address. Still every time I restart the spooler,
it starts sending the file again.

 

I even stopped the spooler service, then went into the
C:\Windows\System32\spool\PRINTERS folder and nuked everything in there.

 

Any thoughts? I'm keen to stop the killing the trees.

 

Regards,

 

Greg

 

Dr Greg Low

CEO and Principal Mentor

SQL Down Under

SQL Server MVP and Microsoft Regional Director

1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax


Web:   www.sqldownunder.com

 

 



RE: Weird spooler error on Windows 7

2012-04-07 Thread Ian Thomas
Greg

 

The common problem with Windows 7 and printer drivers is usually the
opposite - ie, spooler service stopped. In my experience it's due to a wrong
printer driver (eg, 32-bit installed instead of 64-bit).

 

But this may be helpful - 

 

So if uninstalling the print and document services in programs and
features\Turn windows features on-off applet

and rebooting and then adding the feature back in does not work.

There may be a dependancy in the Spooler registry setting that is pointing
at a printer driver or service that is not available.

look at the HKLM\System\CurrentControlSet\Services\Spooler registry key.
Looking for "Dependant on service" reg_Value

My Win7 uses RPCSS and http by default. Look for your drivers service name
there if so, Remove it and leave only the default.

Review

1. removing and then adding the print and document services feature in
affect reinstalls the spooler components and reg values.

2. verifying the spooler service is not dependant on a non existant or
broken applications service entry

and return the spooler registry values to default.

 

- left verbatim as answered. 

 

(I had seen reference to this sort of thing before, but had to search and
read a few answers to refresh my recollection). 

 

As I read it, the registry entry he's talking about causes a restart of the
spooler, via the service that the printer-specific service uses. 

 

This would point to comparing your problem machine with another that is
hooked to the same network printer, comparing the registry settings. 

 

Worth a try? 

  _  

Ian Thomas
Victoria Park, Western Australia

  _  

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Greg Low (GregLow.com)
Sent: Saturday, April 07, 2012 11:07 PM
To: 'ozDotNet'
Subject: Weird spooler error on Windows 7

 

Hi Folks,

 

I'm having a weird spooler issue on one of our Windows 7 machines. If I
leave the spooler service running, it constantly sends the same file again
and again to one of the network printers (a big Kyocera box).

 

I even removed the printer (logical printer) from the devices list and no
other printer has that IP address. Still every time I restart the spooler,
it starts sending the file again.

 

I even stopped the spooler service, then went into the
C:\Windows\System32\spool\PRINTERS folder and nuked everything in there.

 

Any thoughts? I'm keen to stop the killing the trees.

 

Regards,

 

Greg

 

Dr Greg Low

CEO and Principal Mentor

SQL Down Under

SQL Server MVP and Microsoft Regional Director

1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax


Web:   www.sqldownunder.com

 

 



Re: File/folder sync options for Windows

2012-04-07 Thread Bill Chesnut
Greg,  
   
I use some software call 2nd copy (www.secondcopy.com), let you do one-way or 
two-way sync. I have been using it to sync my MSDN to an external drive for a 
couple of years now.

Bill Chesnut
BizTalk Server MVP
Melbourne, Australia
  _  

  From: Greg Low (GregLow.com) [mailto:g...@greglow.com]
To: 'ozDotNet' [mailto:ozdotnet@ozdotnet.com]
Sent: Fri, 06 Apr 2012 20:41:58 +1000
Subject: File/folder sync options for Windows

  
  
Hi Folks,  
   
Anyone got recommendations for file sync? Just a couple of PCs that want to 
share one or more folders between them and also to a NAS that they both can 
access. Happy for the main folder to live on the NAS and for the other two PCs 
to sync with it.  
   
I spent time today looking at Offline files in Windows 7 and while it looked 
promising at first, after wasting hours trying to debug its issues, I’ve 
decided it’s not for me.  
   
Regards,  
   
Greg  
   
Dr Greg Low  
CEO and Principal Mentor  
SQL Down Under  
SQL Server MVP and Microsoft Regional Director  
1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax   
Web: www.sqldownunder.com  
   
   
 

Re: File/folder sync options for Windows

2012-04-07 Thread Stephen Price
Is that price on their web site per year?
Also i didn't see any space quotas.

I'm using dropbox and just scored a bonus 7gbfor a year for having
completed a list of tasks. I guess they want me to use the space and then
next year have to pay (counting on me nit wanting to go back to my current
quota) clever/sneaky :-)

Onoy thing with dropbox is you sync from one location on your machine (can
put the dropbox folder wherever you like). I remember mesh you used to be
able to sync any folder youliked.

Actually what happened to mesh? I recall it merged into live services but i
am not using it now. I wonder why i dropped it? I think they changed
something about it which put me off it.
On Apr 8, 2012 8:49 AM, "Bill Chesnut"  wrote:

> **
> Greg,
>
> I use some software call 2nd copy (www.secondcopy.com), let you do
> one-way or two-way sync. I have been using it to sync my MSDN to an
> external drive for a couple of years now.
>
>
> Bill Chesnut
> BizTalk Server MVP
> Melbourne, Australia
>
> --
> *From:* Greg Low (GregLow.com) [mailto:g...@greglow.com]
> *To:* 'ozDotNet' [mailto:ozdotnet@ozdotnet.com]
> *Sent:* Fri, 06 Apr 2012 20:41:58 +1000
> *Subject:* File/folder sync options for Windows
>
>  Hi Folks,
>
>
>
> Anyone got recommendations for file sync? Just a couple of PCs that want
> to share one or more folders between them and also to a NAS that they both
> can access. Happy for the main folder to live on the NAS and for the other
> two PCs to sync with it.
>
>
>
> I spent time today looking at Offline files in Windows 7 and while it
> looked promising at first, after wasting hours trying to debug its issues,
> I’ve decided it’s not for me.
>
>
>
> Regards,
>
>
>
> Greg
>
>
>
> Dr Greg Low
>
> CEO and Principal Mentor
>
> *SQL Down Under***
>
> SQL Server MVP and Microsoft Regional Director
>
> 1300SQLSQL (1300 775 775) office | +61 419201410 <#1368f6d21a016942_>mobile│ 
> +61
> 3 8676 4913 <#1368f6d21a016942_> fax
>
> Web: www.sqldownunder.com
>
>
>
>
>
>


RE: Weird spooler error on Windows 7

2012-04-07 Thread Greg Low (GregLow.com)
Thanks guys. I tried removing the feature and re-adding it but that doesn't
actually remove the print spooler, etc. It just removes things like Internet
Printing.

 

The weirder thing was that when I set the spooler to manual startup, it
showed "Manual" and "Started" after a restart.

 

Anyway, it must have been something with the Kyocera driver and it's
management queue. I removed all the Kyocera software, rebooted, re-added the
printer and endless printing is gone.

 

Thanks to all that offered ideas. (The trees are greatful)

 

Regards,

 

Greg

 

Dr Greg Low

 

1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax


SQL Down Under | Web:   www.sqldownunder.com

 

From: Ian Thomas [mailto:il.tho...@iinet.net.au] 
Sent: Sunday, 8 April 2012 2:01 AM
To: g...@greglow.com; 'ozDotNet'
Subject: RE: Weird spooler error on Windows 7

 

Greg

 

The common problem with Windows 7 and printer drivers is usually the
opposite - ie, spooler service stopped. In my experience it's due to a wrong
printer driver (eg, 32-bit installed instead of 64-bit).

 

But this may be helpful - 

 

So if uninstalling the print and document services in programs and
features\Turn windows features on-off applet

and rebooting and then adding the feature back in does not work.

There may be a dependancy in the Spooler registry setting that is pointing
at a printer driver or service that is not available.

look at the HKLM\System\CurrentControlSet\Services\Spooler registry key.
Looking for "Dependant on service" reg_Value

My Win7 uses RPCSS and http by default. Look for your drivers service name
there if so, Remove it and leave only the default.

Review

1. removing and then adding the print and document services feature in
affect reinstalls the spooler components and reg values.

2. verifying the spooler service is not dependant on a non existant or
broken applications service entry

and return the spooler registry values to default.

 

- left verbatim as answered. 

 

(I had seen reference to this sort of thing before, but had to search and
read a few answers to refresh my recollection). 

 

As I read it, the registry entry he's talking about causes a restart of the
spooler, via the service that the printer-specific service uses. 

 

This would point to comparing your problem machine with another that is
hooked to the same network printer, comparing the registry settings. 

 

Worth a try? 

  _  

Ian Thomas
Victoria Park, Western Australia

  _  

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Greg Low (GregLow.com)
Sent: Saturday, April 07, 2012 11:07 PM
To: 'ozDotNet'
Subject: Weird spooler error on Windows 7

 

Hi Folks,

 

I'm having a weird spooler issue on one of our Windows 7 machines. If I
leave the spooler service running, it constantly sends the same file again
and again to one of the network printers (a big Kyocera box).

 

I even removed the printer (logical printer) from the devices list and no
other printer has that IP address. Still every time I restart the spooler,
it starts sending the file again.

 

I even stopped the spooler service, then went into the
C:\Windows\System32\spool\PRINTERS folder and nuked everything in there.

 

Any thoughts? I'm keen to stop the killing the trees.

 

Regards,

 

Greg

 

Dr Greg Low

CEO and Principal Mentor

SQL Down Under

SQL Server MVP and Microsoft Regional Director

1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax


Web:   www.sqldownunder.com

 

 



RE: File/folder sync options for Windows

2012-04-07 Thread Greg Low (GregLow.com)
Magic, thanks Bill, I’ll check it out.

 

Regards,

 

Greg

 

Dr Greg Low

 

1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax 

SQL Down Under | Web:   www.sqldownunder.com

 

From: Bill Chesnut [mailto:b...@biztalkbill.com] 
Sent: Sunday, 8 April 2012 10:49 AM
To: g...@greglow.com; ozDotNet
Subject: Re: File/folder sync options for Windows

 

Greg,

 

I use some software call 2nd copy (www.secondcopy.com), let you do one-way or 
two-way sync. I have been using it to sync my MSDN to an external drive for a 
couple of years now.



Bill Chesnut
BizTalk Server MVP
Melbourne, Australia

  _  

From: Greg Low (GregLow.com) [mailto:g...@greglow.com]
To: 'ozDotNet' [mailto:ozdotnet@ozdotnet.com]
Sent: Fri, 06 Apr 2012 20:41:58 +1000
Subject: File/folder sync options for Windows

Hi Folks,

 

Anyone got recommendations for file sync? Just a couple of PCs that want to 
share one or more folders between them and also to a NAS that they both can 
access. Happy for the main folder to live on the NAS and for the other two PCs 
to sync with it.

 

I spent time today looking at Offline files in Windows 7 and while it looked 
promising at first, after wasting hours trying to debug its issues, I’ve 
decided it’s not for me.

 

Regards,

 

Greg

 

Dr Greg Low

CEO and Principal Mentor

SQL Down Under

SQL Server MVP and Microsoft Regional Director

1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax 

Web:   www.sqldownunder.com

 

 

 



Re: File/folder sync options for Windows

2012-04-07 Thread Tony McGee

I use SyncBack http://www.2brightsparks.com/

They have a free version which just runs as an icon in the background 
but quite configurable with different sync options and sounds like it 
should do what you need.
They also have Std/Pro paid versions which can run as a service & 
includes load of plug-ins, add-ons & the kitchen sink.


In general, syncing between network file shares is fine with SyncBack 
but SFTP/FTPS performance left a little to be desired back in 2008 when 
we tested it. Not sure what it's like now.
For anywhere that needs both network file share & SFTP sync we use 
BatchSync Secure instead http://www.3dftp.com/products.htm


Cheers,
Tony


On 6/04/2012 8:41 PM, Greg Low (GregLow.com) wrote:


Hi Folks,

Anyone got recommendations for file sync? Just a couple of PCs that 
want to share one or more folders between them and also to a NAS that 
they both can access. Happy for the main folder to live on the NAS and 
for the other two PCs to sync with it.


I spent time today looking at Offline files in Windows 7 and while it 
looked promising at first, after wasting hours trying to debug its 
issues, I've decided it's not for me.


Regards,

Greg

Dr Greg Low

CEO and Principal Mentor

*SQL Down Under*//

SQL Server MVP and Microsoft Regional Director

1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 
4913 fax


Web: www.sqldownunder.com