Quantcast
Channel: Error con cadena de conexión.
Viewing all articles
Browse latest Browse all 4

Error con cadena de conexión.

$
0
0

Hola gente!! quería ver si me pueden ayudar con el siguiente error.

Tengo un sitio web. Hecho en .Net C# con el framework 4.0, baje por ftp todo el sitio, la base y si dejo la cadena de conexión apuntando hacia producción, funciona bien el sitio.

Ahora el problema está al usar la misma base de datos en otro servidor no me conecta y me arrija un error.

El web config tiene las siguientes cadenas de conexión:

<connectionStrings><add name="conexionSQLServerLocal" connectionString="Data Source=localhost,2433; Initial Catalog=MaderoPoker;User Id=MiUSER;Password=MiPASSWORD;"/><!-- <remove name="LocalSqlServer" />--><add name="UmbracoTestConnectionString" connectionString="MISERVIDOR;database=NOMBREDEBASE;user id=MiUSER;password=MiPASSWORD"
  providerName="System.Data.SqlClient" /><add name="UmbracoSiteConnectionString" connectionString="MISERVIDOR;database=NOMBREDEBASE;user id=MiUSER;password=MiPASSWORD"
   providerName="System.Data.SqlClient" /><add name="UmbracoSiteConnectionString1" connectionString="MISERVIDOR;database=NOMBREDEBASE;user id=MiUSER;password=MiPASSWORD"
   providerName="System.Data.SqlClient" /><add name="NOMBREDEBASEConnectionString" connectionString="Data Source=ar62.toservers.com,2433;Initial Catalog=NOMBREDEBASE;User ID=MiUSER;Password=MiPASSWORD"
            providerName="System.Data.SqlClient" /><add name="umbracositeConnectionString4" connectionString="Data Source=ar62.toservers.com,2433;Initial Catalog=NOMBREDEBASE;User ID=MiUSER;Password=MiPASSWORD"
            providerName="System.Data.SqlClient" /></connectionStrings>

En principio, no comprendo bien por que tiene tantas cadenas de conexión. Pero eso no es el problema, sino que le pongo una cadena de conexión hacia una base de test con una replica exacta de la base de producción y me muestra el siguiente error.

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 
[NullReferenceException: Object reference not set to an instance of an object.]
   DinamicPokerSite.Controls.NewsSlider.LogError(String errorMsg) +172
   DinamicPokerSite.Controls.NewsSlider.GetContentsList(Int32 applicationId) +6932
   DinamicPokerSite.Controls.NewsSlider.Page_Load(Object sender, EventArgs e) +136
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.UI.Control.LoadRecursive() +70
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

Alguien sabe como se puede solucionar este inconveniente?? Desde ya muchas gracias por su ayuda!



Viewing all articles
Browse latest Browse all 4

Latest Images





Latest Images