How to avoid warning message when using Scripting.FileSystemObject

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • VancouverMike

    How to avoid warning message when using Scripting.FileSystemObject

    Hi there,

    I am writing a web app using asp.net 1.1 and C#. This web app is launched in
    another win32 application and this app needs to pass information to my web
    app. But this win32 application doesn't support long string(Maximum 255),
    which gives me problem passing information longer than 255 through
    querystring. So I have to use an intermedia plain file and in my web app,
    using Scripting.FileS ystemObject to open the file and read the information
    in. Each time when I launch the web page, I got a warning message saying "An
    ActiveX control on this page might be unsafe to interact with other parts of
    the page. Do you want to allow this interaction?" Users need to click "Yes"
    to proceed. I am pretty sure this is caused by using
    Scripting.FileS ystemObject.

    All applications run in Intranet environment within a corporate network. My
    question are "Can I avoid this error message?" and "Can I give permission to
    my particular web app to run Scripting.FileS ystemObject?"

    Would appreciate your help very much.

    Mike
  • Bob Barrows [MVP]

    #2
    Re: How to avoid warning message when using Scripting.FileS ystemObject

    VancouverMike wrote:
    Hi there,
    >
    I am writing a web app using asp.net 1.1 and C#.
    There was no way for you to know it (except maybe by browsing through
    some of the previous questions before posting yours - always a
    recommended practice), but this is a classic asp newsgroup. ASP.Net is
    a different technology from classic ASP. While you may be lucky enough
    to find a dotnet-savvy person here who can answer your question, you
    can eliminate the luck factor by posting your question to a newsgroup
    where the dotnet-savvy people hang out. I suggest
    microsoft.publi c.dotnet.framew ork.aspnet.
    There are also forums at www.asp.net where you can find a lot of people
    to help you.

    Having said that, if you are using that FileSystemObjec t in server-side
    code, then the message your users are seeing has nothing to do with it.

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Comment

    • Luke Zhang [MSFT]

      #3
      RE: How to avoid warning message when using Scripting.FileS ystemObject

      Hi Mike,

      SInce the application is running in the corporate network, you may add your
      web site to client's "trusted site" (IE/Tools/Internet options/Security).
      Then, decrease the security level of it. For example, you can enable all
      options in "ActiveX controls and plug-ins", and this will disable the
      dialog with you call the script.

      Sincerely,

      Luke Zhang

      Microsoft Online Community Support
      =============== =============== =============== =====
      Get notification to my posts through email? Please refer to
      Learn with interactive lessons and technical documentation, earn professional development hours and certifications, and connect with the community.

      ications.

      Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
      where an initial response from the community or a Microsoft Support
      Engineer within 1 business day is acceptable. Please note that each follow
      up response may take approximately 2 business days as the support
      professional working with you may need further investigation to reach the
      most efficient resolution. The offering is not appropriate for situations
      that require urgent, real-time or phone-based interactions or complex
      project analysis and dump analysis issues. Issues of this nature are best
      handled working with a dedicated Microsoft Support Engineer by contacting
      Microsoft Customer Support Services (CSS) at
      http://msdn.microsoft.com/subscripti...t/default.aspx.
      =============== =============== =============== =====

      This posting is provided "AS IS" with no warranties, and confers no rights.



      Comment

      • VancouverMike

        #4
        RE: How to avoid warning message when using Scripting.FileS ystemOb

        Thank Bob and Luke for your help. Sorry that I didn't realize this place is
        for classic ASP topics. I will post my future postings to the correct place.

        We have tried to include my site to be in the "Trusted Site" but I am not
        sure if our administrator has decrease the security level for Local Intranet
        to allow ActiveX Controls and Plug-in to run. My concern is that once we open
        the door for all ActiveX Controls to run, we may worry about some malicious
        controls to harm our environment. Is there any fine tuning in terms of which
        ActiveX control for which site can be run?

        Thanks a lot for your help.
        Mike

        "Luke Zhang [MSFT]" wrote:
        Hi Mike,
        >
        SInce the application is running in the corporate network, you may add your
        web site to client's "trusted site" (IE/Tools/Internet options/Security).
        Then, decrease the security level of it. For example, you can enable all
        options in "ActiveX controls and plug-ins", and this will disable the
        dialog with you call the script.
        >
        Sincerely,
        >
        Luke Zhang
        >
        Microsoft Online Community Support
        =============== =============== =============== =====
        Get notification to my posts through email? Please refer to
        Learn with interactive lessons and technical documentation, earn professional development hours and certifications, and connect with the community.

        ications.
        >
        Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
        where an initial response from the community or a Microsoft Support
        Engineer within 1 business day is acceptable. Please note that each follow
        up response may take approximately 2 business days as the support
        professional working with you may need further investigation to reach the
        most efficient resolution. The offering is not appropriate for situations
        that require urgent, real-time or phone-based interactions or complex
        project analysis and dump analysis issues. Issues of this nature are best
        handled working with a dedicated Microsoft Support Engineer by contacting
        Microsoft Customer Support Services (CSS) at
        http://msdn.microsoft.com/subscripti...t/default.aspx.
        =============== =============== =============== =====
        >
        This posting is provided "AS IS" with no warranties, and confers no rights.
        >
        >
        >
        >

        Comment

        • Luke Zhang [MSFT]

          #5
          RE: How to avoid warning message when using Scripting.FileS ystemOb

          Hi Mike,

          This is why we need to add the site to the "trusted site". The activex
          permission is only opened for sites in "trusted site". Since you are the
          developer of the web site and you can ensure your site doesn't contains any
          malicious controls. Your users will trust you and add the site and adjust
          the security setting for "trusted sites".

          Sincerely,

          Luke Zhang

          Microsoft Online Community Support
          =============== =============== =============== =====
          Get notification to my posts through email? Please refer to
          Learn with interactive lessons and technical documentation, earn professional development hours and certifications, and connect with the community.

          ications.

          Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
          where an initial response from the community or a Microsoft Support
          Engineer within 1 business day is acceptable. Please note that each follow
          up response may take approximately 2 business days as the support
          professional working with you may need further investigation to reach the
          most efficient resolution. The offering is not appropriate for situations
          that require urgent, real-time or phone-based interactions or complex
          project analysis and dump analysis issues. Issues of this nature are best
          handled working with a dedicated Microsoft Support Engineer by contacting
          Microsoft Customer Support Services (CSS) at
          http://msdn.microsoft.com/subscripti...t/default.aspx.
          =============== =============== =============== =====

          This posting is provided "AS IS" with no warranties, and confers no rights.



          Comment

          • VancouverMike

            #6
            RE: How to avoid warning message when using Scripting.FileS ystemOb

            Thanks Luke. That makes sense.

            Mike

            "Luke Zhang [MSFT]" wrote:
            Hi Mike,
            >
            This is why we need to add the site to the "trusted site". The activex
            permission is only opened for sites in "trusted site". Since you are the
            developer of the web site and you can ensure your site doesn't contains any
            malicious controls. Your users will trust you and add the site and adjust
            the security setting for "trusted sites".
            >
            Sincerely,
            >
            Luke Zhang
            >
            Microsoft Online Community Support
            =============== =============== =============== =====
            Get notification to my posts through email? Please refer to
            Learn with interactive lessons and technical documentation, earn professional development hours and certifications, and connect with the community.

            ications.
            >
            Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
            where an initial response from the community or a Microsoft Support
            Engineer within 1 business day is acceptable. Please note that each follow
            up response may take approximately 2 business days as the support
            professional working with you may need further investigation to reach the
            most efficient resolution. The offering is not appropriate for situations
            that require urgent, real-time or phone-based interactions or complex
            project analysis and dump analysis issues. Issues of this nature are best
            handled working with a dedicated Microsoft Support Engineer by contacting
            Microsoft Customer Support Services (CSS) at
            http://msdn.microsoft.com/subscripti...t/default.aspx.
            =============== =============== =============== =====
            >
            This posting is provided "AS IS" with no warranties, and confers no rights.
            >
            >
            >
            >

            Comment

            Working...