Creating my first CGI web service

I have created a number of web services (CGI) using Delphi 2010. All my simple demos have worked fine. That tells me that thus far, my IIS 7 web server is working fine.

Now, i am trying to make a DB connection to MS SQL SERVER 2005 DB and i keep getting errors - that it doesn't recognize the Alias.

I can take the same exact code and put it in a NON Web Service application (executable) and run it from the same folder (wwwroot) and everything works fine.  Tat tells me, that there is something about IIS7 or MS SQL server 2005 that isn't configured right to accept from web service?

Anyone have any ideas. On Friday, someone mentioned this:


"To specify that the service uses the Network Service account, click This account, and then type NT AUTHORITY\NetworkService

To do this go Start->Run and then enter "services.msc"

Navigate to the IIS service and right click and select Properties and then go to Log on.

Make sure This Account is checked and it says Network Service"


I cannot seem to find what the name of the service (IIS7) is in the list of services, so i can try this suggestion.

Anyway, if anyone could help, it surely would be appreciated!

Thanx!

Shane
DelphiRulezAsked:
Who is Participating?
 
cyberkiwiCommented:
Hi,

For IIS7, the service is called "World Wide Web Publishing Service"
However, each web site/virtual directory can be put into an application pool, which itself can have an account.

Could you provide more information, e.g. full text of error message (replace sensitive bits)?
0
 
DelphiRulezAuthor Commented:
This is the error message reported back from my app:

http://www.shaneholmes.net/tmp/screenshot.jpg

and here is the info from above:

http://www.shaneholmes.net/tmp/screenshot2.jpg


>>>>However, each web site/virtual directory can be put into an application pool, which itself can have an account.

can you explain how to set this up?

Shane
0
 
DelphiRulezAuthor Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.