Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

AccessViolation Exception

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 09 Jan 2006 18:00 GMT
Since migrating to .net 2.0 , I repeatedly get Access Violation errors in the
log when tryimg to access vb.net code in a server control from the vb code in
an aspx page.

I have the statement : Imports MyApp.MycontrolName at the top of the vb.net
code

Calls to the server control code work most of the time but occasionally post
the AccessViolation in the log.

Any help would be greatly appreciated.
Signature

Mike Hollibaugh

Alvin Bruney - ASP.NET MVP - 09 Jan 2006 18:36 GMT
You shouldn't piggy back on another thread btw.

Have a look at your event log? any error messages that seem strange? Are you
doing anything funky in your code that you are not telling us about?

Signature

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

> Since migrating to .net 2.0 , I repeatedly get Access Violation errors in the
> log when tryimg to access vb.net code in a server control from the vb code in
[quoted text clipped - 7 lines]
>
> Any help would be greatly appreciated.
Mike - 09 Jan 2006 18:57 GMT
Here is what is in the log:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/8/2006 12:12:07 PM
Event time (UTC): 1/8/2006 8:12:07 PM
Event ID: b8b9666a2afc499e98c6835528ab945a
Event sequence: 294
Event occurrence: 3
Event detail code: 0

Application information:
   Application domain:
/LM/W3SVC/317529278/Root/NarrowCast2005-1-127811691606502107
   Trust level: Full
   Application Virtual Path: /NarrowCast2005
   Application Path: C:\Inetpub\BFI_info\NarrowCast2005\
   Machine name: CARL

Process information:
   Process ID: 540
   Process name: w3wp.exe
   Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
   Exception type: AccessViolationException
   Exception message: Attempted to read or write protected memory. This is
often an indication that other memory is corrupt.

Request information:
   Request URL:
http://www.navistechnologies.info/Narrowcast2005/NCInboundCalls.aspx
   Request path: /Narrowcast2005/NCInboundCalls.aspx
   User host address: 216.103.190.100
   User:  
   Is authenticated: False
   Authentication Type:  
   Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
   Thread ID: 1
   Thread account name: NT AUTHORITY\NETWORK SERVICE
   Is impersonating: False
   Stack trace:    at ADODB.ConnectionClass.Open(String ConnectionString,
String UserID, String Password, Int32 Options)
  at NarrowcastChart.MyIncludes.OpenSQL() in
C:\Inetpub\BFI_info\narrowcast2005\MyIncludes.ascx.vb:line 192
  at NarrowcastChart.MyIncludes.GetNCMenu(String MenuName, Boolean
DashBoard, Boolean CustomRecordings, String Userlevel, Boolean AllowMarkets,
Boolean RezForce) in
C:\Inetpub\BFI_info\narrowcast2005\MyIncludes.ascx.vb:line 265
  at NarrowcastChart.NCInboundCalls.Page_Load(Object sender, EventArgs e)
in C:\Inetpub\BFI_info\narrowcast2005\NCInboundCalls.aspx.vb:line 54
  at System.Web.UI.Control.OnLoad(EventArgs e)
  at System.Web.UI.Control.LoadRecursive()
  at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details:

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Signature

Mike Hollibaugh

> You shouldn't piggy back on another thread btw.
>
[quoted text clipped - 16 lines]
> >
> > Any help would be greatly appreciated.
Mike - 09 Jan 2006 19:23 GMT
Sorry, didn't realize I was piggy backing.  There are messages in the log
showing where in the code the errors are occurring but the code works most of
the time.  It really just simple stuff like opening an ADODB Connection
object and using a class to post to an SQL table.
Signature

Mike Hollibaugh

> You shouldn't piggy back on another thread btw.
>
[quoted text clipped - 16 lines]
> >
> > Any help would be greatly appreciated.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.