none
Visual web part with application pages not working properly on the production server, Sharepoint 2010.

    Question

  • Ok,

    I am approx. a newbie and already tired everything i found or know to get this thing working but no luck till now.

    I have created a visual web part using VS.NET 2010 and added couple of Application Pages and other class files in it, on the development server everything is working fine (As usual provided a Site URL to Deploy the Solution), i am able to view all the Application pages and every operation is working fine. This visual web part is specifically for a Sharepoint website which has FBA implimented.

    But while i tried to install and deploy this visual web part on production server getting some issues. Not able to Deploy it to specific webapp so depolyed Globally.Checked for all Features are they are there. But while trying to access the Application pages i am getting "Access is Denied" error on page.

    Please suggest what should i do to get the Visual web part working on Production server.

    Development Environment :

    Sharepoint Foundation 2010, Visual studio 2010.

    Thanks in advance and regards.

    Friday, July 05, 2013 12:23 PM

All Replies

  • Change the base class of the application pages to UnsecuredLayoutsPageBase from LayoutsPageBase and try..

    UnsecuredLayoutsPageBase represents the base class for application pages that explicitly do not require the user to have any permissions where as LayoutsPageBase represents an application page to which access can be limited to users that possess certain rights

    Hope this helps..


    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Mark As Answer Feel free to unmark answer if does not resolves your problem.

    10 hours 19 minutes ago