Link to home
Start Free TrialLog in
Avatar of DelphiRulez
DelphiRulez

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of cyberkiwi
cyberkiwi
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DelphiRulez
DelphiRulez

ASKER

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