# Win32 access denied

**URL:** <https://www.ruby-forum.com/t/win32-access-denied/146178>\
**Category:** Mongrel\
**Created:** [August 18, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/win32-access-denied/146178 "2008-08-18T19:29:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsanheim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/47e85d/32.png) [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Post date:** [August 18, 2008, 7:29pm UTC](https://www.ruby-forum.com/t/win32-access-denied/146178/1 "2008-08-18T19:29:32Z")

</div>

Using the Win32 HOWTO information, I am attempting to start the service.  
upon the service::install command, I receiving the error 'Access is  
denied. (Win32::ServiceError).

The error is occurring in line 146 of init.rb

Version Information:  
Ruby 1.8.6  
Rails 1.2.0  
Gem 1.2.0  
Win32-Service 0.5.2  
Mongrel\_service 0.3.4  
OS - Windows Vista

There is a newer version of Win32 avaiable (0.6.1), but this version is  
incompatible with mongrel\_service and issues a version error.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![rsanheim](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/47e85d/32.png) [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Post date:** [August 19, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/win32-access-denied/146178/2 "2008-08-19T16:26:44Z")

</div>

Rob Stiff wrote:

> Using the Win32 HOWTO information, I am attempting to start the service.  
> upon the service::install command, I receiving the error 'Access is  
> denied. (Win32::ServiceError).
> 
> The error is occurring in line 146 of init.rb
> 
> Version Information:  
> Ruby 1.8.6  
> Rails 1.2.0  
> Gem 1.2.0  
> Win32-Service 0.5.2  
> Mongrel\_service 0.3.4  
> OS - Windows Vista
> 
> There is a newer version of Win32 available (0.6.1), but this version is  
> incompatible with mongrel\_service and issues a version error.
> 
> Thanks in advance!

SOLVED.  
The issue was with Windows Vista. You must always run the command line  
by right-clicking and using the “Run as Administrator” option.
