473,382 Members | 1,424 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.

Web Service does not display SQL Data

Hi,

I'm looking for some help on an issue that I've been tearing my hair out on
for several days. I have attempted several times to create a web service via
Visual Studio .Net using VB.

The service seems to work fine, displaying the option to 'Invoke' using the
HTTP GET protocol. However once I click 'Invoke' I receive an error HTTP 500
'The page cannot be displayed'.

I am able to run the 'Hello World' example without problem, and the code for
the SQL data query is built and tuns without error...

Can anyone help? Information on setup/environment can be provided in detail.

Nov 23 '05 #1
8 2480
Just as a follow-up: I worte a very similar peice of code but with Web Matrix
as the IDE - same results.

So I'm now thinking that there is something wrong with the configuration of
my IIS 5.0 installation...

"nodavies" wrote:
Hi,

I'm looking for some help on an issue that I've been tearing my hair out on
for several days. I have attempted several times to create a web service via
Visual Studio .Net using VB.

The service seems to work fine, displaying the option to 'Invoke' using the
HTTP GET protocol. However once I click 'Invoke' I receive an error HTTP 500
'The page cannot be displayed'.

I am able to run the 'Hello World' example without problem, and the code for
the SQL data query is built and tuns without error...

Can anyone help? Information on setup/environment can be provided in detail.

Nov 23 '05 #2
Just as a follow-up: I worte a very similar peice of code but with Web Matrix
as the IDE - same results.

So I'm now thinking that there is something wrong with the configuration of
my IIS 5.0 installation...

"nodavies" wrote:
Hi,

I'm looking for some help on an issue that I've been tearing my hair out on
for several days. I have attempted several times to create a web service via
Visual Studio .Net using VB.

The service seems to work fine, displaying the option to 'Invoke' using the
HTTP GET protocol. However once I click 'Invoke' I receive an error HTTP 500
'The page cannot be displayed'.

I am able to run the 'Hello World' example without problem, and the code for
the SQL data query is built and tuns without error...

Can anyone help? Information on setup/environment can be provided in detail.

Nov 23 '05 #3
Ok, I've got a little further. I unchecked 'Show friendly HTTP error
messages' in IE and I received this message...

Login failed for user TEST1\ASPNET

I figure that somehow there is a ASPNET user that I need to add to a group
somewhere to provide access to the SQL database - but I can't find where...

Any help please?

"nodavies" wrote:
Hi,

I'm looking for some help on an issue that I've been tearing my hair out on
for several days. I have attempted several times to create a web service via
Visual Studio .Net using VB.

The service seems to work fine, displaying the option to 'Invoke' using the
HTTP GET protocol. However once I click 'Invoke' I receive an error HTTP 500
'The page cannot be displayed'.

I am able to run the 'Hello World' example without problem, and the code for
the SQL data query is built and tuns without error...

Can anyone help? Information on setup/environment can be provided in detail.

Nov 23 '05 #4
Ok, I've got a little further. I unchecked 'Show friendly HTTP error
messages' in IE and I received this message...

Login failed for user TEST1\ASPNET

I figure that somehow there is a ASPNET user that I need to add to a group
somewhere to provide access to the SQL database - but I can't find where...

Any help please?

"nodavies" wrote:
Hi,

I'm looking for some help on an issue that I've been tearing my hair out on
for several days. I have attempted several times to create a web service via
Visual Studio .Net using VB.

The service seems to work fine, displaying the option to 'Invoke' using the
HTTP GET protocol. However once I click 'Invoke' I receive an error HTTP 500
'The page cannot be displayed'.

I am able to run the 'Hello World' example without problem, and the code for
the SQL data query is built and tuns without error...

Can anyone help? Information on setup/environment can be provided in detail.

Nov 23 '05 #5
"=?Utf-8?B?bm9kYXZpZXM=?=" <no******@discussions.microsoft.com> wrote in
news:FC**********************************@microsof t.com:
Hi,

I'm looking for some help on an issue that I've been tearing my hair
out on for several days. I have attempted several times to create a
web service via Visual Studio .Net using VB.

The service seems to work fine, displaying the option to 'Invoke'
using the HTTP GET protocol. However once I click 'Invoke' I receive
an error HTTP 500 'The page cannot be displayed'.

I am able to run the 'Hello World' example without problem, and the
code for the SQL data query is built and tuns without error...

Can anyone help? Information on setup/environment can be provided in
detail.


Google is your friend:

http://www.google.ca/search?num=100&...d%22+user+aspn
et+asp+webservice+OR+%22web+service%22+OR+webservi ces&meta=

(unwrap URL)

...which led to this posting:

http://www.dotnetsmart.com/forums/8216/ShowPost.aspx

you may have to do something with Impersonation perhaps.
Nov 23 '05 #6
"=?Utf-8?B?bm9kYXZpZXM=?=" <no******@discussions.microsoft.com> wrote in
news:FC**********************************@microsof t.com:
Hi,

I'm looking for some help on an issue that I've been tearing my hair
out on for several days. I have attempted several times to create a
web service via Visual Studio .Net using VB.

The service seems to work fine, displaying the option to 'Invoke'
using the HTTP GET protocol. However once I click 'Invoke' I receive
an error HTTP 500 'The page cannot be displayed'.

I am able to run the 'Hello World' example without problem, and the
code for the SQL data query is built and tuns without error...

Can anyone help? Information on setup/environment can be provided in
detail.


Google is your friend:

http://www.google.ca/search?num=100&...d%22+user+aspn
et+asp+webservice+OR+%22web+service%22+OR+webservi ces&meta=

(unwrap URL)

...which led to this posting:

http://www.dotnetsmart.com/forums/8216/ShowPost.aspx

you may have to do something with Impersonation perhaps.
Nov 23 '05 #7
I finally found a solution - I went into SQL Server and created account
access for the ASPNET account - after that everything was fine!
"hellrazor" wrote:
"=?Utf-8?B?bm9kYXZpZXM=?=" <no******@discussions.microsoft.com> wrote in
news:FC**********************************@microsof t.com:
Hi,

I'm looking for some help on an issue that I've been tearing my hair
out on for several days. I have attempted several times to create a
web service via Visual Studio .Net using VB.

The service seems to work fine, displaying the option to 'Invoke'
using the HTTP GET protocol. However once I click 'Invoke' I receive
an error HTTP 500 'The page cannot be displayed'.

I am able to run the 'Hello World' example without problem, and the
code for the SQL data query is built and tuns without error...

Can anyone help? Information on setup/environment can be provided in
detail.


Google is your friend:

http://www.google.ca/search?num=100&...d%22+user+aspn
et+asp+webservice+OR+%22web+service%22+OR+webservi ces&meta=

(unwrap URL)

...which led to this posting:

http://www.dotnetsmart.com/forums/8216/ShowPost.aspx

you may have to do something with Impersonation perhaps.

Nov 23 '05 #8
I finally found a solution - I went into SQL Server and created account
access for the ASPNET account - after that everything was fine!
"hellrazor" wrote:
"=?Utf-8?B?bm9kYXZpZXM=?=" <no******@discussions.microsoft.com> wrote in
news:FC**********************************@microsof t.com:
Hi,

I'm looking for some help on an issue that I've been tearing my hair
out on for several days. I have attempted several times to create a
web service via Visual Studio .Net using VB.

The service seems to work fine, displaying the option to 'Invoke'
using the HTTP GET protocol. However once I click 'Invoke' I receive
an error HTTP 500 'The page cannot be displayed'.

I am able to run the 'Hello World' example without problem, and the
code for the SQL data query is built and tuns without error...

Can anyone help? Information on setup/environment can be provided in
detail.


Google is your friend:

http://www.google.ca/search?num=100&...d%22+user+aspn
et+asp+webservice+OR+%22web+service%22+OR+webservi ces&meta=

(unwrap URL)

...which led to this posting:

http://www.dotnetsmart.com/forums/8216/ShowPost.aspx

you may have to do something with Impersonation perhaps.

Nov 23 '05 #9

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

Similar topics

2
by: Blaz | last post by:
I have a windows service that does some stuff. It runs a couple of batch files. After the successful execution of a batch file I need to display some sort of notification to the end user that the...
1
by: Mike | last post by:
I have a web service that calls SP's and returning a dataset. At times the data is coming back as 0 and if that is the case i need to display nothing just leaving it blank. With accessing data like...
3
by: Mr Utkal Ranjan Pradhan | last post by:
Hi Friends I want to develop a windows service application, which will open a port on the machine and constantly it will listen from that port. And when any data comes to that port I want to...
1
by: Mr Utkal Ranjan Pradhan | last post by:
Hi Friends I want to develop a windows service application, which will open a port on the machine and constantly it will listen from that port. And when any data comes to that port I want to...
5
by: Peter Lapic | last post by:
I have to create a image web service that when it receives an imageid parameter it will return a gif image from a file that has been stored on the server. The client will be an asp.net web page...
0
by: whizpop | last post by:
Hi, First of all, thanks for a great starter kit, now If I could just get it to work (fully). I am trying to compile and run the solution/services all on a local dev box. I am able to...
1
by: kennedystephen | last post by:
I have a .NET web service which returns a System.XML.XMLDocument. The data returned in the XML is just simple text. Now, I want to display and format the text on a .aspx web page. I know how to...
0
by: JohnP | last post by:
Hi all Does anyone know the best way to get feedback from a Windows Service? I have written a Windows service which uses a class library (a DLL) which has a timer which does some operations...
0
by: koonda | last post by:
Hi all, I have a Project due after one week. It is a web service project. I have a Web Form which communicates to the web service and this web service communicates to the database. I have all my...
2
by: biganthony via AccessMonster.com | last post by:
Hi, I decided to install Office 2003 Service Pack 3 on my home computer to test (in full knowledge that there may be some issues with it). After installation, I have noticed that with a small...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
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?

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.