Showing posts with label failed. Show all posts
Showing posts with label failed. Show all posts

Saturday, March 31, 2012

Web server error

Hi,

I am having a problem when I am making an ASP.Net Project. When I am making a new project, it is prompting for "Web Access Failed" and the explanation says

-----------------------------
The default Web access mode for this project is set to file share, but the project folder
at 'http://localhost/WebApplication1' cannot be opened with the path 'c:\inetpub\companyweb\WebApplication1'. The error returned was:

Unable to create Web project 'WebApplication1'. The file path
'c:\inetpub\companyweb\WebApplication1' does not correspond to the URL
'http://localhost/WebApplication1'. The two need to map to the same server location. HTTP Error 404:
Not Found

What would you like to do?
1. Retry using a different file share path
Location: c:\inetpub\companyweb\WebApplication1
2. Try to open the project with Frontpage Server Extensions
-----------------------------

I am using Windows 2003 Small Business Server Edition, I installed IIS and we are using our intranet pretty good. We are not having any problems with it. I am pretty sure that I have enough access because I am logon as an administrator. I also tried to put it in a different directory but to no avail. What seems to be the problem why I cannot make a new project in ASP.Net, any links, tutorial regarding this problem will be of great help. thank you.Windows 2003 Servers come in an extremely locked down state to begin with.
I have not tried starting a project on the server, but here is a good article that addresses your problem:
Creating ASP.NET VS.NET Projects in Windows Server 2003
gee tnx, ill try this one
oh no, i tried it but it still won't work, any other ideas? pls. help tnx

Monday, March 26, 2012

'web service call failed: 500' using ajax hovermenu and web service

Hi there,
I'm using a hovermenuextender attached to a templatefield of a
gridview, and everything seemed to work fine.. however I've moved on
to add dynamic attributes to the hovermenu. Now I get the error "web
service call failed: 500" in place of the output I want (on the
hovermenu's panel).
When accessing the web service I created (directly through the
browser) everything works fine..
here's my hovermenuextender dynamic attributes
DynamicContextKey='<%=eval("refnumber") %>'
DynamicServiceMethod="GetSearchDetails"
DynamicServicePath="Services.asmx"
DynamicControlID="lbdynamiccontent"
I'm guessing the path or method may be incorrect? I've put
services.asmx in the root folder and services.vb was slipped into the
app_code directory.
The other problem would be with the contextkey, but debugging info
within the webservice never gets thrown (it does when I run the
service directly through the browser) so would a funny parameter do
that?
Any help would be greatly appreciated! I also saw error 12030 instead
of 500 crop up, but that seems to have gone (!!!)
cheers,
ChrisOn 5 Jun, 12:53, Not Me <clhumphr...@.gmail.com> wrote:
> Hi there,
> I'm using a hovermenuextender attached to a templatefield of a
> gridview, and everything seemed to work fine.. however I've moved on
> to add dynamic attributes to the hovermenu. Now I get the error "web
> service call failed: 500" in place of the output I want (on the
> hovermenu's panel).
Aha, I realised the helloworld service worked fine.. it was just
anything I created with parameters.. I had my service set up as
Public Function getSearchDetails(ByVal refno As String) As String
so changed this to
Public Function getSearchDetails(ByVal contextKey As String) As String
and all is well!
hope that it useful to any googler's out there.
cheers,
Chris

'web service call failed: 500' using ajax hovermenu and web service

Hi there,

I'm using a hovermenuextender attached to a templatefield of a
gridview, and everything seemed to work fine.. however I've moved on
to add dynamic attributes to the hovermenu. Now I get the error "web
service call failed: 500" in place of the output I want (on the
hovermenu's panel).

When accessing the web service I created (directly through the
browser) everything works fine..

here's my hovermenuextender dynamic attributes

DynamicContextKey='<%=eval("refnumber") %>'
DynamicServiceMethod="GetSearchDetails"
DynamicServicePath="Services.asmx"
DynamicControlID="lbdynamiccontent"

I'm guessing the path or method may be incorrect? I've put
services.asmx in the root folder and services.vb was slipped into the
app_code directory.

The other problem would be with the contextkey, but debugging info
within the webservice never gets thrown (it does when I run the
service directly through the browser) so would a funny parameter do
that?

Any help would be greatly appreciated! I also saw error 12030 instead
of 500 crop up, but that seems to have gone (!!!)

cheers,
ChrisOn 5 Jun, 12:53, Not Me <clhumphr...@.gmail.comwrote:

Quote:

Originally Posted by

Hi there,
>
I'm using a hovermenuextender attached to a templatefield of a
gridview, and everything seemed to work fine.. however I've moved on
to add dynamic attributes to the hovermenu. Now I get the error "web
service call failed: 500" in place of the output I want (on the
hovermenu's panel).


Aha, I realised the helloworld service worked fine.. it was just
anything I created with parameters.. I had my service set up as

Public Function getSearchDetails(ByVal refno As String) As String

so changed this to

Public Function getSearchDetails(ByVal contextKey As String) As String

and all is well!

hope that it useful to any googler's out there.

cheers,
Chris

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

Monday, March 12, 2012

Web Services - Unauthorized

I am attempting to create my first web service. I am now stuck at the following error.

Exception Details:System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

I believe I have included the necessary code for assistance. If anything else is needed please let me know and I will reply ASAP.

Test.asmx<%@dotnet.itags.org. WebService Language="VB" CodeBehind="~/App_Code/Test.vb"Class="Test" %>
/App_Code/Test.vbImports System.WebImports System.Web.ServicesImports System.Web.Services.Protocols<WebService( _Namespace:="http://serverName.dev.intranet/")> _Public Class TestInherits System.Web.Services.WebService <WebMethod()> _Public Function PI()As Double Return System.Math.PIEnd Function <WebMethod()> _Public Function HelloWorld()As String Return"Hello World"End FunctionEnd Class
Client.aspx.vb...Sub btn1_Click( _ByVal senderAs Object, _ByVal eAs EventArgs)Dim srvAs New intranet.dev.serverName.Test srv.Credentials = System.Net.CredentialCache.DefaultCredentials lblTest.Text = srv.PIEnd Sub...
 
web.config...<authentication mode="Windows"/><identity impersonate="false"/>...
 
Thank you for your help.

Update -

When I run this on the development server (http://serverName.dev.intranet) it fails. When I run it on my local machine (http://localhost:port/...) it works. I hope that helps pinpoint the problem.

Thank you again for all of your help.


Usually this error means that the client application is not sending any credentials or the credentials are wrong. But I think you are setting the credentials correctly in your btn1_Click event handler. Most likely the permissions on the folder where the web service is located are not properly setup for IUSR_xxx.

Can you provide a description of your serverName.dev.intranet environment? Is it a shared hosting plan? Do you have full access to a dedicated server? etc.


It is an shared hosting environment on a corporate intranet. I do not have full access to the server settings.

You are probably correct about the folder permissions. Without having access to the server how can I get this to work?


If you know a network username andpassword that is guaranteed to have permissions to that folder you can try using aNetworkCredential.

See if the following article helps:How to: Configure an XML Web Service for Windows Authentication


I have attempted the Network Credential option and it also did not work. I have read/write permissions so I assumed my credentials would work but that was incorrect.

I will try it on another server and see if that works.