x

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

more ▼

asked Oct 29 '09 at 05:42 AM in Default

tngtng gravatar image

tngtng
12 1 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

www.connectionstrings.com/

more ▼

answered Oct 29 '09 at 09:35 AM

Kristen gravatar image

Kristen ♦
2.2k 6 7 10

(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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

SQL Server Central

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

Topics:

x1816
x22

asked: Oct 29 '09 at 05:42 AM

Seen: 1257 times

Last Updated: Oct 29 '09 at 09:37 AM