Try to load htm page

Posted on 2005-04-06
Last Modified: 2010-04-07
My boss created some htm pages out of Excel that he would like me to incorporate into our intranet web site.  The hmt page will change over time and need to be reference outside the project (i.e. a network sharedrive). The first example code works fine, but when I reference a mapped full control permission network drive I get an error message System.IO.IOException: Logon failure: unknown user name or bad password.

This works:

       Response.ContentType = "text/HTML"

This code does not work when I reference a non-iis network drive with full control permissions:

       Response.ContentType = "text/HTML"

Is this the best approach or should I be using another method?

Question by:detroitchassis
    LVL 9

    Assisted Solution

    Give your ASPNET user account permission on that folder where the file resides.
    LVL 12

    Accepted Solution

    It's not as easy as that.
    A network share is actually on another computer, but ASPNET is a local user and can not
    be configured permission on another computer.
    There is no easy way here if you have to do so, but it's not impossible.

    Have a look at this article:

    Author Comment

    I did a quick read of the referenced article.  It looks like the Com+ is a good solution, but at first appearance complicated.  Our intranet is about 25 users strong; since I'm relatively new to the organization, it will be my boss's call as to which way we go.  I’m hoping the case it is decided for us to go with the Com+ solution that I can continue to use you as a resource! I 'm willing to bump up the points to 500 if that make any difference.


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now