Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Studio 2005 Runtime Environment

Status
Not open for further replies.

tassflint

Programmer
Dec 29, 2005
21
US
Hello all,

I have created a website that uses a 3rd party twain dll to control a scanner. When I run the code using VS2005 the html object that i created is able to access the dll. When I move the code up to our intranet server the object is unable to find or can not access the dll file. So what is the difference between Visual Studios runtime environment and the IIS we have on the server?

I have build and installed the site, so all references should be there, and the dll file is located within the same directory as the page that needs it.

Here is the code I am using:
Code:
<script language="javascript" type="text/javascript"   >
    function StartScan()
   {
        if (Twain1.maxImages == null)
       {
            alert("Set .Net Security Settings")
       }  
       Twain1.Register("bnixon", "dc2", "DefW0rDHppeGh/vOi50Q0HB3oyzzA6vxg4MryYrPlIw4q1o[URL unfurl="true"]WwWjunYAgKoVFgJ6Z0xkYfcyE003Cr2Rrx/V9aHeqK9syM5LMzsoHomwJSvozeb8V5k/10jtpjhmPkPMMtyNT48uZQXvrSyieyEyUCInbTSYBjC9dTgnYAHnl5kSA")[/URL]
       Twain1.StartDevice()
       
       Twain1.autocleanbuffer = 1 
       
       Twain1.ShowUI = false
       
       Twain1.SelectSource() 
       
       Twain1.showui = false
       Twain1.opendatasource()
       Twain1.acquiremodal()
       Twain1.saveimage(Twain1.numimages - 1, "c://temp.jpg")
   } 
    </script>
</head>
<body style="background-color: #f5f5f5">
    <object id="Twain1" name="Twain1" 
          classid="[URL unfurl="true"]http://dc2/scan/Twain.dll#Twain.VSTwain"[/URL]
          codebase="[URL unfurl="true"]http://dc2/scan/Twain.dll#fileversion=2,4,3">[/URL]
    </object>



Thanks in advance,

Brian
 
Try putting the dll in the bin directory for the web app.

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
jebenson,

I put the dll in the bin and it still does not work. Any other ideas?

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top