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
B

BigBlueEye

@BigBlueEye
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • can anyone recommend a screen video capture program?
    B BigBlueEye

    another vote for Snag It by Tech Smith, it is really awesome

    The Lounge question

  • Web hosting recommendations
    B BigBlueEye

    I like www.ihostasp.net, they are good guys, offer good service, good support and are very reasonably priced.

    The Lounge csharp database asp-net sql-server sysadmin

  • Looking For A Tool...
    B BigBlueEye

    Try www.getdropbox.com, it works well for me.

    The Lounge sysadmin json question announcement

  • Sci-fi movies
    B BigBlueEye

    How about the most recent Battlestar Galactica from the SciFi channel. I loved the old series when I was a kid so didn't start watching the new series till recently. I just started off with the mini-series and loved it!

    The Lounge question

  • WebService Authorization - The request failed with HTTP status 401: Unauthorized.
    B BigBlueEye

    Hello. Here is my situation. I'm building a client asp.net application that will reside on our DMZ. I have a web service (called "ServiceBus") that acts as a single access point through a single port to our data center. The ServiceBus has methods that do several tasks such as fetching data, running SSRS reports, streaming documents, etc. Everything works fine when testing my client app from within the domain but from the DMZ I get authorization errors (see subject line). The following line of code will get me to the HelloWorld method but any other method that fetches anything from another server fails with permission errors: serviceproxy.Credentials = System.Net.CredentialCache.DefaultCredentials So it seems that I need to send domain user credentials which I try below. I have IIS security set to Digest. The code below was suggested on this post: http://forums.asp.net/p/1050587/1862246.aspx#1862246 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim serviceproxy As New WSBus.ServicesBusWebService() Dim userCredential As NetworkCredential = New NetworkCredential("username", "password", "domain") Dim credentials As CredentialCache = New CredentialCache() credentials.Add(New Uri(serviceproxy.Url), "Digest", userCredential) serviceproxy.Credentials = credentials serviceproxy.PreAuthenticate = True Dim response = serviceproxy.HelloWorld() 'BREAKS HERE lblMessage.Text = response End Sub Any help will be greatly appreciated!

    Web Development security csharp asp-net sql-server sysadmin

  • Please Help with a Web Service!
    B BigBlueEye

    I have code that calls a report (report service 2005) that I have to put into a web service and then stream to a client app (vb - asp.net). The code that runs the report, gets and displays the report fine if I place it on a regular aspx page but I can't figure out how to put it in a web service and stream it to a client for consumption. The following code will display the report: Response.ClearContent() Response.AppendHeader("content-length", result.Length.ToString()) Response.ContentType = "application/PDF" Response.BinaryWrite(result) Response.Flush() Response.Close() and this will write it to a file: Dim stream As System.IO.FileStream = System.IO.File.OpenWrite(fileName) stream.Write(result, 0, result.Length) But how to I do this as a web method????? Full code is below: --------------------------------------------------------------------------- Imports System.IO Imports System.Web Imports System.Net Imports System.Web.Services Imports System.Web.Services.Protocols _ _ _ Public Class ServicesBus Inherits System.Web.Services.WebService _ Public Function GetReport() As String Dim rs As RptSrv2005.ReportingService2005 Dim rsExec As RptExec2005.ReportExecutionService 'create new proxy to the web service rs = New RptSrv2005.ReportingService2005() rsExec = New RptExec2005.ReportExecutionService() 'authenticate to the web service using windows credentials rs.Credentials = System.Net.CredentialCache.DefaultCredentials rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials 'assign the url of the web service rs.Url = "http://192.168.248.12/ReportServer/ReportService2005.asmx" rsExec.Url = "http://192.168.248.12/ReportServer/ReportExecution2005.asmx" 'prepare render arguments Dim result As Byte() = Nothing 'Dim reportPath As String = "/AP Recovery Audits Reports/VendorsStatus " Dim format As String = "PDF" Dim historyID As String = Nothing Dim devInfo As String = "False" Dim extension As String = Nothing Dim encoding As String = Nothing Dim mimeType As String = Nothing Dim warnings As RptExec2005.Warning() = Nothing

    ASP.NET csharp asp-net help tutorial question

  • Displaying SSRS 2005 via Web Services in ASP.NET
    B BigBlueEye

    Hi. I've created a SSRS chart report that I'd like to display in my .net web application via web services. I've found a few examples that work with SSRS 2000 but not 05. I've managed to get the report to write to a pdf file but I'm unable display it directly in a browser. My code is below, any help will be greatly appreciated. Also if anyone knows where I can review some SSRS 2005 examples of displaying reports on a web page, that would be great! Thanks! Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim rs As RSwebReference.ReportingService2005 = New RSwebReference.ReportingService2005() Dim rsExec As RSwebReference.ReportExecutionService = New RSwebReference.ReportExecutionService() 'Authenticate to the Web service using Windows credentials rs.Credentials = System.Net.CredentialCache.DefaultCredentials rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials 'Assign the URL of the Web service rs.Url = "http://localhost/REPORTSERVER$SQL2005/ReportService2005.asmx" rsExec.Url = "http://localhost/REPORTSERVER$SQL2005/ReportExecution2005.asmx" Dim results As Byte() = Nothing Dim historyID As String = Nothing Dim format As String = "pdf" Dim encoding As String Dim mimeType As String Dim extension As String Dim warnings() As RSwebReference.Warning Dim streamIDs() As String = Nothing Dim fileName As String = "C:\samplereport.pdf" Dim deviceInfo As String = Nothing 'Dim deviceInfo As String = _ ' "" + _ ' "False" + _ ' "False" + _ ' "True" + _ ' "100" + _ ' "" 'Define variables needed for GetParameters() method Dim _reportName As String = "/Test/AuditVendorStatus" Dim _historyID As String = Nothing Dim _forRendering As Boolean = False Dim _values As RSwebReference.ParameterValue() = Nothing Dim _credentials As RSwebReference.DataSourceCredentials() = Nothing Dim _parameters As RSwebReference.ReportParameter() = Nothing Try 'Get if any parameters needed. '_parameters = rs.GetReportParameters(_reportName, _historyID, _forRendering, _values, _credentials) 'Load the selected report. Dim ei A

    ASP.NET csharp asp-net sql-server wcf 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