views:

471

answers:

2

I've looked around online for this problem and I get a lot of 'delete temporary files' and 'restart IIS' answers. The site works fine when I'm running it locally, but when I publish to a windows server hosted via Godaddy I get this error.

Is there any other way I could debug this?

At the bottom of the error page it says:

Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434

I'm using version 3.5, so I thought the version mismatch was causing the error, but on Godaddy's management page you only get two options:

(1) ASP.Net Runtime Version: 1.1 (2) ASP.Net Runtime Version: 2.0/3.0/3.5

Edit:

This is kind of weird. When I publish the site to the root directory, I get a different error:

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Is there something I have to do to set a folder as a web app?

Any thoughts?

+1  A: 

Looks like it is expecting to load this assembly from the GAC or your local bin folder. Make sure all your assemblies are being deployed properly and that you are referencing them directly rather than trying to load them from the Windows assembly.

Further, the ASP.net runtime for 2.x, 3.x, 3.5x is the same, so that is not an issue.

Chris Ballance
A: 

In my experience, that SQL error occurs when you haven't used the SQL Server Surface Area Configuration tool to enable remote connections via TCP/Named Pipes. I've not seen the connection string you are using so I don't know if it's on the same machine or how you are accessing it, but if the DB is on a different box from the web server then try using the SQL Server Surface Area Configuration tool.

fractos
The DB is on a different box, and I don't manage it, but I'll try to get the guy who does to use this tool.For a reference, this is my connection string:"Server=IP_ADDR; Database=DB_NAME; User ID=USER; Password=PASS; Trusted_Connection=False; NETWORK=DBMSSOCN;"The network= was to force TCP/IP
Steve Willard