problem in web application

  • Thread starter Thread starter Jeyalakshmi Balasubramanian
  • Start date Start date
J

Jeyalakshmi Balasubramanian

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
 
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
 
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
 
Back
Top