ASP.NET — oracle-tech

    Forum Stats

  • 3,715,956 Users
  • 2,242,917 Discussions
  • 7,845,700 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

ASP.NET

253761
253761 Member Posts: 3
Hi,

i have a problem with the ODP.NET and ASP.NET.

When I create a Projekt in C# and open a Database-Connection,
it work's great.
But when I Create a Projekt in ASP.NET with C# and open a Database-Connection,
then i become a error.

The errortext:

Unable to load DLL (OraOps.dll).

An now my question: Why??????????

Comments

  • 8600
    8600 Member Posts: 5
    Did you remember to include references to the dlls for Oracle Provider?

    Jeff.
  • 3405
    3405 Member Posts: 18
    Yes,and when I create a project in ASP.NET Web Service with C# and open a database connection,
    then i get a error.

    The error message:
    Unable to load DLL (OraOps.dll).

    And when I create a project in win form whth C#,and open a database connection, I do not get any error.
    Every thing is ok.
    Both scene I have include references to the dlls for Oracle Provider,and using Oracle.DataAccess.Client
    namespace.
  • 3405
    3405 Member Posts: 18
    Hi,
    i have a problem with the ODP.NET and ASP.NET.
    When I create a Projekt in C# and open a Database-Connection,
    it work's great.
    But when I Create a Projekt in ASP.NET with C# and open a Database-Connection,
    then i become a error.
    The errortext:
    Unable to load DLL (OraOps.dll).
    An now my question: Why??????????
    ASPNET Process Identity does not have enough privileges to access the system path,such as OraHome path.
    The ASPNET account is the default identity selected.It's a member of the Users group, a group that by
    default has only minimal privileges.You can change the identity to SYSTEM.(Caution Running under the SYSTEM identity places your server at the highest risk for attacks from malicious code and data corruption.)

    The identity is specified in the machine.config XML file, located in the \%windows%\Microsoft.NET\Framework\%Version%\Config folder of the server. A simplified example of the element is shown below for the three configurations. The element in the file has several attributes that are not shown in this example.

    <!-- Select the ASPNET identity -->
    <system.web>
    <processModel enable="true" username="MACHINE" password="AutoGenerate"/>
    </system.web>

    <!-- Select the SYSTEM identity -->
    <system.web>
    <processModel enable="true" username="SYSTEM" password="AutoGenerate"/>
    </system.web>

    <!-- Select a custom identity -->
    <system.web>
    <processModel enable="true" username="domain\user" password="pwd"/>
    </system.web>


    For more information on configuring the process identity, see
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxconApplicationIdentity.asp
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchSecurityConcernsForVisualBasicNETProgrammers.asp
This discussion has been closed.