I took over a dormant ASP.NET Web Forms project. The project uses MS SQL Server as its back end -- Enterprise Edition, v10.50 (I think that's 2008); the development environment is a VM of MS Server 2008 R2 hosting both Visual Studio and MS SQL Server.
The first thing I tried to do was run the project. I get an error page with:
XML Parsing Error: no element found
Location: http://localhost:{port}/{page}.aspx
Line Number 1, Column 1:
And the HTML source is blank.
On a test system, the project has been properly deployed.
I've looked through the similar questions and Google results. The typical problem is an unclosed tag in Web.config
-- I checked for that, and all the tags are properly closed. What else might be causing this problem?
I think the problem is in my SQL Server connection. My connection string is:
<add name="FOO" connectionString="Data Source=.\SQLServer2008R2;Initial Catalog=Foobar;Integrated Security=True" providerName="System.Data.SqlClient" />
Update: I opened Server Explorer and attempted to expand the database. I got an error: "Could not load file or assembly 'Microsoft.SqlServer.Managment.Sdk.Sfc'. This issue is discussed in this question, and I'll try the solution from that.
Update 2: That didn't change anything, even once I cleared the Component Model Cache.
Update 3: The SQL connection string is most definitely not the problem. I put in a plain HTML test file, and got the same problem. Presently the issue appears related to the project targeting the .NET 3.5 platform. So I have updated the question title.