Win32::OLE can't create object

This is a multi-part message in MIME format.

--===============1934093100==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01CA9AC5.3AC18773"

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA9AC5.3AC18773
Content-Type: text/plain; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable

The documentation for this module says,
"The new() class method starts a new instance of an OLE Automation
object. It returns a reference to this object or undef if the creation
failed."

undef is not particularly useful. Is there any way to get further
information on why the object could not be created? I am trying to
track down a problem here and am getting stuck at this point.

Thanks.

------_=_NextPart_001_01CA9AC5.3AC18773
Content-Type: text/html; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16945" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D628091018-21012010><FONT face=3DVerdana size=3D2>The doc=
umentation
for this module says,</FONT></SPAN></DIV>
<DIV><SPAN class=3D628091018-21012010><FONT face=3DVerdana size=3D2> &=
nbsp; 
"<FONT size=3D3><FONT face=3D"Times New Roman">The new() class method start=
s a new
instance of an OLE Automation object. It returns a reference to this object=
or
</FONT><CODE>undef</CODE><FONT face=3D"Times New Roman"> if the creation
failed."</FONT></FONT></FONT></SPAN></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><SPAN class=3D628091018-21012010><FONT face=3DVerdana size=3D2>undef i=
s not
particularly useful.  Is there any way to get further information on w=
hy
the object could not be created?  I am trying to track down a problem =
here
and am getting stuck at this point.</FONT></SPAN></DIV>
<DIV><SPAN class=3D628091018-21012010><FONT face=3DVerdana
size=3D2><BR>Thanks.</FONT></SPAN></DIV></BODY></HTML>

------_=_NextPart_001_01CA9AC5.3AC18773--


--===============1934093100==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1934093100==--
eroode [ Do, 21 Januar 2010 19:12 ] [ ID #2029517 ]

RE: Win32::OLE can't create object

This is a multipart message in MIME format.

--===============0167404816==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_01D0_01CA9A85.314D2E30"
Content-Language: en-us

This is a multipart message in MIME format.

------=_NextPart_000_01D0_01CA9A85.314D2E30
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Win32::OLE->LastError()



You can also call Win32::OLE->Option(Warn => 2) at the beginning of your script to display all OLE errors as they are encountered.



Cheers,

-Jan



From: activeperl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of Roode, Eric
Sent: Thursday, January 21, 2010 10:12 AM
To: activeperl [at] listserv.ActiveState.com
Subject: Win32::OLE can't create object



The documentation for this module says,

"The new() class method starts a new instance of an OLE Automation object. It returns a reference to this object or undef if the
creation failed."



undef is not particularly useful. Is there any way to get further information on why the object could not be created? I am trying
to track down a problem here and am getting stuck at this point.


Thanks.


------=_NextPart_000_01D0_01CA9A85.314D2E30
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META =
HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><style><!--
/* Font Definitions */
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
[at] font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
[at] page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
[at] list l0
{mso-list-id:916331088;
mso-list-template-ids:707697770;}
[at] list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level2
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level5
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level8
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>Win32::OLE->LastError()<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'><o:p> </o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>You can also call Win32::OLE->Option(Warn =3D> 2) at the =
beginning of your script to display all OLE errors as they are =
encountered.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'><o:p> </o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>Cheers,<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>-Jan<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'><o:p> </o:p></span></p><div =
style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in =
4.0pt'><div><div style=3D'border:none;border-top:solid #B5C4DF =
1.0pt;padding:3.0pt 0in 0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
activeperl-bounces [at] listserv.ActiveState.com =
[mailto:activeperl-bounces [at] listserv.ActiveState.com] <b>On Behalf Of =
</b>Roode, Eric<br><b>Sent:</b> Thursday, January 21, 2010 10:12 =
AM<br><b>To:</b> activeperl [at] listserv.ActiveState.com<br><b>Subject:</b> =
Win32::OLE can't create object<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p> </o:p></p><div><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif" '>The =
documentation for this module says,</span><o:p></o:p></p></div><div><p =
class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif" '>   =
;  "</span>The new() class method starts a new instance of an =
OLE Automation object. It returns a reference to this object or =
<code><span style=3D'font-size:10.0pt'>undef</span></code> if the =
creation failed."<o:p></o:p></p></div><div><p =
class=3DMsoNormal> <o:p></o:p></p></div><div><p =
class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif" '>undef is =
not particularly useful.  Is there any way to get further =
information on why the object could not be created?  I am trying to =
track down a problem here and am getting stuck at this =
point.</span><o:p></o:p></p></div><div><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif" '><br>Thanks.=
</span><o:p></o:p></p></div></div></div></body></html>
------=_NextPart_000_01D0_01CA9A85.314D2E30--


--===============0167404816==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0167404816==--
Jan Dubois [ Do, 21 Januar 2010 19:33 ] [ ID #2029518 ]

RE: Win32::OLE can't create object

This is a multi-part message in MIME format.

--===============0815299741==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01CA9AD1.EAD9D3C3"

This is a multi-part message in MIME format.

------_=_NextPart_001_01CA9AD1.EAD9D3C3
Content-Type: text/plain; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable

Thanks, Jan -- that showed me that the error is

Win32::OLE(0.1709) error 0x80070005: "Access is denied"
Now I just have to figure out what permission is needed.


________________________________

From: Jan Dubois [mailto:jand [at] activestate.com]
Sent: Thursday, January 21, 2010 1:34 PM
To: Roode, Eric; activeperl [at] listserv.ActiveState.com
Subject: RE: Win32::OLE can't create object



Win32::OLE->LastError()



You can also call Win32::OLE->Option(Warn =3D> 2) at the beginning of your
script to display all OLE errors as they are encountered.



Cheers,

-Jan



From: activeperl-bounces [at] listserv.ActiveState.com
[mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of Roode,
Eric
Sent: Thursday, January 21, 2010 10:12 AM
To: activeperl [at] listserv.ActiveState.com
Subject: Win32::OLE can't create object



The documentation for this module says,

"The new() class method starts a new instance of an OLE Automation
object. It returns a reference to this object or undef if the creation
failed."



undef is not particularly useful. Is there any way to get further
information on why the object could not be created? I am trying to
track down a problem here and am getting stuck at this point.


Thanks.


------_=_NextPart_001_01CA9AD1.EAD9D3C3
Content-Type: text/html; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:v =3D
"urn:schemas-microsoft-com:vml" xmlns:o =3D
"urn:schemas-microsoft-com:office:office" xmlns:w =3D
"urn:schemas-microsoft-com:office:word" xmlns:m =3D
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16945" name=3DGENERATOR>
<STYLE> [at] font-face {
=09font-family: Calibri;
}
[at] font-face {
=09font-family: Tahoma;
}
[at] font-face {
=09font-family: Verdana;
}
[at] page WordSection1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
=09FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","se=
rif"
}
LI.MsoNormal {
=09FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","se=
rif"
}
DIV.MsoNormal {
=09FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","se=
rif"
}
A:link {
=09COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
=09COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
=09COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
=09COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
CODE {
=09FONT-FAMILY: "Courier New"; mso-style-priority: 99
}
SPAN.EmailStyle18 {
=09COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: per=
sonal-reply
}
..MsoChpDefault {
=09FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.WordSection1 {
=09page: WordSection1
}
OL {
=09MARGIN-BOTTOM: 0in
}
UL {
=09MARGIN-BOTTOM: 0in
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV dir=3Dltr align=3Dleft>
<P align=3Dleft><FONT face=3DVerdana color=3D#800000 size=3D2><SPAN
class=3D168574019-21012010>Thanks, Jan -- that showed me that the error is =
</P><PRE id=3Dline1><SPAN class=3Dcomment>Win32::OLE(0.1709) error 0x800700=
05: "Access is denied"</SPAN></PRE></SPAN></FONT></DIV>
<DIV><SPAN class=3D168574019-21012010><FONT face=3D"Courier New"></FONT></S=
PAN><FONT
face=3DVerdana><FONT color=3D#800000><FONT
size=3D2>Now I just have to figure out <=
SPAN
class=3D168574019-21012010>what permission is
needed.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=3DVerdana><FONT color=3D#800000><FONT size=3D2><SPAN
class=3D168574019-21012010></SPAN></FONT></FONT></FONT><FONT face=3DVerdana=

color=3D#800000 size=3D2></FONT><BR> </DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> Jan Dubois [mailto:jand [at] activesta=
te.com]
<BR><B>Sent:</B> Thursday, January 21, 2010 1:34 PM<BR><B>To:</B> Roode, Er=
ic;
activeperl [at] listserv.ActiveState.com<BR><B>Subject:</B> RE: Win32::OLE can't=

create object<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=3DWordSection1>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-seri=
f'">Win32::OLE->LastError()<o:p></o:p></SPAN></P>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-seri=
f'"><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-seri=
f'">You
can also call Win32::OLE->Option(Warn =3D> 2) at the beginning of you=
r
script to display all OLE errors as they are encountered.<o:p></o:p></SPAN>=
</P>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-seri=
f'"><o:p> </o:p></SPAN></P>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-seri=
f'">Cheers,<o:p></o:p></SPAN></P>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-seri=
f'">-Jan<o:p></o:p></SPAN></P>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-seri=
f'"><o:p> </o:p></SPAN></P>
<DIV
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium =
none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue 1.5pt solid=
; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<DIV>
<DIV
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df=
1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium non=
e; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=3DMsoNormal><B><SPAN
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN><=
/B><SPAN
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
activeperl-bounces [at] listserv.ActiveState.com
[mailto:activeperl-bounces [at] listserv.ActiveState.com] <B>On Behalf Of </B>Ro=
ode,
Eric<BR><B>Sent:</B> Thursday, January 21, 2010 10:12 AM<BR><B>To:</B>
activeperl [at] listserv.ActiveState.com<BR><B>Subject:</B> Win32::OLE can't cre=
ate
object<o:p></o:p></SPAN></P></DIV></DIV>
<P class=3DMsoNormal><o:p> </o:p></P>
<DIV>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">The document=
ation
for this module says,</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">  =
 
"</SPAN>The new() class method starts a new instance of an OLE Automation=

object. It returns a reference to this object or <CODE><SPAN
style=3D"FONT-SIZE: 10pt">undef</SPAN></CODE> if the creation
failed."<o:p></o:p></P></DIV>
<DIV>
<P class=3DMsoNormal> <o:p></o:p></P></DIV>
<DIV>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'">undef is not=

particularly useful.  Is there any way to get further information on w=
hy
the object could not be created?  I am trying to track down a problem =
here
and am getting stuck at this point.</SPAN><o:p></o:p></P></DIV>
<DIV>
<P class=3DMsoNormal><SPAN
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"><BR>Thanks.<=
/SPAN><o:p></o:p></P></DIV></DIV></DIV></BODY></HTML>

------_=_NextPart_001_01CA9AD1.EAD9D3C3--


--===============0815299741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0815299741==--
eroode [ Do, 21 Januar 2010 20:42 ] [ ID #2029519 ]

RE: Win32::OLE can't create object

This is a multipart message in MIME format.

--===============1195370073==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_01F2_01CA9A9E.E3B4D5F0"
Content-Language: en-us

This is a multipart message in MIME format.

------=_NextPart_000_01F2_01CA9A9E.E3B4D5F0
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Running `dcomcnfg` may be the tool to figure it out:



Select "Component Services|Computers|My Computer|DCOM Config". Right-click on the class you try to instantiate and look on the
"Security" tab, which will show Launch/Access/Configuration permission settings.



Cheers,

-Jan



From: activeperl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of Roode, Eric
Sent: Thursday, January 21, 2010 11:43 AM
To: activeperl [at] listserv.ActiveState.com
Subject: RE: Win32::OLE can't create object



Thanks, Jan -- that showed me that the error is

Win32::OLE(0.1709) error 0x80070005: "Access is denied"

Now I just have to figure out what permission is needed.




_____

From: Jan Dubois [mailto:jand [at] activestate.com]
Sent: Thursday, January 21, 2010 1:34 PM
To: Roode, Eric; activeperl [at] listserv.ActiveState.com
Subject: RE: Win32::OLE can't create object

Win32::OLE->LastError()



You can also call Win32::OLE->Option(Warn => 2) at the beginning of your script to display all OLE errors as they are encountered.



Cheers,

-Jan



From: activeperl-bounces [at] listserv.ActiveState.com [mailto:activeperl-bounces [at] listserv.ActiveState.com] On Behalf Of Roode, Eric
Sent: Thursday, January 21, 2010 10:12 AM
To: activeperl [at] listserv.ActiveState.com
Subject: Win32::OLE can't create object



The documentation for this module says,

"The new() class method starts a new instance of an OLE Automation object. It returns a reference to this object or undef if the
creation failed."



undef is not particularly useful. Is there any way to get further information on why the object could not be created? I am trying
to track down a problem here and am getting stuck at this point.


Thanks.


------=_NextPart_000_01F2_01CA9A9E.E3B4D5F0
Content-Type: text/html;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><!--[if !mso]><style>v\:* =
{behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
..shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
[at] font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
[at] font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
[at] font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
[at] font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.comment
{mso-style-name:comment;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
[at] page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
[at] list l0
{mso-list-id:916331088;
mso-list-template-ids:707697770;}
[at] list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level2
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level5
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level8
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
[at] list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>Running `dcomcnfg` may be the tool to figure it =
out:<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'><o:p> </o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>Select “Component Services|Computers|My Computer|DCOM =
Config”. Right-click on the class you try to instantiate and look =
on the “Security” tab, which will show =
Launch/Access/Configuration permission settings.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'><o:p> </o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>Cheers,<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>-Jan<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'><o:p> </o:p></span></p><div =
style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in =
4.0pt'><div><div style=3D'border:none;border-top:solid #B5C4DF =
1.0pt;padding:3.0pt 0in 0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
activeperl-bounces [at] listserv.ActiveState.com =
[mailto:activeperl-bounces [at] listserv.ActiveState.com] <b>On Behalf Of =
</b>Roode, Eric<br><b>Sent:</b> Thursday, January 21, 2010 11:43 =
AM<br><b>To:</b> activeperl [at] listserv.ActiveState.com<br><b>Subject:</b> =
RE: Win32::OLE can't create object<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p> </o:p></p><p><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif" ;color:maroon=
'>Thanks, Jan -- that showed me that the error is =
<o:p></o:p></span></p><pre id=3Dline1><span class=3Dcomment><span =
style=3D'color:maroon'>Win32::OLE(0.1709) error 0x80070005: "Access =
is denied"</span></span><span =
style=3D'color:maroon'><o:p></o:p></span></pre><div><p =
class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif" ;color:maroon=
'>Now I just have to figure out what =
permission is needed.</span><o:p></o:p></p></div><div><p =
class=3DMsoNormal><br> <o:p></o:p></p></div><div class=3DMsoNormal =
align=3Dcenter style=3D'text-align:center'><hr size=3D2 width=3D"100%" =
align=3Dcenter></div><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
Jan Dubois [mailto:jand [at] activestate.com] <br><b>Sent:</b> Thursday, =
January 21, 2010 1:34 PM<br><b>To:</b> Roode, Eric; =
activeperl [at] listserv.ActiveState.com<br><b>Subject:</b> RE: Win32::OLE =
can't create object</span><o:p></o:p></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>Win32::OLE->LastError()<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'><o:p> </o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>You can also call Win32::OLE->Option(Warn =3D> 2) at the =
beginning of your script to display all OLE errors as they are =
encountered.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'><o:p> </o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>Cheers,<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>-Jan<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'><o:p> </o:p></span></p><div =
style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in =
4.0pt'><div><div style=3D'border:none;border-top:solid #B5C4DF =
1.0pt;padding:3.0pt 0in 0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
activeperl-bounces [at] listserv.ActiveState.com =
[mailto:activeperl-bounces [at] listserv.ActiveState.com] <b>On Behalf Of =
</b>Roode, Eric<br><b>Sent:</b> Thursday, January 21, 2010 10:12 =
AM<br><b>To:</b> activeperl [at] listserv.ActiveState.com<br><b>Subject:</b> =
Win32::OLE can't create object<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p> </o:p></p><div><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif" '>The =
documentation for this module says,</span><o:p></o:p></p></div><div><p =
class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif" '>   =
;  "</span>The new() class method starts a new instance of an =
OLE Automation object. It returns a reference to this object or =
<code><span style=3D'font-size:10.0pt'>undef</span></code> if the =
creation failed."<o:p></o:p></p></div><div><p =
class=3DMsoNormal> <o:p></o:p></p></div><div><p =
class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif" '>undef is =
not particularly useful.  Is there any way to get further =
information on why the object could not be created?  I am trying to =
track down a problem here and am getting stuck at this =
point.</span><o:p></o:p></p></div><div><p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif" '><br>Thanks.=
</span><o:p></o:p></p></div></div></div></div></body></html>
------=_NextPart_000_01F2_01CA9A9E.E3B4D5F0--


--===============1195370073==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1195370073==--
Jan Dubois [ Do, 21 Januar 2010 22:37 ] [ ID #2029520 ]
Perl » gmane.comp.lang.perl.active-perl » Win32::OLE can't create object

Vorheriges Thema: Perlapp "failed to initialize properly"
Nächstes Thema: mixing, disting cpan modules with standard ones