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=, 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

more ▼

asked Oct 29, 2009 at 05:42 AM in Default

avatar image

12 2 2 2

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

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


more ▼

answered Oct 29, 2009 at 09:35 AM

avatar image

Kristen ♦
2.2k 7 11 14

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Oct 29, 2009 at 05:42 AM

Seen: 1574 times

Last Updated: Oct 29, 2009 at 09:37 AM

Copyright 2018 Redgate Software. Privacy Policy