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!


Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


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)?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DelphiRulezAuthor Commented:
This is the error message reported back from my app:

and here is the info from above:

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

DelphiRulezAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.