problem in hosting of website

Posted on 2009-05-02
Last Modified: 2013-11-08

I have created a program in VS 2008 in which I am uploading the file using file uploader.

The program works fine on my local machine

But when I publish the website and host it to the server(production) then I am not able to run the code.

Is it something related to permission
Question by:KaranGupta
    LVL 20

    Expert Comment

    by:Tapan Pattanaik
    Hi KaranGupta,

                    IIS Videos for ASP.NET
    LVL 83

    Expert Comment

    When uploading websites to hosting, you most often have to configure it properly. Its not just copy and paste. You have to create an ASP.NET application on the folder where your files are copied. This is then added as an virtual directory in the IIS. ASP.NET can only run if it has a virtual directory in IIS.

    Author Comment


    I have taken hosting space. There is a folder there called httpdocs.

    Here I have copied the site.

    I think I need not to configure for IIS    there
    LVL 83

    Accepted Solution

    You do need to configure the folder as an ASP.NET application otherwise it would not go through IIIS and if it does not go through IIS, it does not get executed. What hosting provider are you using?

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    728 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

    18 Experts available now in Live!

    Get 1:1 Help Now