Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
U

User 10135172

@User 10135172
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • The request failed with HTTP status 401: Unauthorized
    U User 10135172

    Thanks for your response. I am using the system administrator account details and I am not specifying the domain. I use something like this: Username: administrator Password: mylxghs

    ASP.NET csharp asp-net sql-server sysadmin help

  • The request failed with HTTP status 401: Unauthorized
    U User 10135172

    I trying get ssrs 2008 up and running on a new server. I got everything to work just like it dit on my old server and I can deploy reports and view them in the report manager, but I cannot seem to view a report from asp.net applications either in a reportviewer or using the reportexecutionservice. I keep getting the error: The request failed with HTTP status 401: Unauthorized This is the first time that I had to set up ssrs so I do not know whether I have missed something. I tried to make everything the same as the instance on my old server. Any assistance would be appreciated. The following code is what I use for the web execution service and it used to work fine. This code basically just renders the report as a pdf and downloads it. rs.Credentials = New System.Net.NetworkCredential("username", "password", "domainname") Dim reportPath As String = "/OLS/" & ReportName Dim ResultStream() As Byte Dim StreamIdentifiers() As String = Nothing Dim optionalParams(1) As ParameterValue Dim OptionalParam As String = Nothing Dim optionalWarnings As WebReference.Warning() = Nothing optionalParams(0) = New WebReference.ParameterValue optionalParams(0).Name = "WarningID" optionalParams(0).Value = Session("ID") ' Create and set the content type string Dim contentType As String = "application/pdf" Dim historyID As String = Nothing Dim devInfo As String = "False" Dim format As String = "PDF" Dim extension As String = "" Dim encoding As String = "" Dim mimeType As String = "" Dim warnings As Warning() = Nothing Dim streamIDs As String() = Nothing Dim WarningID As String WarningID = Session("ID") Dim execInfo As New ExecutionInfo Dim execHeader As New ExecutionHeader() rs.ExecutionHeaderValue = execHeader execInfo = rs.LoadReport(reportPath, historyID) rs.SetExecutionParameters(optionalParams, "en-us") Dim FilePath As String FilePath = "c:\WebDocuments\OLS\TempDocs\" & Session("EmployeeID") & "\" Try ResultStream = rs.Render(format, devInfo, extension, e

    ASP.NET csharp asp-net sql-server sysadmin help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups