Ask a Question related to ASP.NET General, Design and Development.
-
Problem with SDK v1.1 sample...
I'm having trouble with the VB MathServiceClient sample in the SDK (v1.1).
When I compiled the sample it created the proxy class file
(MathService.wsdl). All other samples work OK, so I don't think it's
permission related.....
Exception Details: System.Net.WebException: The request failed with HTTP
status 401: Unauthorized.
Source Error:
Line 59:
<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("http://tempuri.o
rg/Subtract", RequestNamespace:="http://tempuri.org/",
ResponseNamespace:="http://tempuri.org/",
Use:=System.Web.Services.Description.SoapBindingUs e.Literal,
ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.Wrapped)>
_
Line 60: Public Function Subtract(ByVal A As Single, ByVal B As
Single) As Single
Line 61: Dim results() As Object = Me.Invoke("Subtract", New
Object() {A, B})
Line 62: Return CType(results(0),Single)
Line 63: End Function
Source File: <pathToSrc>\MathService.vb Line: 61
Stack Trace:
[WebException: The request failed with HTTP status 401: Unauthorized.]
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClient
Message message, WebResponse response, Stream responseStream, Boolean
asyncCall) +1294
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters) +218
MathServiceVB.MathService.Subtract(Single A, Single B) in
<pathToSrc>\MathService.vb:61
_ASP.mathserviceclient_aspx.Submit_Click(Object Sender, EventArgs E) +318
System.Web.UI.HtmlControls.HtmlInputButton.OnServe rClick(EventArgs e)
+108
System.Web.UI.HtmlControls.HtmlInputButton.System. Web.UI.IPostBackEventHandl
er.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
Guest
-
The way to run an sample.
I installed Flash Media Server 2, Flash 5, Extension Manager, Dreamweaver 8 both in "C:\Program Files\Macromedia" directory. I uncompressed... -
Problem with local installation of the flex store sample.
I've downloaded and installed the flex store sample. I unpacked the zip file into a c:\jrun\servers\cfusion\cfusion-ear\cfusion-war\flexstore... -
Sample application problem
Dear Sir, I installed the flash media server trial. I tried some samples downloaded the developing center and find some problem: 1,"Using File... -
Here you have a sample
Without more specifics I can show you how to get the data. This is assuming a lot because I am confused about what you want to do. Here is what I... -
UDF Problem (to_char() migration sample)
Hi, I have build the UDF sample TO_CHAR(timestamp, dateformat). It built successfully but, on executing the function I got following message: ... -
Cowboy \(Gregory A. Beamer\) #2
Re: Problem with SDK v1.1 sample...
If this is the only WSDL (web services) example you have tried, it probably
is permisssions related. The 1.1 Framework locks many things down, by
default, that 1.0 left open. We found a way to tweak the machine.config file
to allow web services to work. It is a separate tag for GET and POST
implementations.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge
************************************************** **************************
****
Think Outside the Box!
************************************************** **************************
****
<.> wrote in message news:%23ZKZNDWQDHA.2676@TK2MSFTNGP10.phx.gbl...<System.Web.Services.Protocols.SoapDocumentMethodA ttribute("http://tempuri.o> I'm having trouble with the VB MathServiceClient sample in the SDK (v1.1).
> When I compiled the sample it created the proxy class file
> (MathService.wsdl). All other samples work OK, so I don't think it's
> permission related.....
>
> Exception Details: System.Net.WebException: The request failed with HTTP
> status 401: Unauthorized.
>
> Source Error:
>
> Line 59:
>System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClient> rg/Subtract", RequestNamespace:="http://tempuri.org/",
> ResponseNamespace:="http://tempuri.org/",
> Use:=System.Web.Services.Description.SoapBindingUs e.Literal,
> ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.Wrapped)>
> _
> Line 60: Public Function Subtract(ByVal A As Single, ByVal B As
> Single) As Single
> Line 61: Dim results() As Object = Me.Invoke("Subtract", New
> Object() {A, B})
> Line 62: Return CType(results(0),Single)
> Line 63: End Function
>
> Source File: <pathToSrc>\MathService.vb Line: 61
>
> Stack Trace:
>
> [WebException: The request failed with HTTP status 401: Unauthorized.]
>
>+318> Message message, WebResponse response, Stream responseStream, Boolean
> asyncCall) +1294
> System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
> methodName, Object[] parameters) +218
> MathServiceVB.MathService.Subtract(Single A, Single B) in
> <pathToSrc>\MathService.vb:61
> _ASP.mathserviceclient_aspx.Submit_Click(Object Sender, EventArgs E)System.Web.UI.HtmlControls.HtmlInputButton.System. Web.UI.IPostBackEventHandl> System.Web.UI.HtmlControls.HtmlInputButton.OnServe rClick(EventArgs e)
> +108
>
>> er.RaisePostBackEvent(String eventArgument) +57
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
> sourceControl, String eventArgument) +18
> System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
> System.Web.UI.Page.ProcessRequestMain() +1277
>
>
>
Cowboy \(Gregory A. Beamer\) Guest
-
-
Re: Problem with SDK v1.1 sample...
Thanks anyhow; I figured it out. I had to manually config the Quickstarts
and I neglected to make the sample in question an app in IIS.
Guest



Reply With Quote

