question

tngtng avatar image
tngtng asked

Do I need to install SQL Server on the PC which is used as "server" for my website?

I developped a website with asp.net(visual studio 2008), .net framework3.5, sql server express 2008, iis5.1 and the site works well if it's hosted on my PC.

Now my boss wants to host my website on a server PC of the company. Its config is .net framework2.0, sql server 2005, iis5.1, no visual studio. My website doesn't work anymore (error message not clear for me: the line sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" in the web.config is hightlight). I compiled my website again with .net framework2.0 and nothing changes.

Do you have any idea? Thanks in advance

sql-server-2008connection-string
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Kristen avatar image
Kristen answered

You don't need to host SQL Server on the same PC as the one hosting the website, but you do need to "point" the website at the machine hosting SQL server, and check that the permissions are correct.

I expect your original application is just refering to SQL Server as "local" - and if so you'll need to change that. Best bet would be to make it configurable, within your applciation, and then you will be able to move the SQL hosting to a different machine, in the future, if you need to.

I'm not familiar with asp.net, so can;t help with the specifics I'm afraid, but this is a useful site for working out how to "define" the connection string

www.connectionstrings.com/

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.