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

Forums / Deployment / .ascx control problem

.ascx control problem

14 posts, 0 answered
  1. Tushar Pradhan
    Tushar Pradhan avatar
    20 posts
    Registered:
    27 Mar 2006
    25 May 2006
    Link to this post
    Hi,

    I am not able to add a .ascx control to the sitefinity page. Its giving me following error,

    This control is not working properly!
    Error message: Exception has been thrown by the target of an invocation.

    I have no idea what it means, can you please let me know what exactly the problem is  ?

    Thanks in advance
    Tushar
  2. Vassil Petev
    Vassil Petev avatar
    48 posts
    Registered:
    20 Sep 2016
    25 May 2006
    Link to this post
    Hello Tushar,

    This error message appears when you are inserting .NET2 controls in Sitefinity v2.5.x. Could you give us more details on your Sitefinity version as well as the control you are trying to use within Sitefinity? Thanks in advance.


    Greetings,
    Rob
    the telerik team
  3. Tushar Pradhan
    Tushar Pradhan avatar
    20 posts
    Registered:
    27 Mar 2006
    25 May 2006
    Link to this post
    Hi Rob,

    Yes, I am using SiteFinity 2.5 version.

    I am using the Deklarit 4.0 generated .ascx control pages along with it.

    I hope this helps, please let me know if you need any further details in order to solve my problem.

    Thanks in advance,
    Tushar
  4. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    26 May 2006
    Link to this post

    Hello Tushar,

    Since Deklarit 4.0 is running under .NET 2.0, the only solution we could recommend is either
        convert your Sitefinity 2.5 project to use asp.net 2.0
    or
        use the new Sitefinity 2.6 release which is running under asp.net 2.0.
     
    This is so due to the fact that Deklarit needs to use classes from the .NET 2.0 framework which operates differently from .NET 1.0 version and the only way to use this control along with Sitefinity is to follow the suggestions above. 

    If you want to convert your current Sitefinity project to ASP.NET 2.0, you need to open it via Visual Studio and follow the popup wizard. We wouldn't recommend this approach because the VS wizard is not clever enough to convert all your code appropriately. It would be much more comfortable to use Sitefinity 2.6 version since it does not demand for any conversions and also utilizes the .NET 2.0 profits and benefits. Probably we will release 2.6 Project Converter within week or so. If you have the time, maybe this would be the best solution to your problem.

    Let us know if you have any other questions.

    Kind regards,
    Vassil Daskalov
    the telerik team
  5. Tushar Pradhan
    Tushar Pradhan avatar
    20 posts
    Registered:
    27 Mar 2006
    26 May 2006
    Link to this post
    Hi,

    As per your suggestion I have down loaded the trail version of SiteFinity 2.6 , now when I try to edit the site it asks me for username and password. If I try the 'admin@test.com' as username and 'admin' as password it gives me following error.


    Error trying to initialize Membership Services!

    Possible reason:

    You have not set a valid connection string to Membership Services or there are no Membership database objects.

    Solution:
    Set the Membership connection string in the Web.config in the application root:
    <connectionStrings>
      <add name = SitefinityMembership
             connectionString = "[Membership Connection string]"
             providerName = "System.Data.SqlClient"
    </connectionStrings>

    To create the Membership database objects in SQL Server Database, run C:\WINDOWS\Microsoft.NET\Framework\<versionNumber>\aspnet_regsql.exe tool. For more information about using aspnet_regsql.exe, refer to http://msdn2.microsoft.com/en-US/library/ms229862.aspx



    I also tried running the aspnet_regsql.exe tool for generating a membership database named 'aspnetdb' but still its giving me the same error..

    I know I am missing some small thing but cannot figure out what ..

    Thanks in advance,
    Tushar
  6. Hrisi
    Hrisi avatar
    34 posts
    Registered:
    17 Sep 2016
    26 May 2006
    Link to this post
    Hi Tushar,

    We assume that you have Visual Studio 2005 with SQL Express database installed by default. If this is the case, follow the steps below to get started with Sitefinity 2.6:

    1. Run the create project wizard.
    2. Give the project a name and check the "self-contained" checkbox.
    3. On the next screen of the wizard you need to create a database. Select Access database. Click Next.
    Access database will be used by Sitefinity and SQL Express database will be used for storing Membership services information.
    4. Choose some themes and layouts.
    5. Click Next to create your project.
    6. When you have your project successfully created, you need to give full access rights for <YOUR_LOCAL_MACHINE_NAME>\ASPNET account for App_Data folder in the newly created project.
    7. Go to Edit website. For initial login, please use Username:Administrator and Password:admin.

    Please, let us know if you need any further assistance.

    Best regards, 

    Hrisi
    the telerik team
  7. Tushar Pradhan
    Tushar Pradhan avatar
    20 posts
    Registered:
    27 Mar 2006
    29 May 2006
    Link to this post
    Hi Hrisi,

    Thanks for the reply, I had already set the access rights  but its still giving me the same message,

    As for the password which you had send "adm! in" , thought i tired all the combinations such as 'admin', 'adm!in' , 'adm! in'  i am not able to get thru it.

    To give you an idea,

    I have created a 'Project1' self-contained, I am using the SQL database for both the data, as well as the membership.

    I have also tried running the
    C:\WINDOWS\Microsoft.NET\Framework\<versionNumber>\aspnet_regsql.exe tool.

    What i need to ask you is that I am not sure if the membership database is created with the username and the password.


    Thanks in advance,
    Tushar
  8. Hrisi
    Hrisi avatar
    34 posts
    Registered:
    17 Sep 2016
    30 May 2006
    Link to this post
    Hi Tushar,

    Before you create a new project with SQL backend, you should:
    1. Create empty database, for example "projectdb"
    2. Create user login for the SQL server with owner rights on new created database.
    3. Use C:\WINDOWS\Microsoft.NET\Framework\<versionNumber>\aspnet_regsql.exe and point it to allready created "projectdb" database and use a user created in previous step. Note that <versionNumber> should be changed with actual version of .NET framework on your machine.

    After this steps you are ready to create new Sitefinity self-contained project, with SQL "projectdb" database for both the data and membership.

    Please, let us know if you need any further assistance.

    Best regards, 
    Hrisi
    the telerik team
  9. Tushar Pradhan
    Tushar Pradhan avatar
    20 posts
    Registered:
    27 Mar 2006
    30 May 2006
    Link to this post
    Hi,

    Thanks for your suggestion, i tried it but still not able to get it working.

    I had used SiteFinity 2.5 before, so I had created the project exactly as I use to do in v2.5.

    1. Create a SQL database first 'SF_Project',
    2. Set its permissions,
    3. Then go ahead and create the Sitefinity project 'Project',
    4. Edit the project
    5. Open the project in the visual studio to manipulate the pages .

    But among these above steps; 4 and 5 are not working for v2.6 since i am not able to login..

    I hope this will give you an idea,

    the connection string specified is

    <add name="SitefinityMembership" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>

    and i am using SQL server 2005 with server name 'Tushar' and using the Windows Authentication.

    Please let me know,

    Thanks in advance,
    Tushar Pradhan



  10. Hrisi
    Hrisi avatar
    34 posts
    Registered:
    17 Sep 2016
    01 Jun 2006
    Link to this post
    Hello Tushar,

    In order to run Sitefinity 2.6 you should have SQLExpress installed. This is the default storage where Sitefinity stores Membership information. This is the only new requirement related to new Microsoft feature introduced in .NET2.0 - Membership Services.

    As you know from Sitefinity 2.5, there are two type of projects - bare projects (for example the Primavera project) and self-contained. For bare projects, please check the discussion here: http://www.sitefinity.com/Default.aspx?PageId=2314&b1043S=CqIOh 

    For self-contained projects there are some extra steps to follow:
    1. During project creation, if you select SQL server, uncheck "Use this SQL Server Database for Membership Users"
    2. After project creation, set full access rights for <machine_name>\ASPNET system account to Sitefinity2.6\Projects\<project_name>\App_Data
    3. In login screen use Administrator/admin for first time login in new project. If login is successful in Sitefinity2.6\Projects\<project_name>\App_Data folder you can see two files created:
          ASPNETDB.MDF
          aspnetdb_log.ldf

    If you experience any other problems, please give us detailed information about the steps we need to take to reproduce the problem.


    Best wishes,

    Hrisi

    the telerik team

  11. Tushar Pradhan
    Tushar Pradhan avatar
    20 posts
    Registered:
    27 Mar 2006
    05 Jun 2006
    Link to this post
    Thank you... i was able to login...

    the additional thing that i had to do was to reinstall a few of the software..

    though i have a small doubt regarding the project.. now that i am able to login into the edit mode..

    when i try to open the project in the visial studio i am not able be see the 'TelerikCMSProject' file in my project folder (C:\Program Files\telerik\Sitefinity2.6\Projects\SF2Proj) it isnt created in the folder..

    and yes i have created the project as a

    thanks in advance

    tushar


  12. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    06 Jun 2006
    Link to this post

    Hi Tushar,

    First, I must mention that there is no project file created in Sitefinity2.6 and that is why there is no icon on the Project Manager in this version. We are sorry for not upgrading the documentation appropriately. We cannot allow this feature anymore since Microsoft have made some updates for Windows XP which do not allow creating such links.
    To open your project, you should do the following: open Visual Studio and click Open Web Site. From the popup menu on the left you can choose from where you want to open your project. For example, you can open it from the file system or the local IIS. Find your project folder on the right side, select it and click Open. Your project should now load in the Visual Studio environment.


    Sincerely yours,

    Gery
    the telerik team
  13. Tushar Pradhan
    Tushar Pradhan avatar
    20 posts
    Registered:
    27 Mar 2006
    06 Jun 2006
    Link to this post
    Thanks Grey..

    That worked..

    Tushar
  14. Tushar Pradhan
    Tushar Pradhan avatar
    20 posts
    Registered:
    27 Mar 2006
    06 Jun 2006
    Link to this post
    Thanks Gery..

    That worked..

    Tushar
14 posts, 0 answered