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:
Thanks in advance,
Brian
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