Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8597813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:00:00+00:00 2026-06-12T01:00:00+00:00

I am getting the following error while trying to read from an excel file

  • 0

I am getting the following error while trying to read from an excel file in my server.

“System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”

The code runs smoothly in localhost, but the error comes when i host it online.

I am unable to post the stacktrace as i do not get error everytime, but the executions stops at the line “objConn.open”. The page just says loading… and nothing happens.

Here is my code block :

     fuGroupAttributes.SaveAs(IO.Path.Combine(Server.MapPath("~/Admin/SpecificationExcels"), lblParentId.Text.Trim & IO.Path.GetExtension(fuGroupAttributes.FileName)))
'saving the excel file from the fileUploader

                           Dim path As String = Server.MapPath("~/Admin/SpecificationExcels/" & lblParentId.Text.Trim & IO.Path.GetExtension(fuGroupAttributes.FileName))
'getting the file path from the server


                           Dim connectionString As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & path & ";Extended Properties=Excel 12.0;"
                           Dim objConn As New OleDbConnection(connectionString)
                           **objConn.Open()** 'this is where i am getting the error.
                           Dim strConString As String = "SELECT * FROM [Sheet1$]"

EDIT : The page keeps saying loading … it wont stop loading…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:00:01+00:00Added an answer on June 12, 2026 at 1:00 am

    Most probable reason is, your user account on the machine does not have sufficient access to perform this operation. On localhost, you might be using the Administrator account and it is not so in the live machine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the following error while uploading the file from my local drive.
I'm getting the following error from g++ while trying to add iterator support for
I am getting following error while trying to connect to a sftp server:- ncftpput:
I'm continually getting the following error under Eclipse Galileo while trying to install the
I'm getting the following error when trying to delete objects in my database while
i am getting following error while getting data from dictionary -[__NSCFString objectForKey:]: unrecognized selector
I am getting the following error while trying to add a NOT NULL column
I'm getting the following error message in my httpd error log while trying to
I'm getting the following error message in Chrome and firefox while trying to implement
I am getting the following error while trying to install heroku. arun@laptop:~/apps/pm$ sudo gem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.