Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

ActiveX component does not work in new server machine

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
david - 13 Sep 2007 20:12 GMT
I have developed an ActiveX button which was working for old server. Now it
does not work in new Server machine. I can not remember if I did any
configuration in old machine.
However it works for local HTML test file.

The HTML file in ASP.NET web form design is in the following. The error
message:
---erorr---

Object doesn't support this property or method: 'AxButtonID.SetReFile'

----

Thanks.

David
-------Code -------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
    <HEAD>
        <title>WebForm For Triangle</title>
        <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
        <meta name="CODE_LANGUAGE" Content="C#">
        <meta name="vs_defaultClientScript" content="VBScript">
        <meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
    </HEAD>
    <body MS_POSITIONING="GridLayout">
        <!--Note: object and SCRIPT tegs must be outside of form tag. Otherwise,
it does not work-->
        <OBJECT id="AxButtonID" title="Load and View" style="Z-INDEX: 101; LEFT:
384px; WIDTH: 96px; POSITION: absolute; TOP: 64px; HEIGHT: 32px"
            classid="clsid:790E746B-B975-46E4-A98D-A4C1D92F5D34" name="AxButton"
VIEWASTEXT>
            <PARAM NAME="_Version" VALUE="65536">
            <PARAM NAME="_ExtentX" VALUE="2540">
            <PARAM NAME="_ExtentY" VALUE="847">
            <PARAM NAME="_StockProps" VALUE="66">
            <PARAM NAME="Caption" VALUE="Load">
            <PARAM NAME="Enabled" VALUE="-1">
            <PARAM NAME="UrlPathFile" VALUE="IM1">
        </OBJECT>
        <form id="Form1" method="post" runat="server">
            <asp:DataGrid id="dgPatients" style="Z-INDEX: 102; LEFT: 40px; POSITION:
absolute; TOP: 224px"
                runat="server" AllowPaging="True" BorderColor="White"
BorderStyle="Ridge" CellSpacing="1"
                BorderWidth="2px" BackColor="White" CellPadding="3" GridLines="None">
                <SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="#9471DE"></SelectedItemStyle>
                <ItemStyle ForeColor="Black" BackColor="#DEDFDE"></ItemStyle>
                <HeaderStyle Font-Bold="True" ForeColor="#E7E7FF"
BackColor="#4A3C8C"></HeaderStyle>
                <FooterStyle ForeColor="Black" BackColor="#C6C3C6"></FooterStyle>
                <Columns>
                    <asp:ButtonColumn Text="Select" HeaderText="Select"
CommandName="Select"></asp:ButtonColumn>
                </Columns>
                <PagerStyle HorizontalAlign="Center" ForeColor="Black"
BackColor="#C6C3C6" Mode="NumericPages"></PagerStyle>
            </asp:DataGrid>
            <asp:TextBox id="txtLocation" style="Z-INDEX: 103; LEFT: 168px; POSITION:
absolute; TOP: 64px"
                runat="server" Width="160px"></asp:TextBox>
            <asp:Label id="lblLocation" style="Z-INDEX: 104; LEFT: 32px; POSITION:
absolute; TOP: 64px"
                runat="server" Font-Bold="True">Image Location </asp:Label>
            <asp:TextBox id="txtFileName" style="Z-INDEX: 105; LEFT: 168px; POSITION:
absolute; TOP: 128px"
                runat="server" Width="160px"></asp:TextBox>
            <asp:Label id="lblFileName" style="Z-INDEX: 106; LEFT: 32px; POSITION:
absolute; TOP: 128px"
                runat="server" Font-Bold="True">File Name</asp:Label>
            <asp:TextBox id="txtPath" style="Z-INDEX: 107; LEFT: 168px; POSITION:
absolute; TOP: 96px" runat="server"
                Width="160px"></asp:TextBox>
            <asp:Label id="lblPath" style="Z-INDEX: 108; LEFT: 32px; POSITION:
absolute; TOP: 96px" runat="server"
                Width="48px" Font-Bold="True">Path</asp:Label>
            <asp:Label id="lblInfo" style="Z-INDEX: 109; LEFT: 384px; POSITION:
absolute; TOP: 128px" runat="server"
                Width="320px" ForeColor="Red"></asp:Label>
            <asp:Label id="Label1" style="Z-INDEX: 110; LEFT: 32px; POSITION:
absolute; TOP: 176px" runat="server"
                Font-Bold="True">Patient List</asp:Label>
            <asp:Label id="Label2" style="Z-INDEX: 111; LEFT: 32px; POSITION:
absolute; TOP: 24px" runat="server"
                Font-Bold="True">Select a patient and then click the Load button to view
image </asp:Label>
        </form>
        <SCRIPT LANGUAGE="VBScript">
            <!--
               
                AxButtonID.SetReFile(Form1.txtFileName.value)
                AxButtonID.SetRePath(Form1.txtPath.value)
                AxButtonID.SetReHost(Form1.txtLocation.value)

                Sub AxButtonID_Click()
                    rem
if(!(txtLocation.value==""||txtLocation.value==NULL||txtFileName.value==""||txtFileName.value==NULL)){
                    rem call AxButtonID.SetURL(txtLocation.value+"/"+txtFileName.value)
                   
               
                    rem call AxButtonID.AboutBox()
                    }
                end sub
            //-->
        </SCRIPT>
        <!--
        Update On Aug 29, 2007: use above to replace the following
                AxButtonID.reFile=Form1.txtFileName.value rem "IM1"
                AxButtonID.rePath=Form1.txtPath.value rem "testDir"
                AxButtonID.reHost=Form1.txtLocation.value rem "137.122.236.12"
               
                AxButtonID.SetReFile(Form1.txtFileName.value)
                AxButtonID.SetRePath(Form1.txtPath.value)
                AxButtonID.SetReHost(Form1.txtLocation.value)
        -->
    </body>
</HTML>
bruce barker - 13 Sep 2007 20:43 GMT
you need to add the new server as a trusted site in IE.

-- bruce (sqlwork.com)

> I have developed an ActiveX button which was working for old server. Now it
> does not work in new Server machine. I can not remember if I did any
[quoted text clipped - 116 lines]
>     </body>
> </HTML>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.