How to avoid warning message when using Scripting.FileSystemObject

V

VancouverMike

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.FileSystemObject 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.FileSystemObject.

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.FileSystemObject?"

Would appreciate your help very much.

Mike
 
B

Bob Barrows [MVP]

VancouverMike said:
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.public.dotnet.framework.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 FileSystemObject in server-side
code, then the message your users are seeing has nothing to do with it.
 
L

Luke Zhang [MSFT]

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
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
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/subscriptions/support/default.aspx.
==================================================

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

VancouverMike

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
 
L

Luke Zhang [MSFT]

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
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
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/subscriptions/support/default.aspx.
==================================================

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top