Click here to Skip to main content
15,895,084 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRefresh the same partial view when clicking on a button Pin
jith - iii11-Apr-13 14:59
jith - iii11-Apr-13 14:59 
AnswerRe: Refresh the same partial view when clicking on a button Pin
Martin-OHV14-Apr-13 23:28
Martin-OHV14-Apr-13 23:28 
QuestionAJAX Timer causes javascript error on page Pin
Steve Holdorf11-Apr-13 8:29
Steve Holdorf11-Apr-13 8:29 
AnswerRe: AJAX Timer causes javascript error on page Pin
dusty_dex11-Apr-13 11:30
dusty_dex11-Apr-13 11:30 
GeneralRe: AJAX Timer causes javascript error on page Pin
Steve Holdorf11-Apr-13 14:01
Steve Holdorf11-Apr-13 14:01 
GeneralRe: AJAX Timer causes javascript error on page Pin
dusty_dex11-Apr-13 22:35
dusty_dex11-Apr-13 22:35 
GeneralRe: AJAX Timer causes javascript error on page Pin
Steve Holdorf12-Apr-13 0:25
Steve Holdorf12-Apr-13 0:25 
QuestionAttempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
beker_usa11-Apr-13 8:02
beker_usa11-Apr-13 8:02 
I am posting this after 100 hours research and no solution.

I have this application written in vb.net / asp.net / Ext.net / ms sql 2008

It was working fine so far, recently i have decided to upgrade my VS to to VS 2012 ( What a mistake...) I installed it and run my application i have started to getting below error message

"
Attempted to read or write protected memory. This is often an indication that other memory is corrupt. "

I have uninstalled everything that comes with VS2012 but still no luck same error....
When i chase this error i saw that i am getting the exception at where i open my connection to my ms sql 2008 database. Here is my connection class
"

_____________________
Public Shared Sub Connect()


Try
Dim Con As New SqlConnection
Con.ConnectionString = "Data Source=xx.xx.xxxx,1533;Initial Catalog=XXXX;User Id=ezman;Password=XXXXXX; Connection Timeout=45;"


If Con.State <> ConnectionState.Open Then
Con.Close()


Con.Open()

End If
Catch ex As Exception
Con.Close()

End Try
End Sub
_______________________________________________________________________


debugger goes till con.open() line and then throws the exception.

I have removed and added back all system.data dlls already.








Here is a stack trace for more details



at SNIAddProvider(SNI_Conn* , ProviderNum , Void* )
at SNINativeMethodWrapper.SNIAddProvider(SafeHandle pConn, ProviderEnum providerEnum, UInt32& info)
at System.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean& marsCapable)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at ezmanHelper.Connect.DBConn() in C:\Users\erkan\Documents\Visual Studio 2010\Projects\ezman1\ezmanHelper\Connect.vb:line 20
at ezmanHelper.AppMenu.GetMenuHeaders(String UserId) in C:\Users\erkan\Documents\Visual Studio 2010\Projects\ezman1\ezmanHelper\AppMenu.vb:line 6
at ezman1.Main.Page_Load(Object sender, EventArgs e) in C:\Users\erkan\Documents\Visual Studio 2010\Projects\ezman1\ezman1\Tabs\Main.aspx.vb:line 8
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.tabs_main_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
at System.Web.HttpRuntime.ProcessRequest(HttpWorkerRequest wr)
at Microsoft.VisualStudio.WebHost.Request.Process()
at Microsoft.VisualStudio.WebHost.Host.ProcessRequest(Connection conn)
at Microsoft.VisualStudio.WebHost.Host.ProcessRequest(Connection conn)
at Microsoft.VisualStudio.WebHost.Server.OnSocketAccept(Object acceptedSocket)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
AnswerRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
dusty_dex11-Apr-13 11:20
dusty_dex11-Apr-13 11:20 
QuestionRe: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Pin
Richard MacCutchan11-Apr-13 21:56
mveRichard MacCutchan11-Apr-13 21:56 
Questioncan you recommend SMS Gateway? Pin
Jassim Rahma11-Apr-13 3:30
Jassim Rahma11-Apr-13 3:30 
AnswerRe: can you recommend SMS Gateway? Pin
CadiouSylvain12-Apr-13 0:29
CadiouSylvain12-Apr-13 0:29 
QuestionWindows Process Activation Service stops responding automatically. Pin
Sunil G 311-Apr-13 1:15
Sunil G 311-Apr-13 1:15 
QuestionFREE Password Hash Library Pin
Jassim Rahma10-Apr-13 23:58
Jassim Rahma10-Apr-13 23:58 
AnswerRe: FREE Password Hash Library Pin
Richard MacCutchan11-Apr-13 0:51
mveRichard MacCutchan11-Apr-13 0:51 
GeneralRe: FREE Password Hash Library Pin
AmitGajjar15-Apr-13 2:39
professionalAmitGajjar15-Apr-13 2:39 
Questionembed logo image in email Pin
Jassim Rahma10-Apr-13 23:30
Jassim Rahma10-Apr-13 23:30 
AnswerRe: embed logo image in email Pin
Richard MacCutchan11-Apr-13 0:50
mveRichard MacCutchan11-Apr-13 0:50 
AnswerRe: embed logo image in email Pin
Blikkies11-Apr-13 0:56
professionalBlikkies11-Apr-13 0:56 
Questionresponse.redirect ()doesnt work Pin
sara-setare10-Apr-13 4:33
sara-setare10-Apr-13 4:33 
AnswerRe: response.redirect ()doesnt work Pin
dusty_dex10-Apr-13 4:49
dusty_dex10-Apr-13 4:49 
GeneralRe: response.redirect ()doesnt work Pin
sara-setare10-Apr-13 6:03
sara-setare10-Apr-13 6:03 
GeneralRe: response.redirect ()doesnt work Pin
dusty_dex10-Apr-13 6:26
dusty_dex10-Apr-13 6:26 
Questionchange notification in asp mvc Pin
alireza173510-Apr-13 0:39
alireza173510-Apr-13 0:39 
QuestionSMTP Email not delivert to receipient, back to sender Pin
AbidHussain1289-Apr-13 23:35
AbidHussain1289-Apr-13 23:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.