Showing posts with label share. Show all posts
Showing posts with label share. Show all posts

Wednesday, March 7, 2012

Problems with Custom Delivery Extension

I am working on putting together a custom delivery extension (fax delivery)
based on the built-in File Share delivery extension.
Most of the functionality I need already exists in the File Share delivery
extension so I used the Lutz Roeder's .NET Reflector to disassemble the
ReportingServicesFileShareDeliveryProvider.dll and then built my own assembly
which essentially mimics the ReportingServicesFileShareDeliveryProvider.dll.
I changed two class names, the FileShareProvider and FileShareUIControl
classes are known in my assembly as FaxProvider and FaxUIControl.
Once I had all the functionality of the
ReportingServicesFileShareDeliveryProvider.dll (I have only changed the two
class names and replaced references to them with the new names) I attempted
to deploy my assembly as a custom delivery extension so that I can test that
I have attained the same functionality as the
ReportingServicesFileShareDeliveryProvider.dll. This is where I run into
problems.
I see the following in my log files for RS:
aspnet_wp!extensionfactory!15ec!08/17/2005-14:45:59:: e ERROR: Exception
caught instantiating report server extension:
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. --> System.TypeInitializationException: The type
initializer for "FaxDeliveryProvider.FaxProvider" threw an exception. -->
System.Security.SecurityException: Request for the permission of type
System.Security.Permissions.StrongNameIdentityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at FaxDeliveryProvider.FaxProvider..cctor()
The state of the failed permission was:
<IPermission
class="System.Security.Permissions.StrongNameIdentityPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100272736AD6E5F9586BAC2D531EABC3ACC666C2F8EC879FA94F8F7B0327D2FF2ED523448F83C3D5C5DD2DFC7BC99C5286B2C125117BF5CBE242B9D41750732B2BDFFE649C6EFB8E5526D526FDD130095ECDB7BF210809C6CDAD8824FAA9AC0310AC3CBA2AA0523567B2DFA7FE250B30FACBD62D4EC99B94AC47C7D3B28F1F6E4C8"/>
-- End of inner exception stack trace --
-- End of inner exception stack trace --
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName, Boolean
ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args,
CultureInfo culture, Object[] activationAttributes)
at System.Reflection.Assembly.CreateInstance(String typeName)
at
Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.AssertAndCreate(Assembly assembly, String typeName)
at
Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.AssertAndCreate(Assembly assembly, String typeName)
at
Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.GetNewExtensionInstance(String extensionName, String extensionType).
I have been doing some research and I know that the built in delivery file
share delivery extension usese strong name security instead of URLMembership
security...but I am not sure what I need to do or what changes I need to
make to my config files to get around this. ANY HELP would be much
appreciated...
The following are the changes to the configuration files I made during
deployment:
RSReportServer.config
Added:
<Extension Name="Report Server Fax Delivery Extension"
Type="FaxDeliveryProvider.FaxProvider,FaxDeliveryProvider">
<MaxRetries>0</MaxRetries>
<SecondsBeforeRetry>900</SecondsBeforeRetry>
<Configuration>
<FileShareConfiguration>
<ExcludedRenderFormats>
<RenderingExtension>HTMLOWC</RenderingExtension>
<RenderingExtension>NULL</RenderingExtension>
</ExcludedRenderFormats>
</FileShareConfiguration>
</Configuration>
</Extension>
rssrvpolicy.config
Added:
<CodeGroup class="UnionCodeGroup"
version="1"
PermissionSetName="FullTrust"
Name="FaxDeliveryCodeGroup"
Description="Code group for my delivery extension">
<IMembershipCondition class="UrlMembershipCondition"
version="1"
Url="C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
Services\ReportServer\bin\FaxDeliveryProvider.dll"
/>
</CodeGroup>
RSWebApplication.confg
Added to the DeliveryUI element:
<Extension Name="Report Server Fax Delivery Extension"
Type="FaxDeliveryProvider.FaxUIControl,FaxDeliveryProvider">
<Configuration>
<FileShare>
<DefaultRenderingExtension>MHTML</DefaultRenderingExtension>
</FileShare>
</Configuration>
</Extension>
rsmgrpolicy.config
added:
<CodeGroup class="UnionCodeGroup"
version="1"
PermissionSetName="FullTrust"
Name="FaxDeliveryCodeGroup"
Description="Code group for my delivery extension">
<IMembershipCondition class="UrlMembershipCondition"
version="1"
Url="C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
Services\ReportManager\bin\FaxDeliveryProvider.dll"
/>
</CodeGroup>Anyone?
"Nick @. INDATA" wrote:
> I am working on putting together a custom delivery extension (fax delivery)
> based on the built-in File Share delivery extension.
> Most of the functionality I need already exists in the File Share delivery
> extension so I used the Lutz Roeder's .NET Reflector to disassemble the
> ReportingServicesFileShareDeliveryProvider.dll and then built my own assembly
> which essentially mimics the ReportingServicesFileShareDeliveryProvider.dll.
> I changed two class names, the FileShareProvider and FileShareUIControl
> classes are known in my assembly as FaxProvider and FaxUIControl.
> Once I had all the functionality of the
> ReportingServicesFileShareDeliveryProvider.dll (I have only changed the two
> class names and replaced references to them with the new names) I attempted
> to deploy my assembly as a custom delivery extension so that I can test that
> I have attained the same functionality as the
> ReportingServicesFileShareDeliveryProvider.dll. This is where I run into
> problems.
> I see the following in my log files for RS:
> aspnet_wp!extensionfactory!15ec!08/17/2005-14:45:59:: e ERROR: Exception
> caught instantiating report server extension:
> System.Reflection.TargetInvocationException: Exception has been thrown by the
> target of an invocation. --> System.TypeInitializationException: The type
> initializer for "FaxDeliveryProvider.FaxProvider" threw an exception. -->
> System.Security.SecurityException: Request for the permission of type
> System.Security.Permissions.StrongNameIdentityPermission, mscorlib,
> Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
> at FaxDeliveryProvider.FaxProvider..cctor()
> The state of the failed permission was:
> <IPermission
> class="System.Security.Permissions.StrongNameIdentityPermission, mscorlib,
> Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
> version="1"
> PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100272736AD6E5F9586BAC2D531EABC3ACC666C2F8EC879FA94F8F7B0327D2FF2ED523448F83C3D5C5DD2DFC7BC99C5286B2C125117BF5CBE242B9D41750732B2BDFFE649C6EFB8E5526D526FDD130095ECDB7BF210809C6CDAD8824FAA9AC0310AC3CBA2AA0523567B2DFA7FE250B30FACBD62D4EC99B94AC47C7D3B28F1F6E4C8"/>
> -- End of inner exception stack trace --
> -- End of inner exception stack trace --
> at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
> at System.Activator.CreateInstance(Type type, Boolean nonPublic)
> at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
> binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
> at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
> Binder binder, Object[] args, CultureInfo culture, Object[]
> activationAttributes)
> at System.Reflection.Assembly.CreateInstance(String typeName, Boolean
> ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args,
> CultureInfo culture, Object[] activationAttributes)
> at System.Reflection.Assembly.CreateInstance(String typeName)
> at
> Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.AssertAndCreate(Assembly assembly, String typeName)
> at
> Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.AssertAndCreate(Assembly assembly, String typeName)
> at
> Microsoft.ReportingServices.Diagnostics.ExtensionClassFactory.GetNewExtensionInstance(String extensionName, String extensionType).
> I have been doing some research and I know that the built in delivery file
> share delivery extension usese strong name security instead of URLMembership
> security...but I am not sure what I need to do or what changes I need to
> make to my config files to get around this. ANY HELP would be much
> appreciated...
> The following are the changes to the configuration files I made during
> deployment:
> RSReportServer.config
> Added:
> <Extension Name="Report Server Fax Delivery Extension"
> Type="FaxDeliveryProvider.FaxProvider,FaxDeliveryProvider">
> <MaxRetries>0</MaxRetries>
> <SecondsBeforeRetry>900</SecondsBeforeRetry>
> <Configuration>
> <FileShareConfiguration>
> <ExcludedRenderFormats>
> <RenderingExtension>HTMLOWC</RenderingExtension>
> <RenderingExtension>NULL</RenderingExtension>
> </ExcludedRenderFormats>
> </FileShareConfiguration>
> </Configuration>
> </Extension>
>
> rssrvpolicy.config
> Added:
> <CodeGroup class="UnionCodeGroup"
> version="1"
> PermissionSetName="FullTrust"
> Name="FaxDeliveryCodeGroup"
> Description="Code group for my delivery extension">
> <IMembershipCondition class="UrlMembershipCondition"
> version="1"
> Url="C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
> Services\ReportServer\bin\FaxDeliveryProvider.dll"
> />
> </CodeGroup>
> RSWebApplication.confg
> Added to the DeliveryUI element:
> <Extension Name="Report Server Fax Delivery Extension"
> Type="FaxDeliveryProvider.FaxUIControl,FaxDeliveryProvider">
> <Configuration>
> <FileShare>
> <DefaultRenderingExtension>MHTML</DefaultRenderingExtension>
> </FileShare>
> </Configuration>
> </Extension>
> rsmgrpolicy.config
> added:
> <CodeGroup class="UnionCodeGroup"
> version="1"
> PermissionSetName="FullTrust"
> Name="FaxDeliveryCodeGroup"
> Description="Code group for my delivery extension">
> <IMembershipCondition class="UrlMembershipCondition"
> version="1"
> Url="C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
> Services\ReportManager\bin\FaxDeliveryProvider.dll"
> />
> </CodeGroup>
>

problems with both file share subscriptions

I am having also problems with both email/file share subscriptions. The
Report
Manager displays the following error: Failure writing file Company Sales :
The Report Server has encountered a configuration error; more details in the
log files
This is the info from the logfile.
Reporting services and sql2000 DB are running on the same machine:
test-piv1900 (a win 2003) server
the service is running under the account: "Network Service".
With the subscription I provided the credentials from the local
Administrator of the "test-piv1900" server.
the fileshare I use is \\test-piv1900\test , I granted everyone full control
to it and additionaly granted Network Service again full control.
The report itselfs runs correct if I access it within the reportmanager.
anyone any idea's?
ReportingServicesService!subscription!f08!07/05/2004-14:20:09::
Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The Report
Server has encountered a configuration error; more details in the log
files -->
Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorEx
ception: The Report Server has encountered a configuration error; more
details in the log files
at
Microsoft.ReportingServices.Authorization.Native.GetAuthzContextForUser(IntP
tr userSid)
at Microsoft.ReportingServices.Authorization.Native.IsAdmin(String
userName)
at
Microsoft.ReportingServices.Authorization.WindowsAuthorization.IsAdmin(Strin
g userName, IntPtr userToken)
at
Microsoft.ReportingServices.Authorization.WindowsAuthorization.CheckAccess(S
tring userName, IntPtr userToken, Byte[] secDesc, ReportOperation
requiredOperation)
at Microsoft.ReportingServices.Library.Security.CheckAccess(ItemType
catItemType, Byte[] secDesc, ReportOperation rptOper)
at
Microsoft.ReportingServices.Library.RSService._GetReportParameterDefinitionF
romCatalog(CatalogItemContext reportContext, String historyID, Boolean
forRendering, Guid& reportID, Int32& executionOption, String&
savedParametersXml, ReportSnapshot& compiledDefinition, ReportSnapshot&
snapshotData, Guid& linkID, DateTime& historyDate)
at
Microsoft.ReportingServices.Library.RSService._GetReportParameters(String
report, String historyID, Boolean forRendering, NameValueCollection values,
DatasourceCredentialsCollection credentials)
at
Microsoft.ReportingServices.Library.RSService.RenderAsLiveOrSnapshot(Catalog
ItemContext reportContext, ClientRequest session, Warning[]& warnings,
ParameterInfoCollection& effectiveParameters)
at
Microsoft.ReportingServices.Library.RSService.RenderFirst(CatalogItemContext
reportContext, ClientRequest session, Warning[]& warnings,
ParameterInfoCollection& effectiveParameters, String[]&
secondaryStreamNames)
at
Microsoft.ReportingServices.Library.RenderFirstCancelableStep.Execute()
at
Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
-- End of inner exception stack trace --
at
Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
at
Microsoft.ReportingServices.Library.RenderFirstCancelableStep.RenderFirst(RS
Service rs, CatalogItemContext reportContext, ClientRequest session,
JobTypeEnum type, Warning[]& warnings, ParameterInfoCollection&
effectiveParameters, String[]& secondaryStreamNames)
at Microsoft.ReportingServices.Library.ReportImpl.Render(String
renderFormat, String deviceInfo)
at
Microsoft.ReportingServices.FileShareDeliveryProvider.FileShareProvider.Save
Report(Notification notification, SubscriptionData data)
at
Microsoft.ReportingServices.FileShareDeliveryProvider.FileShareProvider.Deli
ver(Notification notification)
thx for any responsesHi all,
When I log on the reportserver itself and use the Local Administrator
account to create the fileshare.
It works.
When I use my domain Credentials it fails even if I tell the fileshare to
use the Local Administrator credentials it only works if I accessed the
reportmanager with the Local Administrator credentials.
I still can't mail any reports ...
same error
and of course i ran servicepack 1.
these are my mailing settings.
is there maybe somthing wrong with?
"Stijn Lambrechts" <stijn.lambrechts@.pandora.be> wrote in message
news:eGC2P4oYEHA.716@.TK2MSFTNGP11.phx.gbl...
> I am having also problems with both email/file share subscriptions. The
> Report
> Manager displays the following error: Failure writing file Company Sales :
> The Report Server has encountered a configuration error; more details in
the
> log files
> This is the info from the logfile.
> Reporting services and sql2000 DB are running on the same machine:
> test-piv1900 (a win 2003) server
> the service is running under the account: "Network Service".
> With the subscription I provided the credentials from the local
> Administrator of the "test-piv1900" server.
> the fileshare I use is \\test-piv1900\test , I granted everyone full
control
> to it and additionaly granted Network Service again full control.
> The report itselfs runs correct if I access it within the reportmanager.
> anyone any idea's?
> ReportingServicesService!subscription!f08!07/05/2004-14:20:09::
> Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The Report
> Server has encountered a configuration error; more details in the log
> files -->
>
Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorEx
> ception: The Report Server has encountered a configuration error; more
> details in the log files
> at
>
Microsoft.ReportingServices.Authorization.Native.GetAuthzContextForUser(IntP
> tr userSid)
> at Microsoft.ReportingServices.Authorization.Native.IsAdmin(String
> userName)
> at
>
Microsoft.ReportingServices.Authorization.WindowsAuthorization.IsAdmin(Strin
> g userName, IntPtr userToken)
> at
>
Microsoft.ReportingServices.Authorization.WindowsAuthorization.CheckAccess(S
> tring userName, IntPtr userToken, Byte[] secDesc, ReportOperation
> requiredOperation)
> at Microsoft.ReportingServices.Library.Security.CheckAccess(ItemType
> catItemType, Byte[] secDesc, ReportOperation rptOper)
> at
>
Microsoft.ReportingServices.Library.RSService._GetReportParameterDefinitionF
> romCatalog(CatalogItemContext reportContext, String historyID, Boolean
> forRendering, Guid& reportID, Int32& executionOption, String&
> savedParametersXml, ReportSnapshot& compiledDefinition, ReportSnapshot&
> snapshotData, Guid& linkID, DateTime& historyDate)
> at
> Microsoft.ReportingServices.Library.RSService._GetReportParameters(String
> report, String historyID, Boolean forRendering, NameValueCollection
values,
> DatasourceCredentialsCollection credentials)
> at
>
Microsoft.ReportingServices.Library.RSService.RenderAsLiveOrSnapshot(Catalog
> ItemContext reportContext, ClientRequest session, Warning[]& warnings,
> ParameterInfoCollection& effectiveParameters)
> at
>
Microsoft.ReportingServices.Library.RSService.RenderFirst(CatalogItemContext
> reportContext, ClientRequest session, Warning[]& warnings,
> ParameterInfoCollection& effectiveParameters, String[]&
> secondaryStreamNames)
> at
> Microsoft.ReportingServices.Library.RenderFirstCancelableStep.Execute()
> at
>
Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
> -- End of inner exception stack trace --
> at
>
Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()
> at
>
Microsoft.ReportingServices.Library.RenderFirstCancelableStep.RenderFirst(RS
> Service rs, CatalogItemContext reportContext, ClientRequest session,
> JobTypeEnum type, Warning[]& warnings, ParameterInfoCollection&
> effectiveParameters, String[]& secondaryStreamNames)
> at Microsoft.ReportingServices.Library.ReportImpl.Render(String
> renderFormat, String deviceInfo)
> at
>
Microsoft.ReportingServices.FileShareDeliveryProvider.FileShareProvider.Save
> Report(Notification notification, SubscriptionData data)
> at
>
Microsoft.ReportingServices.FileShareDeliveryProvider.FileShareProvider.Deli
> ver(Notification notification)
> thx for any responses
>