Return to gallery

An error occurred.

We are sorry, but Gallery Server Pro encountered an error. It has been logged and, if error reporting is enabled, an email describing the problem has been sent to the administrator.

Error: The type initializer for 'GalleryServerPro.Web.Pages.GalleryPage' threw an exception.

Error Summary

Url

http://www.irnew.ir/default.aspx

Timestamp

5/21/2012 6:46:10 AM

Exception Type

System.TypeInitializationException

Message

The type initializer for 'GalleryServerPro.Web.Pages.GalleryPage' threw an exception.

Source

GalleryServerPro.Web

Target Site

Void .ctor()

Stack Trace

at GalleryServerPro.Web.Pages.GalleryPage..ctor()
at GalleryServerPro.Web.gs.pages.album..ctor()
at ASP.gs_pages_album_ascx..ctor()
at __ASP.FastObjectFactory_app_web_3v7sbz2r.Create_ASP_gs_pages_album_ascx()
at System.Web.Compilation.BuildResultCompiledType.CreateInstance()
at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters)
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
at System.Web.UI.TemplateControl.LoadControl(String virtualPath)
at GalleryServerPro.Web.Gallery.LoadRequestedPage()
at GalleryServerPro.Web.Gallery.Gallery_Init(Object sender, EventArgs e)
at System.Web.UI.Control.OnInit(EventArgs e)
at System.Web.UI.UserControl.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Exception Data

Error Handling Exception: The following error occurred while handling the exception: System.Data.SqlClient.SqlException - A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Stack trace: at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateO bject stateObj)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInf o serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnec tion owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIde ntity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnection Options options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbCo nnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at GalleryServerPro.Data.SqlServer.Util.GetSqlVersion()
at GalleryServerPro.Data.SqlServer.Error.Save(IAppError appError)
at GalleryServerPro.Data.SqlServer.SqlDataProvider.AppError_Save(IAppError appError)
at GalleryServerPro.ErrorHandler.Error.Record(Exception ex)
at GalleryServerPro.Web.Controller.AppErrorController.HandleGalleryExceptio n(Exception ex)

Inner Ex Type

System.Data.SqlClient.SqlException

Inner Ex Message

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Inner Ex Source

.Net SqlClient Data Provider

Inner Ex Target Site

Void OnError(System.Data.SqlClient.SqlException, Boolean)

Inner Ex Stack Trace

at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at GalleryServerPro.Data.SqlServer.Util.GetSqlVersion()
at GalleryServerPro.Data.SqlServer.Error.Save(IAppError appError)
at GalleryServerPro.Data.SqlServer.SqlDataProvider.AppError_Save(IAppError appError)
at GalleryServerPro.ErrorHandler.Error.Record(Exception ex)
at GalleryServerPro.Web.Util.InitializeApplication()
at GalleryServerPro.Web.Pages.GalleryPage..cctor()

App Error ID

-2147483648

Gallery ID

1

HTTP User Agent

CCBot/1.0 (+http://www.commoncrawl.org/bot.html)

Form Variables

<none>

Cookies

ASP.NET_SessionId

xwifvmjuryfjjkyix4f0h345

Session Variables

<none>

Server Variables

ALL_HTTP

HTTP_CACHE_CONTROL:no-cache
HTTP_CONNECTION:close
HTTP_PRAGMA:no-cache
HTTP_ACCEPT:text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q= 0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING:gzip
HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5
HTTP_HOST:www.irnew.ir
HTTP_USER_AGENT:CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP_X_CC_ID:ccc01-02

ALL_RAW

Cache-Control: no-cache
Connection: close
Pragma: no-cache
Accept: text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/pn g,*/*;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip
Accept-Language: en-us,en;q=0.5
Host: www.irnew.ir
User-Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
x-cc-id: ccc01-02

APPL_MD_PATH

/LM/W3SVC/1146941656/Root

APPL_PHYSICAL_PATH

C:\Inetpub\wwwroot\Irnew\

AUTH_TYPE

AUTH_USER

AUTH_PASSWORD

LOGON_USER

REMOTE_USER

CERT_COOKIE

CERT_FLAGS

CERT_ISSUER

CERT_KEYSIZE

CERT_SECRETKEYSIZE

CERT_SERIALNUMBER

CERT_SERVER_ISSUER

CERT_SERVER_SUBJECT

CERT_SUBJECT

CONTENT_LENGTH

0

CONTENT_TYPE

GATEWAY_INTERFACE

CGI/1.1

HTTPS

off

HTTPS_KEYSIZE

HTTPS_SECRETKEYSIZE

HTTPS_SERVER_ISSUER

HTTPS_SERVER_SUBJECT

INSTANCE_ID

1146941656

INSTANCE_META_PATH

/LM/W3SVC/1146941656

LOCAL_ADDR

192.168.1.2

PATH_INFO

/default.aspx

PATH_TRANSLATED

C:\Inetpub\wwwroot\Irnew\default.aspx

QUERY_STRING

REMOTE_ADDR

38.107.179.212

REMOTE_HOST

38.107.179.212

REMOTE_PORT

38360

REQUEST_METHOD

GET

SCRIPT_NAME

/default.aspx

SERVER_NAME

www.irnew.ir

SERVER_PORT

80

SERVER_PORT_SECURE

0

SERVER_PROTOCOL

HTTP/1.1

SERVER_SOFTWARE

Microsoft-IIS/6.0

URL

/default.aspx

HTTP_CACHE_CONTROL

no-cache

HTTP_CONNECTION

close

HTTP_PRAGMA

no-cache

HTTP_ACCEPT

text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/pn g,*/*;q=0.5

HTTP_ACCEPT_CHARSET

ISO-8859-1,utf-8;q=0.7,*;q=0.7

HTTP_ACCEPT_ENCODING

gzip

HTTP_ACCEPT_LANGUAGE

en-us,en;q=0.5

HTTP_HOST

www.irnew.ir

HTTP_USER_AGENT

CCBot/1.0 (+http://www.commoncrawl.org/bot.html)

HTTP_X_CC_ID

ccc01-02