User Name Password Register
DaniWeb IT Discussion Community
All
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 401,978 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 2,647 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: 2021 | Replies: 0
Reply
Join Date: Feb 2005
Posts: 1
Reputation: PranavSoral is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
PranavSoral PranavSoral is offline Offline
Newbie Poster

Help Same application not working on all machines

  #1  
Feb 11th, 2005
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
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 7:20 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC