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=22.214.171.124, 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
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
answered Oct 29, 2009 at 09:35 AM