Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
System.AccessViolationException
Message
De
29/03/2008 00:39:19
 
 
À
27/03/2008 17:04:47
Information générale
Forum:
ASP.NET
Catégorie:
Déploiements
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01306322
Message ID:
01306668
Vues:
6
Hi Greg,

You may have already tried Googling, but try taking a peek at this thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=210432&SiteID=1

It's quite long (3 pages of posts), but maybe one of the suggestions there will help.

~~Bonnie




>I've got an application that I'm trying to deploy internally, but I am getting an error on a users machine. I've run caspol.exe to give the application FullTrust rights.
>
>.Net Framework v2 command:
>caspol -machine -addgroup 1. -strong -file "C:\appname.exe" appname 1.0.0.0 FullTrust -levelfinal ON
>
>
>Installed on this machine is .Net Framework 2.0 SP1
>
>This app runs without flaw on my machine with the SDK installed.
>This has allowed many of the Foxpro tables to load, however I'm still getting this error. Any help would be appreciated.
>
>
>************** Exception Text **************
>System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
> at System.Data.Common.UnsafeNativeMethods.ICommandText.Execute(IntPtr pUnkOuter, Guid& riid, tagDBPARAMS pDBParams, IntPtr& pcRowsAffected, Object& ppRowset)
> at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
> at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
> at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
> at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
> at System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior)
> at System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
> at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
> at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
> at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
> at PromoEditor.PromotionsTableAdapters.promotions_dealersTableAdapter.FillByPromotionID(promotions_dealersDataTable dataTable, Nullable`1 promotion_id)
> at PromoEditor.PromoMain.loadDealers()
> at PromoEditor.PromoMain.setBrowseMode()
> at PromoEditor.PromoMain.PromoMain_Load(Object sender, EventArgs e)
> at System.Windows.Forms.Form.OnLoad(EventArgs e)
> at System.Windows.Forms.Form.OnCreateControl()
> at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
> at System.Windows.Forms.Control.CreateControl()
> at System.Windows.Forms.Control.WmShowWindow(Message& m)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
> at System.Windows.Forms.ContainerControl.WndProc(Message& m)
> at System.Windows.Forms.Form.WmShowWindow(Message& m)
> at System.Windows.Forms.Form.WndProc(Message& m)
> at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
> at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform