Hello,
I have an asp.net script that references system.drawing and I am receiving
the following the error when using system.drawing. bitmap:
Exception Details: System.DllNotFo undException: Unable to load DLL
(gdiplus.dll).
[DllNotFoundExce ption: Unable to load DLL (gdiplus.dll).]
System.Drawing. SafeNativeMetho ds.GdiplusStart up(IntPtr& token,
StartupInput& input, StartupOutput& output) +0
System.Drawing. SafeNativeMetho ds.Initialize() +117
System.Drawing. SafeNativeMetho ds..cctor() +155
[TypeInitializat ionException: The type initializer for
"System.Drawing .SafeNativeMeth ods" threw an exception.]
System.Drawing. SafeNativeMetho ds.GdipCreateBi tmapFromScan0(I nt32 width,
Int32 height, Int32 stride, Int32 format, HandleRef scan0, IntPtr& bitmap)
+0
System.Drawing. Bitmap..ctor(In t32 width, Int32 height, PixelFormat
format) +76
ASP.graphics_as px.__Render__co ntrol1(HtmlText Writer __output, Control
parameterContai ner) in file.aspx:9
System.Web.UI.C ontrol.RenderCh ildren(HtmlText Writer writer) +27
System.Web.UI.C ontrol.Render(H tmlTextWriter writer) +7
System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer) +243
System.Web.UI.P age.ProcessRequ estMain() +1929
On the same system I have a C# application that uses system.drawing and it
works with no problem. I've tried reinstalling the framework with no avail.
Any suggestions on how to fix this?
Thanks,
Aaron Stubbendieck 4 3783
Hi,
Strange. GDI+ is part of XP 2003, OS. From MSDN :
"GDI+ is the portion of the Windows XP operating system or Windows
Server 2003 operating system that provides two-dimensional vector
graphics, imaging, and typography. GDI+ improves on Windows Graphics
Device Interface (GDI) (the graphics device interface included with
earlier versions of Windows) by adding new features and by optimizing
existing features. " it's not .Net or COM object just native windows
DLL.
Usually when something working with win app and not with web apps it’s
all about security reasons. try to use <Identity impersonate="tr ue" User
name="" Password=""> where user name will be set with your user, just
for testing - it's security hole.
Take a look also at: http://msdn.microsoft.com/library/de.../en-us/gdicpp/
gdiplus/gdiplus.asp
Natty Gur[MVP]
blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
I tried using impersonate with the local admin account (on the server) with
and the script executed perfectly. When I turned impersonation back off,
the script stopped working, so it must be a permissions problem. The
inetpub directoy has Read & Execute, List, and Read permissions for the
asp.net account. The actual gdiplus.dll in
%systemroot%\Wi nSxS\x86_Micros oft.Windows.Gdi Plus_6595b64144 ccf1df_1.0.0.0_ x
-ww_8d353f13 and
%systemroot%\Wi nSxS\x86_Micros oft.Windows.Gdi Plus_6595b64144 ccf1df_1.0.10.0 _
x-ww_712befd8 only have permissions for Administrators and System, I tried
giving the IIS guest accouts privileges with no success.
I've also tried running aspnet_regiis.e xe -i, with nothing different
happening.
Any suggestions on what to try next?
Thanks,
Aaron Stubbendieck
Aaron Hi,
The default asp.net user doesn’t have permissions to activate COM
objects. Setting permissions of directories won’t help you. You need to
create user with minimal permissions but with the ability to activate
COM objects. You might use the following link to find out what rights
that user should have :
msdn.microsoft. com/library/en-us/dnnetsec/html/ThreatCounter.a sp
Natty Gur[MVP]
blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: DC |
last post by:
Hi,
I have created a ASP .net client talking to a .net web
service. The web service in turn calls a C++ dll to get
data from the host. The whole thing is working perfectly
fine on my machine, but when I am deploying the components
on a Window 2000 server, running the application is
throwing this error:
System.DllNotFoundException: Unable to load DLL (my.dll)
|
by: nagarajan.palanisamy |
last post by:
Hello,
We developed a DLL using C++ and I am calling the methods on the DLL
using p/Invoke from managed code. The application runs well both as a
console application and as a Windows Service application on Windows
2000 machine. But on windows 2003 server (Standard Edition), only
console application runs but not the windows service application. The
error message I am getting is
"System.DllNotFoundException: Unable to load DLL".
I gave...
|
by: Anna |
last post by:
When I run a c#DotNet web service, I have the following error:
System.DllNotFoundException: Unable to load DLL
The dll that cannot be loaded is a C dll. That's why it cannot be put in
the GAC.
This dll is located in c:\Program Files\MyApplication\bin
The environment variable "PATH" contains "c:\Program
Files\MyApplication\bin"
Where shall I put this C dll ?
|
by: batista |
last post by:
Hi,
I have an unmanaged dll that uses callback to call a function
of managed code.Now the problem is that it's given error
"System.DllNotFoundException"
I read it's due to appdomian.
http://weblogs.asp.net/mdavey/archive/2004/02/25/79868.aspx
|
by: Petr Makagon |
last post by:
i have a c++ managed wrapper around unmanaged dll.
when i use this wrapper from managed console app it works
fine but when i use it in aspx i have DllNotFoundException
occurred in Unknown Module.
any idea???!!!
| |
by: Jorge_Beteta |
last post by:
Hello Experts,
I'm using Visual Studio NET 2003 Architect on a Windows 2003 Server.
DataBase: Oracle 9i. All of them on the same PC.
Problem is that I can't connect my ASP NET web program to Oracle. I
get this error: "System.DllNotFoundException: ?" after trying to do:
Dim myConn As OracleConnection = New OracleConnection("data
source=afspe;persist security info=false;user
|
by: AG |
last post by:
Hi,
I have implemented the ASP.Net Ihttphandler interface. Handler references
the mixed dll (both managed/unmanaged code) that contains core C++ classes
wrapped under managed c++ wrappers. ASP.NET worker process, sometimes while
loading the handler and mixed dll associated with it, throws
System::DLLNotFoundException. I have verified that all required Dlls are in
the system path.
I have the handler version up and running perfectly but...
|
by: EP |
last post by:
When running my asp.net hosting service (asp.net without IIS), on server
2003 with IIS not installed, I get the following when trying to process a
request.
"System.DllNotFoundException: Unable to load DLL (aspnet_isapi.dll)."
Of course the dll is able to be found, it's still in the framework directory
and for grins I even put it in my service's local directory. This is apparantly
server 2003 not allowing asp.net to be run if IIS was not...
|
by: Zhihong Yu |
last post by:
Hi,
I declare an API as following:
Public Declare Function IsFirstInstance Lib "WPLink.dll" () As Integer
When I call this function in Main(), I got System.DllNotFoundException
even though WPLink.dll is copied alongside .Net program or under
<system32>.
Your help is appreciated.
*** Sent via Developersdex http://www.developersdex.com ***
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |