locked
Deploying Sharepoint Visual Web Part project on IIS RRS feed

  • Question

  • Hi Everybody,

    I have developed a Sharepoint Visual web part project. I want to host this project on IIS. Can anybody have any idea about this?

    I have some understanding of, how to deploy wsp on Sharepoint server. But If I want to host this wsp on Standalone IIS - that is, an IIS website without Sharepoint Server. Can we do this?

    Your kind help is appreciated. Please help me in this.

    Thanks in advance.

     

    Thursday, November 17, 2011 6:20 AM

Answers

  • You can't.  Its a SHAREPOINT Visual Web part.  That means the SharePoint binaries have to be in place to install it.  It can't be installed and used on a Standalone IIS server.  You can write a WSP solution with a web part in it that will work in just IIS, but you can't use the SharePoint projects in Visual Studio to do it.  They all require SharePoint.
    Paul Stork SharePoint Server MVP Chief SharePoint
    Architect: Sharesquared Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.
    Thursday, November 17, 2011 12:16 PM
  • There's nothing provided in VS 2010 to create a WSP file that will work in an IIS only environment.  WSP solutions are fro SharePoint servers, not IIS.  If you want a Web part for an IIS only server you'll need to write it as a regular Class library.  Since you are installing on a non-sharePoint server its a regular ASP.NET project and SharePoint doesn't have anything to do with it.
    Paul Stork SharePoint Server MVP Chief SharePoint
    Architect: Sharesquared Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.
    Friday, November 18, 2011 12:59 PM

All replies

  • You can't.  Its a SHAREPOINT Visual Web part.  That means the SharePoint binaries have to be in place to install it.  It can't be installed and used on a Standalone IIS server.  You can write a WSP solution with a web part in it that will work in just IIS, but you can't use the SharePoint projects in Visual Studio to do it.  They all require SharePoint.
    Paul Stork SharePoint Server MVP Chief SharePoint
    Architect: Sharesquared Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.
    Thursday, November 17, 2011 12:16 PM
  • Hi Paul, Thanks for your reply.

    So you mean to say, we can't deploy Visual Web Part project on standalone IIS.

    Sorry but I am new to Sharepoint development. Can you please tell me, how to write WSP Solution with a web part?

    Is there anything in Visual Studio 2010 provided to write WSP with a Web Part?

    Thanks once again.

     

     

     


    Regards, - Swati
    Friday, November 18, 2011 9:20 AM
  • There's nothing provided in VS 2010 to create a WSP file that will work in an IIS only environment.  WSP solutions are fro SharePoint servers, not IIS.  If you want a Web part for an IIS only server you'll need to write it as a regular Class library.  Since you are installing on a non-sharePoint server its a regular ASP.NET project and SharePoint doesn't have anything to do with it.
    Paul Stork SharePoint Server MVP Chief SharePoint
    Architect: Sharesquared Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.
    Friday, November 18, 2011 12:59 PM
  • Thanks Paul. It means I need to create ASP.NET Web Part to host it on IIS.
    Regards, - Swati
    Monday, November 28, 2011 8:45 AM
  • Take a look at the following.  It talks about how WEb parts work in ASP.net 4 without SharePoint.
    Paul Stork SharePoint Server MVP Chief SharePoint
    Architect: Sharesquared Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.
    Monday, November 28, 2011 1:10 PM
  • I think you forgot to add the link. Can you please add it?

    It would be really great help if I get any good links on, how web parts work in ASP.NET 4 without Sharepoint.

    Thanks,

    Swati

     


    Regards, - Swati
    Tuesday, November 29, 2011 6:02 AM
  • Sorry.  Here's the link:

    http://msdn.microsoft.com/en-us/library/e0s9t4ck.aspx


    Paul Stork SharePoint Server MVP Chief SharePoint
    Architect: Sharesquared Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.
    Tuesday, November 29, 2011 12:59 PM