Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2007, 11:05 PM
Registered User
 
Join Date: Aug 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default runtime error trying to access webservice

I get a runtime error trying to browse to a webservice i uploaded to the server. the webservice runs well on the local test machine. the error message is reproduced below:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".




<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.




<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

I did modify the web.config file as suggested, i.e setting customerrors mode to "off" but the error remains unchanged. What could be causing this and pls help suggest remedy. what does the authentication tag do - presently set to "windows". thank you

ayo

 
Old August 20th, 2007, 02:54 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Auth mode of windows expects the browser to provide windows credentials that are meaningful to the web server. Generally this is completely useless for a web app because the app is for the internet. However, this doesn't sound like it's causing the problem. If it is a security issue you should be prompted for a login (the browser prompt, not something in a page) or you would get a message on the page that access is not permitted.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Deplloy Webservice in IIS getting error sriashish_1978 ASP.NET 2.0 Professional 0 July 7th, 2007 06:04 AM
Webservice oResult Error drdexter33 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 February 16th, 2006 12:25 PM
Access properties & methods from a WebService sloesch VB.NET 8 January 24th, 2006 02:02 PM
Error: directive 'WebService' is unknown mikeyp .NET Web Services 0 October 31st, 2005 02:19 PM
Multiuser access 97 runtime error anonymous1 Access 0 December 24th, 2004 09:48 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.