473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

problem in web application



Hai Everybody,
I faced the following error when i browse my web
application in hosted in windows xp OS.

i face the problem when i request a page that has asp .net datagrid
control binded to it. Other pages are served without problem. i haven't
used any other special code in the pages.

Parser Error Message: The type initializer
for "System.Drawing.SafeNativeMethods" threw an exception.

Source Error:

Line 140:
<asp:datagrid id="DGCompanyList" tabIndex="1"
Width="95%" Runat="server" DataKeyField="ClientID"
BackColor="White" BorderColor="#F7FBFB" BorderWidth="1px"
AllowPaging="True" HorizontalAlign="Center"
AutoGenerateColumns="False" pagesize="5">
Line 141:
<SelectedItemStyle
cssclass="dgridselecteditemstyle"></selecteditemstyle>
Line 142:
<AlternatingItemStyle
cssclass="dgridalternateitemstyle"></alternatingitemstyle>
Source File:
C:\\MobileScanSystem\Admin\CompanyAdmin.aspx Line: 140

with thanks,
Jeya

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
2 878
Hi,

I think you may be running into permission issue,
when you are using ASP.NET, you may be running in a less
previleged account like ASPNET or IUser_<machine>.

Regards
Mahesh ChandraMouli
Microsoft .NET MVP|MCAD
-----Original Message-----
Hai Everybody,
I faced the following error when i browse my web
application in hosted in windows xp OS.

i face the problem when i request a page that has asp .net datagridcontrol binded to it. Other pages are served without problem. i haven'tused any other special code in the pages.

Parser Error Message: The type initializer
for "System.Drawing.SafeNativeMethods" threw an exception.
Source Error:

Line 140:
<asp:datagrid id="DGCompanyList" tabIndex="1"
Width="95%" Runat="server" DataKeyField="ClientID"
BackColor="White" BorderColor="#F7FBFB" BorderWidth="1px"AllowPaging="True" HorizontalAlign="Center"
AutoGenerateColumns="False" pagesize="5">
Line 141:
<SelectedItemStyle
cssclass="dgridselecteditemstyle"></selecteditemstyle>
Line 142:
<AlternatingItemStyle
cssclass="dgridalternateitemstyle"></alternatingitemstyle

Source File:
C:\\MobileScanSystem\Admin\CompanyAdmin.aspx Line: 140
with thanks,
Jeya

*** Sent via Developersdex http://www.developersdex.com ***Don't just participate in USENET...get rewarded for it!
.

Nov 18 '05 #2
Hai ,

Thanks for ur response.

You mean the iusr_machinename account should be granted full access to
the physical directory of the web application?

please notify what security privilege must be set and where if u can in
detail.

with Thanks
Jeya

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
6
by: Tony Johansson | last post by:
Hello! We have a C#.ASP.NET application that runs on a IIS 6. The application contains actually several asp pages but there is no GUI. The application receive an xml file that is processed....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.