Hello all,
I have been trying to link the ASP web applications. I successfully changed the web configuration file, but after this, an error was seen on my screen. The screenshot of the error is as follows:
Â
As you all can see that line # 12 has been highlighted. So, I removed this line and again tried to configure this file,
but it ended up in another error which is attached below:
Â
Now this is highlighting another line. What should I do? I suppose, this is an ongoing activity.
What do you all suggest?
Waiting for your helpful suggestions.
Regards.
Error after changing the web configuration file of ASP web applications
Â
Hello,
The first error occur most of the time when trying to change the .NETFramework version from 3.5 to 4.0.
In order to do that you need to do all necessary changes in your ASP.Net code to be valid for the new version, as a solution you can try the following:
write back the line 12 that you have deleted as this "<compilation debug="true" targetFramework="4.0"/>", then when you try to test your website use "View in browser" not "Run" in order to check you ASP tags are correct of wrong.
as for the second error that appeared, when you've deleted the line 12 the closing tag did not match the starting tag, then the line 14 was not valid in order to be read by the compiler, so it did give you an error that "System.Data.Linq" is missing, which 14 was a declaration for it.
Regards..
Error after changing the web configuration file of ASP web applications
Hello Dominique,
You might be getting that error most probably because you are missing a connection string that must be included in web.config file. For instance, the following is of a web.config file with a connection string for a SQL Server 2008:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <connectionStrings>
    <add connectionString="Server=myServerAddress;
Database=myDataBase;ID=myUsername;Password=myPassword;
Trusted_Connection=False" name="connectionName" providerName="System.Data.SqlClient" />
  </connectionStrings>
</configuration>
You will need to provide the following:
-
the server address that is provided by hostgator (myServerAddress);
-
the database name (myDataBase);
-
the username for the SQL Server (myUsername);
-
the related password (myPassword);
-
and the name for the connection used by your web site (connectionName).
Hope that helps.
Regards,
Carl