Showing posts with label authority. Show all posts
Showing posts with label authority. Show all posts

Tuesday, March 20, 2012

permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are ins

I am trying to read the WebServices to gather information about the catalog.
When I run the application from my development box and reading from the
Reporting Services server for the Catalog all run fine.
But when I transfer the application (asp.net) to the server it fails with:
System.Web.Services.Protocols.SoapException: The permissions granted to user
'NT AUTHORITY\NETWORK SERVICE' are insufficient for performing this
operation. -->
Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The
permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are insufficient
for performing this operation. at
Microsoft.ReportingServices.Library.RSService.ListChildren(String item,
Boolean recursive) at
Microsoft.ReportingServices.WebServer.ReportingService.ListChildren(String
Item, Boolean Recursive, CatalogItem[]& CatalogItems) -- End of inner
exception stack trace -- at
Microsoft.ReportingServices.WebServer.ReportingService.ListChildren(String
Item, Boolean Recursive, CatalogItem[]& CatalogItems)
The code is quite simple:
VB.NET
Dim rService As ReportingService = New ReportingService
rService.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim catalogItems As CatalogItem()
catalogItems = rService.ListChildren(Global.ReportPath, True)
C#.NET
ReportingService rService = new ReportingService();
rService.Credentials = System.Net.CredentialCache.DefaultCredentials;
CatalogItem[][0] catalogItems;
catalogItems = rService.ListChildren(Global.ReportPath, true);
--
Regards
<<<Bryan Avery>>Found the problem to be with web.config file.
Adding the following line under
<authentication mode="Windows" />
<identity impersonate="true" />
And it all springs in to life
--
Regards
<<<Bryan Avery>>
"Bryan Avery" wrote:
> I am trying to read the WebServices to gather information about the catalog.
> When I run the application from my development box and reading from the
> Reporting Services server for the Catalog all run fine.
> But when I transfer the application (asp.net) to the server it fails with:
> System.Web.Services.Protocols.SoapException: The permissions granted to user
> 'NT AUTHORITY\NETWORK SERVICE' are insufficient for performing this
> operation. -->
> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The
> permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are insufficient
> for performing this operation. at
> Microsoft.ReportingServices.Library.RSService.ListChildren(String item,
> Boolean recursive) at
> Microsoft.ReportingServices.WebServer.ReportingService.ListChildren(String
> Item, Boolean Recursive, CatalogItem[]& CatalogItems) -- End of inner
> exception stack trace -- at
> Microsoft.ReportingServices.WebServer.ReportingService.ListChildren(String
> Item, Boolean Recursive, CatalogItem[]& CatalogItems)
> The code is quite simple:
> VB.NET
> Dim rService As ReportingService = New ReportingService
> rService.Credentials => System.Net.CredentialCache.DefaultCredentials
> Dim catalogItems As CatalogItem()
> catalogItems = rService.ListChildren(Global.ReportPath, True)
> C#.NET
> ReportingService rService = new ReportingService();
> rService.Credentials => System.Net.CredentialCache.DefaultCredentials;
> CatalogItem[][0] catalogItems;
> catalogItems = rService.ListChildren(Global.ReportPath, true);
> --
> Regards
> <<<Bryan Avery>>

Friday, March 9, 2012

Permissions

The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are
insufficient for performing this operation
I am getting this error when I have installed my asp.net application on the
server, it runs fine on my development box, here is the code that is running:
Dim rService As ReportingService = New ReportingService
rService.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim catalogItems As CatalogItem()
catalogItems = rService.ListChildren("/", True)
And it's falling over on the last line, anyone got any ideas?
--
Regards
<<<Bryan Avery>>Have your asp.net application run under different credentials. You can set
these for services on the Log On tab for the services property.
"Bryan Avery" wrote:
> The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are
> insufficient for performing this operation
> I am getting this error when I have installed my asp.net application on the
> server, it runs fine on my development box, here is the code that is running:
> Dim rService As ReportingService = New ReportingService
> rService.Credentials = System.Net.CredentialCache.DefaultCredentials
> Dim catalogItems As CatalogItem()
> catalogItems = rService.ListChildren("/", True)
> And it's falling over on the last line, anyone got any ideas?
> --
> Regards
> <<<Bryan Avery>>|||Hi,
I'm a little unsure what you mean by setting different credentials for the
application, where and how do you set them?
--
Regards
<<<Bryan Avery>>
"Harolds" wrote:
> Have your asp.net application run under different credentials. You can set
> these for services on the Log On tab for the services property.
> "Bryan Avery" wrote:
> > The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are
> > insufficient for performing this operation
> >
> > I am getting this error when I have installed my asp.net application on the
> > server, it runs fine on my development box, here is the code that is running:
> >
> > Dim rService As ReportingService = New ReportingService
> > rService.Credentials = System.Net.CredentialCache.DefaultCredentials
> > Dim catalogItems As CatalogItem()
> > catalogItems = rService.ListChildren("/", True)
> >
> > And it's falling over on the last line, anyone got any ideas?
> >
> > --
> > Regards
> >
> > <<<Bryan Avery>>|||Found the problem to be with web.config file.
Adding the following line under
<authentication mode="Windows" />
<identity impersonate="true" />
And it all springs in to life
--
Regards
<<<Bryan Avery>>
"Bryan Avery" wrote:
> Hi,
> I'm a little unsure what you mean by setting different credentials for the
> application, where and how do you set them?
> --
> Regards
> <<<Bryan Avery>>
>
> "Harolds" wrote:
> > Have your asp.net application run under different credentials. You can set
> > these for services on the Log On tab for the services property.
> >
> > "Bryan Avery" wrote:
> >
> > > The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are
> > > insufficient for performing this operation
> > >
> > > I am getting this error when I have installed my asp.net application on the
> > > server, it runs fine on my development box, here is the code that is running:
> > >
> > > Dim rService As ReportingService = New ReportingService
> > > rService.Credentials = System.Net.CredentialCache.DefaultCredentials
> > > Dim catalogItems As CatalogItem()
> > > catalogItems = rService.ListChildren("/", True)
> > >
> > > And it's falling over on the last line, anyone got any ideas?
> > >
> > > --
> > > Regards
> > >
> > > <<<Bryan Avery>>