| giuseppe dominijanni |
Reporting Services: autorizzazioni non sufficienti
Salve a tutti,
come dal messaggio precedente, ho installato Reporting Services nel mio pc. Ho costruito un report. Il codice, per visualizzarlo da parte utente, utilizzando il Web service, è il seguente: Dim rs As WS_ReportingServices.ReportingService Private Sub CostruzioneReport() Try rs = New WS_ReportingServices.ReportingService rs.Credentials = System.Net.CredentialCache.DefaultCredentials Dim result As Byte() Dim Report As String = "/WebCast/Sales" Dim Format As String = "HTML4.0" Dim HistoryID As String = Nothing Dim DeviceInfo As String = "<DeviceInfo><Toolbar>True</Toolbar></DeviceInfo>" result = rs.Render(Report, Format, HistoryID, DeviceInfo, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing) Catch ex As Exception Dim st As String = ex.Message End Try End Sub Se utilizzo il codice da una Windows form (dopo aggiunta riferimenti web, del Web service), funziona; se il tutto, da una Web form, ottengo, al result = rs.Render(...... "System.Web.Services.Protocols.SoapException: Le autorizzazioni concesse all'utente "GIUSEPPE\ASPNET" non sono sufficienti per eseguire questa operazione. ---> Microsoft.ReportingServices.Diagnostics.Utilities.RSException: Le autorizzazioni concesse all'utente "GIUSEPPE\ASPNET" non sono sufficienti per eseguire questa operazione. ........" Ho consultato la guida, ma non riesco a trovare il modo per dare le opportune autorizzazioni. Grazie giuseppeD |
| Andrea Soldano |
Re: Reporting Services: autorizzazioni non sufficienti
Il problema è legato alle credenziale che passi all'oggetto reportingService... sostituisci rs.Credentials = System.Net.CredentialCache.DefaultCredentials con rs.Credentials = New NetworkCredential("UserName", "Password", "Domain") username, password e domain devono essere quelli di un utente autorizzato in reporting services.... Ciao -- ---------------------------------- Andrea Soldano - MCP http://www.software-house.it "UGI 2903" <UGI2903_TOGLIQUESTASTRINGA@_TOGLIQUESTASTRINGAugidotnet.org> wrote in message news:865c1fe5-8d14-4d09-a5a1-3fe570162352@UGI41983... > Salve a tutti, > come dal messaggio precedente, ho installato Reporting Services nel mio pc. > Ho costruito un report. > Il codice, per visualizzarlo da parte utente, utilizzando il Web service, è il > seguente: > > Dim rs As WS_ReportingServices.ReportingService > Private Sub CostruzioneReport() > Try > rs = New WS_ReportingServices.ReportingService > rs.Credentials = System.Net.CredentialCache.DefaultCredentials > Dim result As Byte() > Dim Report As String = "/WebCast/Sales" > Dim Format As String = "HTML4.0" > Dim HistoryID As String = Nothing > Dim DeviceInfo As String = "<DeviceInfo><Toolbar>True</Toolbar></DeviceInfo>" > > result = rs.Render(Report, Format, HistoryID, DeviceInfo, Nothing, Nothing, > Nothing, Nothing, Nothing, Nothing, Nothing, Nothing) > > Catch ex As Exception > Dim st As String = ex.Message > End Try > End Sub > > Se utilizzo il codice da una Windows form (dopo aggiunta riferimenti web, del > Web service), > funziona; > se il tutto, da una Web form, ottengo, al > result = rs.Render(...... > > "System.Web.Services.Protocols.SoapException: Le autorizzazioni concesse > all'utente "GIUSEPPE\ASPNET" non sono sufficienti per eseguire questa > operazione. ---> Microsoft.ReportingServices.Diagnostics.Utilities.RSException: > Le autorizzazioni concesse all'utente "GIUSEPPE\ASPNET" non sono sufficienti > per eseguire questa operazione. ........" > > Ho consultato la guida, ma non riesco a trovare il modo per dare le opportune > autorizzazioni. > > Grazie > giuseppeD > -- > Questo messaggio è stato postato da http://www.ugidotnet.org/forum > UGIdotNET - User Group Italiano .NET -- Questo messaggio è stato postato da microsoft.public.it.dotnet.asp. |