473,382 Members | 1,225 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Problem referencing web service

Hi

I am trying to get web reference to my first (!) web service which is on a
remote host. I am getting the following error;

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.

How can I tackle this problem? I have the below web.config file.

Thanks

Regards
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="Off" />
<authentication mode="None" />
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
<trace enabled="true" requestLimit="10" pageOutput="true"
traceMode="SortByTime" localOnly="true" />
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
</configuration>

Nov 18 '05 #1
5 1549
On 7/20/2004 1:41 PM, John wrote:
Hi

I am trying to get web reference to my first (!) web service which is on a
remote host. I am getting the following error;

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.

How can I tackle this problem? I have the below web.config file.

Thanks

Regards
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="Off" />
<authentication mode="None" />
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
<trace enabled="true" requestLimit="10" pageOutput="true"
traceMode="SortByTime" localOnly="true" />
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
</configuration>


Are you sure it's not the web service on the other end w/ problems?
Sounds like they're throwing an exception on their end; are they a .NET
webservice? Cuz this error message could not be from your web.config
(you have custom errors off). If it's a .NET webservice, and you can
browse to the .asmx URL in your web browser, try that and see if it
comes up w/ the documentation page. You may not be able to do this as
they could disable that functionality.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2
Hi

The same problem comes in a web browser. How can I check remotely, where the
error in web service is? It worked fine on my local server.

Thanks

Regards
"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
On 7/20/2004 1:41 PM, John wrote:
Hi

I am trying to get web reference to my first (!) web service which is on a remote host. I am getting the following error;

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.

How can I tackle this problem? I have the below web.config file.

Thanks

Regards
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="Off" />
<authentication mode="None" />
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
<trace enabled="true" requestLimit="10" pageOutput="true"
traceMode="SortByTime" localOnly="true" />
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
</configuration>


Are you sure it's not the web service on the other end w/ problems?
Sounds like they're throwing an exception on their end; are they a .NET
webservice? Cuz this error message could not be from your web.config
(you have custom errors off). If it's a .NET webservice, and you can
browse to the .asmx URL in your web browser, try that and see if it
comes up w/ the documentation page. You may not be able to do this as
they could disable that functionality.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 18 '05 #3
On 7/20/2004 3:16 PM, John wrote:
Hi

The same problem comes in a web browser. How can I check remotely, where the
error in web service is? It worked fine on my local server.

Thanks

Regards
"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
On 7/20/2004 1:41 PM, John wrote:
Hi

I am trying to get web reference to my first (!) web service which is on
a
remote host. I am getting the following error;

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.

How can I tackle this problem? I have the below web.config file.

Thanks

Regards
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="Off" />
<authentication mode="None" />
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
<trace enabled="true" requestLimit="10" pageOutput="true"
traceMode="SortByTime" localOnly="true" />
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
</configuration>

Are you sure it's not the web service on the other end w/ problems?
Sounds like they're throwing an exception on their end; are they a .NET
webservice? Cuz this error message could not be from your web.config
(you have custom errors off). If it's a .NET webservice, and you can
browse to the .asmx URL in your web browser, try that and see if it
comes up w/ the documentation page. You may not be able to do this as
they could disable that functionality.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


Well, you can't, as I assume this is someone else's webservice? The
reason is they have customErrors set to RemoteOnly in the service's
web.config, so you can't see the actual error unless you browse to it on
the server's browser itself. I would contact whoever owns it and say
you're getting an error. More than likely, something is erroring on
their side, causing you to not be able to use it.

Otherwise, if it's your webservice on another box you control, goto that
box and browse the same way, or change customErrors to Off in the
webservice's web.config.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #4
It is my web service and it works fine on my local server. Just doesn't work
when uploaded to the remote server. I have now tried a very simple project
(posted under separate thread) which also does not work at the remote server
but I can not see any error message to figure out what to do.

Thanks

Regards
"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
On 7/20/2004 3:16 PM, John wrote:
Hi

The same problem comes in a web browser. How can I check remotely, where the error in web service is? It worked fine on my local server.

Thanks

Regards
"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
On 7/20/2004 1:41 PM, John wrote:

Hi

I am trying to get web reference to my first (!) web service which is
on
a
remote host. I am getting the following error;

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.

How can I tackle this problem? I have the below web.config file.

Thanks

Regards
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="Off" />
<authentication mode="None" />
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
<trace enabled="true" requestLimit="10" pageOutput="true"
traceMode="SortByTime" localOnly="true" />
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
</configuration>

Are you sure it's not the web service on the other end w/ problems?
Sounds like they're throwing an exception on their end; are they a .NET
webservice? Cuz this error message could not be from your web.config
(you have custom errors off). If it's a .NET webservice, and you can
browse to the .asmx URL in your web browser, try that and see if it
comes up w/ the documentation page. You may not be able to do this as
they could disable that functionality.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


Well, you can't, as I assume this is someone else's webservice? The
reason is they have customErrors set to RemoteOnly in the service's
web.config, so you can't see the actual error unless you browse to it on
the server's browser itself. I would contact whoever owns it and say
you're getting an error. More than likely, something is erroring on
their side, causing you to not be able to use it.

Otherwise, if it's your webservice on another box you control, goto that
box and browse the same way, or change customErrors to Off in the
webservice's web.config.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 18 '05 #5
"John" <jo**@nospam.infovis.co.uk> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
It is my web service and it works fine on my local server. Just doesn't work when uploaded to the remote server. I have now tried a very simple project
(posted under separate thread) which also does not work at the remote server but I can not see any error message to figure out what to do.
You should be trapping your errors in one way or another. Do you have a
handler for the Error event in global.asax? It could trap the error and then
write it out somewhere.

Given that this is a web service, you'd probably want to write the error to
the system event log. You'll want to create a
System.Diagnostics.EventLogTraceListener in Application_Start, and add it to
the System.Diagnostics.Trace.Listeners collection. Then, in the Error
handler, you can use
"System.Diagnostics.Trace.WriteLine(Server.GetLast Error().ToString())".

The only complication is that the event source must already exist, as the
ASPNET account by default has enough privileges to write an event, but not
enough to create a new event source. You would want to create an event log
installer first. Here's what you do:

1. Open global.asax _in the designer_
2. From the toolbox, drag an EventLog component (from the Components tab)
onto the design surface.
3. With the new event log selected, use the Property browser to set the Log
and Source properties. You should set the Log to "Application" and the
Source to one of your choice, perhaps the name of the Web Service.
4. If you right-click the event log component, you'll see a menu choice for
"Add Installer". Select this. This will add an appropriately-configured
event log installer to your project.
5. Build your web service

Now, after deploying the new web service assembly to your remote server,
you'll have to run the installutil utility against the new assembly, on the
remote server. For instance, use Terminal Services to connect to the remote
server, then use a command prompt to connect to the bin directory of your
web service and enter the command:

installutil -i <webServiceAssembly>.dll

That will run the event log installer to install the event source, and your
web service should be able to write to it. Note that you will only need to
run installutil if the event log installer properties change, or if you want
to remove the event log source.

I hope that helps.
--
John Saunders
johnwsaundersiii at hotmail

"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:eu**************@tk2msftngp13.phx.gbl...
On 7/20/2004 3:16 PM, John wrote:
Hi

The same problem comes in a web browser. How can I check remotely, where
the
error in web service is? It worked fine on my local server.

Thanks

Regards
"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...

>On 7/20/2004 1:41 PM, John wrote:
>
>>Hi
>>
>>I am trying to get web reference to my first (!) web service which is on
a

>>remote host. I am getting the following error;
>>
>>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.
>>
>>How can I tackle this problem? I have the below web.config file.
>>
>>Thanks
>>
>>Regards
>>
>>
>><?xml version="1.0" encoding="utf-8" ?>
>><configuration>
>> <system.web>
>> <compilation defaultLanguage="vb" debug="true" />
>> <customErrors mode="Off" />
>> <authentication mode="None" />
>> <authorization>
>> <allow users="*" /> <!-- Allow all users -->
>> </authorization>
>> <trace enabled="true" requestLimit="10" pageOutput="true"
>>traceMode="SortByTime" localOnly="true" />
>> <sessionState
>> mode="InProc"
>> stateConnectionString="tcpip=127.0.0.1:42424"
>> sqlConnectionString="data

source=127.0.0.1;Trusted_Connection=yes">> cookieless="false"
>> timeout="20"
>> />
>> <globalization requestEncoding="utf-8" responseEncoding="utf-8" />>> </system.web>
>></configuration>
>>
>>
>>
>Are you sure it's not the web service on the other end w/ problems?
>Sounds like they're throwing an exception on their end; are they a ..NET>webservice? Cuz this error message could not be from your web.config
>(you have custom errors off). If it's a .NET webservice, and you can
>browse to the .asmx URL in your web browser, try that and see if it
>comes up w/ the documentation page. You may not be able to do this as
>they could disable that functionality.
>
>--
>Craig Deelsnyder
>Microsoft MVP - ASP/ASP.NET

Well, you can't, as I assume this is someone else's webservice? The
reason is they have customErrors set to RemoteOnly in the service's
web.config, so you can't see the actual error unless you browse to it on
the server's browser itself. I would contact whoever owns it and say
you're getting an error. More than likely, something is erroring on
their side, causing you to not be able to use it.

Otherwise, if it's your webservice on another box you control, goto that
box and browse the same way, or change customErrors to Off in the
webservice's web.config.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sampat Dixit | last post by:
Hi I am building a .NET Windows application using C#. In my application I am referring to shared library which updates very often(only revision change). Now I want my executable to load latest...
13
by: Daniel Billingsley | last post by:
I have a solution consisting of 9 projects with various references to each other (clean though, no loops, etc.). Visual Studio sometimes gives me weird errors that it can't find one of the...
0
by: John | last post by:
Hi I am trying to get web reference to my first (!) web service which is on a remote host. I am getting the following error; Server Error in '/' Application. Runtime Error Description: An...
0
by: Bob Davies | last post by:
Hi I have a webservice that retrieves data from a database, this is then returned to the calling client application built in windows forms within a dataset, however upon attempting to create...
9
by: Ed Gonen | last post by:
Hi, I have the following problem. I've created 2 WebServices (A and B) that reference to the same assembly - Credentials. Each WebService (A and B) expose method GetCredentials that returns the...
8
by: andyjgw | last post by:
Hi all, hope someone can help here, I'm really stuck. Reading and googling like mad, to no avail so far... Basically, my problem *seems* to boil down to type conversion: Here's a sample web...
1
by: francisco.lopez | last post by:
Hi, I have C# solution that requires a call to a web service in our network. At this time the service is being tested on my local machine (aka: localhost). I am able to Add Web Reference... into...
1
by: jokuvaa1 | last post by:
Hi, I'm using .NET Visual Studio 2005 and the language is C#. The web-service that I'm referencing to uses PHP. So, I'm trying to get information from the interface of the current...
3
by: =?Utf-8?B?a3lvbmc=?= | last post by:
Quick question. Say I have a project against the 2.0framework. I also have a dll compiled against 3.5. If I reference the 3.5 dll in the 2.0 project, how would that work? So I'm thinking that...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.