Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 407229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:34:26+00:00 2026-05-12T17:34:26+00:00

I am trying to call a DLL function in my file.aspx.cs like this: [DllImport(the.dll)]

  • 0

I am trying to call a DLL function in my file.aspx.cs like this:

[DllImport("the.dll")]
private static extern bool theFunction(int width, int height);

And:

  • file “the.dll” is in “C:\Windows\System32\inetsvr”
  • my web site is an application that has the privileges to read and execute it
  • if I try File.Exists("the.dll") on the server it returns true, so the DLL is on the server “path”

But:

  • if I try to run the page on localhost, all is OK
  • if I try to run the page uploaded on IIS server, the page loads to infinity… Nothing shows up, nothing happens!? And then IIS gets blocked and I have to restart the server.

What am I doing wrong? o_0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:34:27+00:00Added an answer on May 12, 2026 at 5:34 pm

    Check security and permissions settings on IIS.
    Also try putting dll in bin folder.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to call a Dll function which looks like this (in the C/C++
I'm trying to call from C# a function in a custom DLL written in
I'm trying to make a call to a DLL function (via GetProcAddress etc) from
I'm trying to create a DLL that exports a function called GetName. I'd like
I'm trying to call a function Size() from a custom COM DLL from PHP.
I am trying to call a function defined in a DLL, documented here: http://xiph.org/vorbis/doc/vorbisfile/ov_fopen.html
I am trying to call out to a legacy dll compiled from FORTRAN code.
I'm trying to call the HtmlTidy library dll from C#. There's a few examples
I'm trying to call a function after I load some XML into Actionscript, and
I'm trying to install driver behind the user: I've create DLL which call SetupCopyOEMInf

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.