•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 426,028 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,729 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 2084 | Replies: 0
![]() |
•
•
Join Date: Feb 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I am facing a strange problem. I have an application developed using C# and ASP.NET. The application is working on some machines but it is not working on others. The problem occurs while saving the data. On some machines the data is getting saved but on others it is not. It throws NullReference Exception. If we change the Privacy settings in Internet explorer from 'Medium' to 'Accept all cookies', it is working fine. But on some machines it is saving the details even if the Privacy settings are 'Medium'.
I am using three datagrids in the page which is throwing error. The exception occurs when we take the first grid's datasource and put it in a DataTable. The error occurs irrespective of whether we have data in the grid or not. The error occurs in the code which reads as follows:
DataView dView;
DataTable dTable;
dView = (DataView)(grid.DataSource);
dTable = dView.Table; // It throws exception in this line.
Is it a problem with user's machines or my code? I have checked the internet explorer settings of the machines which are having problems and changed them to match the settings of machines which do not have any problems in running the application. The one way I have found out is to change Privacy settings from 'Medium' to 'Accept all cookies' on the machines which are throwing the exception. But due to security issues users do not want it.
I need help urgently!
Pranav Soral
I am facing a strange problem. I have an application developed using C# and ASP.NET. The application is working on some machines but it is not working on others. The problem occurs while saving the data. On some machines the data is getting saved but on others it is not. It throws NullReference Exception. If we change the Privacy settings in Internet explorer from 'Medium' to 'Accept all cookies', it is working fine. But on some machines it is saving the details even if the Privacy settings are 'Medium'.
I am using three datagrids in the page which is throwing error. The exception occurs when we take the first grid's datasource and put it in a DataTable. The error occurs irrespective of whether we have data in the grid or not. The error occurs in the code which reads as follows:
DataView dView;
DataTable dTable;
dView = (DataView)(grid.DataSource);
dTable = dView.Table; // It throws exception in this line.
Is it a problem with user's machines or my code? I have checked the internet explorer settings of the machines which are having problems and changed them to match the settings of machines which do not have any problems in running the application. The one way I have found out is to change Privacy settings from 'Medium' to 'Accept all cookies' on the machines which are throwing the exception. But due to security issues users do not want it.
I need help urgently!
Pranav Soral
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
.net .net framework 3.0 access age ajax application application acceleration asp australia business code combo custom data developer development dom dropdownlist environment feed ibm. news immigration it microsoft microsoft sharepoint module msdn net news office reader remote working reuse services skin software sql theme trends us army visa vista weather web windows workflow working xml xoap
- Deployement of web application Issue (ASP.NET)
- Javascript/VBScript within VB6 application (Visual Basic 4 / 5 / 6)
- Elapse Time Since Program Start Working (C++)
- Tell us about yourself! (Community Introductions)
- BlackICE (Windows Software)
- sample commapi applications on sun solaris. (Community Introductions)
- Create View syntax problem (Oracle)
- Security(sharing) not working for domain users, names are not resolving..... (Windows NT / 2000 / XP / 2003)
- Detect all computer names on netword - domain (Visual Basic 4 / 5 / 6)
Other Threads in the ASP.NET Forum
- Previous Thread: .NET and external IP problems?
- Next Thread: suitability of .net for tcp/ip server


Linear Mode