HttpWebRequest

modularbeing

Regular
Joined
Jan 8, 2004
Messages
63
Im using System.Net.HttpWebRequest.Create(url) to access sql reporting services in my asp.net page. However when I do this I get an error 401 unauthorized. I was wondering if anyone knew what credentials are used when using this class, so that I can permission them in reportings services and in sql.

thanks,
Josh
 
Robby said:
Would it not suite you better to setup a Web Service then make requests to the service?

for the project I am doing I need to modify the HTML portion of the report in a way that reporting services cannot offer me, so what I plan on doing is grabbing the html from the reporting web service and then making the changes I need before I pass it along to the client.
 
Robby said:
So you will be parsing an html report that you created in the first place?

yes, I need to replace an image with a check box for the customer to check that they agree to the conditions of the form. Rather than creating 10 more aspx pages and sql proc's for each form to pull the data and display it to the customer so they can click an I Agree box.
 
I figured it out, I was not passing the credentials correctly. I was using defaultcredentials and I needed to add a credential to credentialcache.
 
Back
Top