1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Web App as opposed to Web Site?

Web App as opposed to Web Site?

7 posts, 0 answered
  1. Matt
    Matt avatar
    17 posts
    Registered:
    03 Jan 2008
    21 May 2008
    Link to this post
    Hello all,

    I was wondering if there was a way to convert or just use a Sitefinity site as a Web Application instead of a Web Site.  Instinct says it can't be done without some major effort, but I just wanted to make sure.  

    I tried simply creating a Web Application project and adding the files from the site to it which seemed to work, but there were problems with source control for that project so I think I missed something (or that it isn't easy to do).
  2. Kalina
    Kalina avatar
    176 posts
    Registered:
    27 Oct 2016
    23 May 2008
    Link to this post
    Hello Matt,

    You are right in suggesting that a Sitefinity project can be converted to a Web Application.

    To do so, please follow the steps in this article: Migrating VS web site to VS Web Application.
    I hope you find the provided resource helpful. Please let us know if you have more questions.

    Have a nice day,
    Kalina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center


  3. Matt
    Matt avatar
    17 posts
    Registered:
    03 Jan 2008
    27 May 2008
    Link to this post
    Thanks for the link, I followed the guide and it got me close enough that I figured the rest out with only one major mistake.

    My mistake was in refactoring some of the UserControls (SiteMenu.ascx namely).  The problem was that some types became abiguous references when including both Telerik.Web.UI and Telerik.WebControls.  I resolved them as best I could and eventually got it to compile.  I got everything checked into source control successfully, but when the time came to start using it I was dragging a SiteMenu into a template and it gave me an exception that implied that one of the guesses I had made when resolving things had been wrong.  I corrected my mistake in code, saved it, and went back to sitefinity.  Since that point every time I try to navigate anywhere (to the dashboard from the login page, for instance) in sitefinity it throws the follwing exception:

    A template with the same name already exists.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: A template with the same name already exists.

    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [ArgumentException: A template with the same name already exists.]
    Telerik.Cms.Data.PageTemplate.CheckNames() +510
    Telerik.Cms.Data.PageTemplate.VerifyObject() +5
    Nolics.ORMapper.Base.OdbClassHelper.VerifyClass(IOdbClass cl) +38
    Telerik.Cms.Data.PageBase.Nolics.ORMapper.Base.IOdbClass.BeginCommit() +10
    Nolics.ORMapper.Base.Transaction.Commit(Boolean fCleanIfSuccess) +756
    Nolics.ORMapper.Base.Transaction.Commit() +10
    Telerik.Cms.Data.StagedPage.Publish() +406
    Telerik.Cms.Data.StagedPage.CheckIn() +325
    Telerik.Cms.Data.DefaultProvider.Initialize(String name, NameValueCollection config) +1528
    Telerik.ManagerBase`1.InstantiateProvider(ProviderSettings providerSettings, Type providerType) +657
    Telerik.ManagerBase`1.InstantiateProvider(ProviderSettings providerSettings) +102
    Telerik.ManagerBase`1.SetProvider(String providerName) +206
    Telerik.ManagerBase`1..ctor(String providerName) +87
    Telerik.ManagerBase`1..ctor() +11
    Telerik.Cms.CmsWorkflowService..ctor() +23
    Telerik.Cms.CmsWorkflowService..cctor() +20

    [TypeInitializationException: The type initializer for 'Telerik.Cms.CmsWorkflowService' threw an exception.]
    Telerik.Cms.CmsWorkflowService.Initialize() +0
    Telerik.Cms.CmsManager.OnInitialized() +5
    Telerik.ManagerBase`1.Initialize() +455
    Telerik.ManagerBase`1..ctor(String providerName) +18
    Telerik.ManagerBase`1..ctor() +11
    Telerik.Cms.Web.CmsHttpModule.BeginRequest(Object sender, EventArgs e) +454
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

    [TypeInitializationException: The type initializer for 'Telerik.Cms.Web.UrlHelper' threw an exception.]
    Telerik.Cms.Web.CmsHttpModule.BeginRequest(Object sender, EventArgs e) +1271
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64



    It seems like sitefinity is stuck in some "uploading" state at the database level (restarting the browser and relogging in met with the same error).  Any thoughts as to how I should go about getting sitefinity back to a stable state?
  4. Matt
    Matt avatar
    17 posts
    Registered:
    03 Jan 2008
    28 May 2008
    Link to this post
    This morning the error didn't show up, I suspect IIS just needed a reset.
  5. Kalina
    Kalina avatar
    176 posts
    Registered:
    27 Oct 2016
    29 May 2008
    Link to this post
    Hi Matt,

    Thanks for the follow-up! We are glad to see that the error was resolved after an IIS restart and you are able to proceed with your work.

    Please let us know if you have any other questions regarding Sitefinity.
    We will be glad to be of help.

    Best,
    Kalina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Sang
    Sang avatar
    13 posts
    Registered:
    14 May 2008
    18 Jul 2008
    Link to this post
    Has anyone been able to convert Sitefinity Version 3.2 Hotfix 1616 from a web site to a web app? I keep getting a compiled error for ChangeRecepients.aspx and ManagedRecepients.aspx when I convert the web site to a web app following the blog and the error is 'Newsletter_Default already defines a member called 'Page_Load', I get the same error also w/ 'lnkButnAdd_Click'.  Has anyone been able to fix this?
  7. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    21 Jul 2008
    Link to this post
    Hello Sang,

    Please try to restart IIS, delete all asp.net temporary file for the project (C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\[project_name]) and recompile it.

    Sincerely yours,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
7 posts, 0 answered