Dcom Local Activation Permission
We are trying to run Bartender through a Web-application (Framework ASP.NET 1.1) on a Windows 2008 Server (IIS 7.5) and get the error message below in the System log.
"
The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID
{B9425246-4131-11D2-BE48-004005A04EDF}
and APPID
Unavailable
to the user IIS APPPOOL\ASP.NET 1.1 SID (S-1-5-82-2262271052-2148063755-2833506681-1768398819-1209019456) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
"
We have tried giving the user (ASP.NET 1.1) full access to the
- Bartender.exe file,
- the keys in the Registry Editor corresponding to above CLSID
- the DCOM object in the Component Service
but nothing seems to work!
A note here is that we can't find a DCOM object with above CLSID({B9425246-4131-11D2-BE48-004005A04EDF}) in the Component Service administrative tool and are therefor unable to modify the security permissions for that specific CLSID.
Our Web-Application throws an UnauthorizedAccessException when the following code is executed.
If m_btApp Is Nothing Then
m_btApp = New BarTender.Application
End If
Any ideas/possible solutions on this matter are much appriciated as we can't figure it out.
Thank you for your help!
"
The machine-default permission settings do not grant Local Activation permission for the COM Server application with CLSID
{B9425246-4131-11D2-BE48-004005A04EDF}
and APPID
Unavailable
to the user IIS APPPOOL\ASP.NET 1.1 SID (S-1-5-82-2262271052-2148063755-2833506681-1768398819-1209019456) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
"
We have tried giving the user (ASP.NET 1.1) full access to the
- Bartender.exe file,
- the keys in the Registry Editor corresponding to above CLSID
- the DCOM object in the Component Service
but nothing seems to work!
A note here is that we can't find a DCOM object with above CLSID({B9425246-4131-11D2-BE48-004005A04EDF}) in the Component Service administrative tool and are therefor unable to modify the security permissions for that specific CLSID.
Our Web-Application throws an UnauthorizedAccessException when the following code is executed.
If m_btApp Is Nothing Then
m_btApp = New BarTender.Application
End If
Any ideas/possible solutions on this matter are much appriciated as we can't figure it out.
Thank you for your help!
0
-
Shotaro Ito
★ BarTender Hero ★
Hi nilbjorn,
I personally doesn't have much experience to run ASP.NET 1.1 on 2008 Server so I cannot give precise advice on this. If you haven't, enable Impersonation on ASP.NET application by an account with Local administrators rights by modifying web.config like
[xml]
<identity impersonate="true" userName="domain\user" password="password" />
[/xml]
support.microsoft.com/kb/306158
msdn.microsoft.com/en-us/library/aa292118(v=vs.71).aspx
Using BarTender ActiveX automation on ASP.NET Web project is a bit tricky approach, as you would expect many simultaneous print request from multiple client, but you cannot run too many BarTender process in background.
Using ASP.net 2.0 + [url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_BarTenders.NET_SDKs_English.pdf"]BarTender .net Print Server SDK[/url](available on BarTender Enterprise Automation Edition), you have full working ASP.NET 2.0 web application sample, with multiple requests are effectively handled by specified number of BarTender with Task - Queue approach.
The sample above is example to create web-based print, using web app and print from Client PC's printer via ActiveX browser plug-in, just like [url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_BarTenderWebPrintServer.pdf"]BarTender Web Print Server[/url].
If you simply need to print from Printer attached to Web server, Consider using [url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_Commander_English.pdf"]Commander[/url] - you don't need to call BarTender's COM from Web app - your ASP.NET app just need to drop text/XML files to specific folder.
Hope that helps!0 -
Legacy Poster
★ BarTender Hero ★
Thanks for an elaborate answer Shotaro! Much appreciated.
We solved the problem with Bartender not starting in a similar way that you describe. We set the AppPool identity to run on a specific user on our domain with certain privileges.
We use the ActiveX automation as our system is built today but we will definitely look into the Print server SDK solution, however today we just have the Bartender Automation 9.4 version which does not have the SDKs included.
Does the SDKs only work with ASP.NET 2.0 and higher and not .NET 1.1 as we run? Or is it just that 2.0 is supported/recommended and 1.1 is not?
We recently switched to BT 9.4 (from 8.01) do you know if there are any particular differences (code-wise) that we have to take into concideration as a result of the switch?
Thanks again!0 -
Shotaro Ito
★ BarTender Hero ★
Hi nilbjorn,
Glad to hear your web app worked. BarTender .net SDK documentation and samples won't be installed with default install option, you need custom install to specify BarTender .net SDK. For already installed Full BarTender suite, Modify installation from Add and remove programs in Control panel.
.NET SDK won't run on .net framework 1.1. From .net 1.1, you need to use ActiveX or Commander.
In Enterprise Automation Edition, Combination of Commander + XML Script gives you very good flexibility and performance without dependency to OS / programming language.
There's many [url="http://www.seagullscientific.com/aspx/white-papers.aspx#tbl-WP_Cat_03_Recent_Upgrades"]improvements and new features[/url] in BarTender since 8.01 - Cannot list everything. pick up some..
From BT 9.4SR2, Commander got many stability and performance improvement like periodically restart process and format cache.
From BT 9.3, In ActiveX, You can modify object's property from Code by DesignObject - such as change font, move barcode, change box color and make lines invisible (not available in .net SDK / XML though). From Commander, you have [url="http://s3.amazonaws.com/SeagullBarTender/ftp/WhitePapers/WhitePaper_DynamicallyChangingObjectsAtPrint-TimeUsingVBScript.pdf"]Format Level VB Script[/url] to achieve this.
From BT 9.0, You can export print preview to image file (Enterprise Automation Edition / Enterprise Print Server Edition only.) via ActiveX, .net SDK and XML.
As my experience, most of v8.01 ActiveX code works fine with 9.4 - though please test on your app.0
Please sign in to leave a comment.
Comments
3 comments