Fixing error on page (Invalid attempt to read when no data is present)
- or -
Post a project like this2398
$$
- Posted:
- Proposals: 6
- Remote
- #1709902
- Completed
Full stack Asp.Net MVC, .Net Core, C#, MS SQL, WordPress developer
Ahmedabad
ASP.NET Core| MVC | C# | MongoDB | WebAPI | Jquery | Node.js| reactJs |SQL Server | Stripe
Delhi
Top rated PHP Web Development | WordPress | Magento | Drupal | OpenCart | PrestaShop | Joomla
Leicester
197371624653726048105075411528731597001
Description
Experience Level: Intermediate
Hi Everyone, I have a website up and running and working fine except for three tabs on the menu bar that stopped working and give this error: (Invalid attempt to read when no data is present.) The site is asp based. It is a tri-lingual website dealing with research and human rights issues. Plz let me know how long it will take to get fixed and how much it will cost. I checked online and it seems the prob is to do with the database/sql. Please, only those expert on the subject may reply. Thank you for your help in advance.
Below is a screenshot of the error generated:
Invalid attempt to read when no data is present.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Invalid attempt to read when no data is present.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
or:
2) Add the following section to the configuration file of your application:
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[InvalidOperationException: Invalid attempt to read when no data is present.]
System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) +118
System.Data.SqlClient.SqlDataReader.get_Item(String name) +27
ArticleList.Page_Load(Object sender, EventArgs e) +594
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.8762; ASP.NET Version:2.0.50727.8762
Below is a screenshot of the error generated:
Invalid attempt to read when no data is present.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: Invalid attempt to read when no data is present.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
or:
2) Add the following section to the configuration file of your application:
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[InvalidOperationException: Invalid attempt to read when no data is present.]
System.Data.SqlClient.SqlDataReader.GetValue(Int32 i) +118
System.Data.SqlClient.SqlDataReader.get_Item(String name) +27
ArticleList.Page_Load(Object sender, EventArgs e) +594
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.8762; ASP.NET Version:2.0.50727.8762
Amilio N.
100% (4)Projects Completed
5
Freelancers worked with
5
Projects awarded
50%
Last project
27 Sep 2019
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Amilo
Site URL
500185
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies