Click to See Complete Forum and Search --> : Deploying a Web service


venrag
December 19th, 2006, 11:55 PM
Hi,

I have created a Web service in my system and it is working fine. I need to install or deploy or run it in my Server or some other machines IIS. I tried to copy the Web service folder in my server Inetpub/wwwroot and it shows error in web.config file. The error message is as follows:

==========Error message starts================
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".
===========Error message ends=================

Please guide me what to be added in web.config file to make the web service run properly.

Thanks in advance.
Regards
Venkat

jasonli
December 20th, 2006, 08:31 AM
At first open web.config, and insert "<customErrors mode="Off"></customErrors>" in <system.web>. You will see the detail of error.

As I did, create new folder for web service on machine where IIS is, and then create virtual directory for it. Remember to check version of Asp.Net.

Publish your web service to somewhere, and then copy published web service files to the new folder.

venrag
December 22nd, 2006, 11:09 PM
Hi Jasonli,

Thanks for the reply. The custom error tag is in Off mode only in my web.config file. It is seen like this: <customErrors mode="Off" />. But still Iam not able to view the error message. The message i get in browser is as follows:

=======================================================

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".


<!-- Web.Config Configuration File -->

<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.


<!-- Web.Config Configuration File -->

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


=====================================================

Please help me. Thanks in advance.

Venkat