Showing posts with label http. Show all posts
Showing posts with label http. Show all posts

Wednesday, March 28, 2012

Web server reported following error... HTTP/1.1 500 Internal Server Error

My server is running Windows 2003. ASP.NET 1.1 is installed and seems to be
working fine but when I try to create a project from VS.NET 2003 I get the
"Web server reported following error... HTTP/1.1 500 Internal Server Error"
message.

I have already read a bunch of posts from others saying to run
aspnet_regiis.exe -i and the like but none of this has worked. Here's what I
have found:

BTW: Each website has its own IUSR account associated with it (i.e.
IUSR_websitename). This may or may not be relevant.

If I run FileMon while I try to create the project, I see that w3wp.exe
tries to access the root directory of the web as follows:

OPEN c:\Domains\website.com - SUCCESS

Then a few lines later I see this:

OPEN c:\Domains\website.com\ - ACCESS DENIED

Note the only difference is the slash. I have made the ASPNET worker process
part of the admin group for the sake of argument but still get the same
results.

Any help is appreciated.I found that if I go to IIS

IIS->Application Pools->DefaultAppPool

which is the app pool my app is sitting in, and change the identity from
Network Service to Local Service, I am able to create my app. However, I
would like to know how to fix this problem without compromising the security
of my server.

Thanks
I ran into the same problem a few weeks ago. Nothing seemed to work
for me, but I finally deleted the ASPNET account using Computer
Management and went through the steps listed here:

http://support.microsoft.com/?id=306005

I hope this helps.

Amaryllis

Monday, March 26, 2012

web service error: The request failed with HTTP status 401: Unauthorized.

I am doing the web service walk-through from here:http://msdn2.microsoft.com/library/87h5xz7x(en-us,vs.80).aspx

I get the error 'The request failed with HTTP status 401: Unauthorized'. My app is using windows authentication, I made sure the web service folder has permissions for everyone to execute and that didn't work. IIS has annonymous access checked.

I'm not sure what else to do.

Help?

Another thing... I'm using the integrated web server that comes with Visual Studio... does using it change things?

Hello.

I've faced that error when I tried to use async pages (at the time I thought that building a simple web service was the easiest way to test them). if i'm not mistaken, I started facing that kind of problems when I moved to beta 2 (pre-beta 2 releases worked without any problems). at that time i tried using IIS and the 1st attempts worked ok. However, at home I always got that error. never solved at home...really strange thing (in my case the exampl was really simple: the web service only had a single method which returned "hello word"). If anyone knows what wrong please let us know.


I get the same 401 failure under the same conditions. Some additional behaviors are that I can only get the web service discovery to work within the current project with the web service in the same directory. Web service discovery doesn't work for the localhost using a separate project under a different directory. I also have to include the port number in the namespace := "http://localhost:1363/" line for the 'follow link' to work.
The port number changes for each instance of the localhost webserver but seems to be hardcoded into the web service discovery files in the app_webreference folder.
I didn't change the proxy settings.

I mentioned in my previous post that I got the same 401 error.

I found that UNCHECKING the NTLM authentication checkbox in the website, start options dialog boxremoves the 401 error. I'm using Visual Studio Express, Beta 2.
When I go back and re-check the NTLM authentication checkbox, I get the same error or some other strange behavior such as the default.aspx page loads...( I suppose as part of the NTLM authentication process). I created a new page Call_HelloWorld_WebService.aspx that just calls the Hello_World web service as in the walkthrough. I start the Call_HelloWorld_WebService.aspx page using <ctrl><f5> and use the default web server that ships with VSE Beta 2.
SBR

Web Service example

John,

Take a look at this: -

http://abstractvb.com/code.asp?A=1006

Hth,
Phil Winstanley
Microsoft ASP.NET MVP
http://www.myservicescentral.comAnything in vb.net?

Thanks

"Phil Winstanley [Microsoft MVP ASP.NET]" <phil@.winstanley.name> wrote in
message news:cadbqd$nur@.odak26.prod.google.com...
> John,
> Take a look at this: -
> http://abstractvb.com/code.asp?A=1006
> Hth,
> Phil Winstanley
> Microsoft ASP.NET MVP
> http://www.myservicescentral.com

Web Service fail

I have a web service in http://xxx.xxx.xxx.xxx/HealthService/Service.asmx
When I enter the URL in browse, it run ok.
But when I call it by web service client, it fail with message: can't
connect to remote server.check if your browser connects with a proxy server to the ws

chack also if the ws requires authentication and in this case add the
correct credentials to the proxy client.

steve

"ad" <flying@.wfes.tcc.edu.twa crit dans le message de news:
ezh7jx7EHHA.2464@.TK2MSFTNGP06.phx.gbl...

Quote:

Originally Posted by

>I have a web service in http://xxx.xxx.xxx.xxx/HealthService/Service.asmx
>
When I enter the URL in browse, it run ok.
But when I call it by web service client, it fail with message: can't
connect to remote server.
>
>
>
>

Saturday, March 24, 2012

Web service Problem

When fetch data from Web services
system generate error
Request Faild with Http Status 401 : Unaothorised
Plzzzzzzz HelppIt is extremely aggravating to see a post like this which, without any details, tells us just a generic error and fails to mention any other details which may help us in pointing the poster towards a solution. This one here, this is like going up to a car mechanic and saying "My car made a noise and now it's broken. Please fix it, thanks and bye bye for now."

We're here to help, but you have to help us help you.

The error you've gotten is too generic to point towards any one cause for it. It could be authentication on the server or it could be ACL. We won't know until you give us details.
this is web services file

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.Web.Services;
using System.Data.OleDb;
using System.Web.Mail;
using System.Text.RegularExpressions;
namespace testService
{
/// <summary>
/// Summary description for Service1.
/// </summary>
///
[WebService(Namespace="http://localhost/testService/")]

public class Service1 : System.Web.Services.WebService
{
public Service1()
{
//CODEGEN: This call is required by the ASP.NET Web Services Designer
InitializeComponent();
}

#region Component Designer generated code

//Required by the Web Services Designer
private IContainer components = null;

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if(disposing && components != null)
{
components.Dispose();
}
base.Dispose(disposing);
}

#endregion
[WebMethod]
public double MathFun(double a,double b)
{
double c;
c= a +b ;
return c;
}

}
}

this is discofile

<?xml version="1.0" ?>
<discovery xmlns="http://schemas.xmlsoap.org/disco/">
<discoveryRef ref="/Folder/Default.disco" />
<contractRef ref="http://waseem-pc/testService/Service1.asmx?WSDL" docRef="Service.htm" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<schemaRef ref="Schema.xsd" xmlns="http://schemas.xmlsoap.org/disco/schema/" />
</discovery>

this is calling code
[WebService(Namespace="http://localhost/testService/")]

Patwar.Check.Service1 srv = new Patwar.Check.Service1(); chk = srv.MathFun(1,3);
open IIS
Expand Web Site-->Default Web Site-->Web Service Virtual Directory
and right click on this folder and click on Directory Security Tab

Click on Authantication and Access Control Edit button

and check enable anonymus access

http://geekswithblogs.net/ranganh/archive/2006/02/21/70212.aspx

Monday, March 12, 2012

Web Services vs .NET Remoting over HTTP with SOAP

What are the differences between using web services and using .NET
remoting with http transport and soap encoding ?
When dealing with .net to .net communications, particular when the
same company is responsible for both sides of the app (client and
server), what are advantages/divantages of each?
Thanks,
Sam
----
We're hiring! B-Line Medical is sing .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.One advantage of web services is dynamic discovery.
"Samuel R. Neff" <samuelneff@.nomail.com> wrote in message
news:obs373pskiu1mvmtjs7jcnm6m0jml1qp3n@.
4ax.com...
> What are the differences between using web services and using .NET
> remoting with http transport and soap encoding ?
> When dealing with .net to .net communications, particular when the
> same company is responsible for both sides of the app (client and
> server), what are advantages/divantages of each?
> Thanks,
> Sam
> ----
> We're hiring! B-Line Medical is sing .NET
> Developers for exciting positions in medical product
> development in MD/DC. Work with a variety of technologies
> in a relaxed team environment. See ads on Dice.com.
>
"Samuel R. Neff" <samuelneff@.nomail.com> wrote in message
news:obs373pskiu1mvmtjs7jcnm6m0jml1qp3n@.
4ax.com...
> What are the differences between using web services and using .NET
> remoting with http transport and soap encoding ?
> When dealing with .net to .net communications, particular when the
> same company is responsible for both sides of the app (client and
> server), what are advantages/divantages of each?
Web services are meant to be platform-neutral. That means least common
denominator.
With .NET remoting, you can use .NET-specific features like properties,
indexers, and even non-default constructors.
--
John Saunders [MVP]

Web Services vs .NET Remoting over HTTP with SOAP

What are the differences between using web services and using .NET
remoting with http transport and soap encoding ?

When dealing with .net to .net communications, particular when the
same company is responsible for both sides of the app (client and
server), what are advantages/disadvantages of each?

Thanks,

Sam

------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.One advantage of web services is dynamic discovery.

"Samuel R. Neff" <samuelneff@.nomail.comwrote in message
news:obs373pskiu1mvmtjs7jcnm6m0jml1qp3n@.4ax.com...

Quote:

Originally Posted by

What are the differences between using web services and using .NET
remoting with http transport and soap encoding ?
>
When dealing with .net to .net communications, particular when the
same company is responsible for both sides of the app (client and
server), what are advantages/disadvantages of each?
>
Thanks,
>
Sam
>
------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.
>


"Samuel R. Neff" <samuelneff@.nomail.comwrote in message
news:obs373pskiu1mvmtjs7jcnm6m0jml1qp3n@.4ax.com...

Quote:

Originally Posted by

What are the differences between using web services and using .NET
remoting with http transport and soap encoding ?
>
When dealing with .net to .net communications, particular when the
same company is responsible for both sides of the app (client and
server), what are advantages/disadvantages of each?


Web services are meant to be platform-neutral. That means least common
denominator.

With .NET remoting, you can use .NET-specific features like properties,
indexers, and even non-default constructors.
--
John Saunders [MVP]