Help with Portal Site

44 posts, 0 answers
  1. Jon Hobbs
    Jon Hobbs avatar
    48 posts
    Member since:
    May 2007

    Posted 07 Jun 2007 Link to this post

    Valeri,

    When I run the demo locally under Visual Web Developer 2005 I get the following error..


    Server Error in '/PortalSiteVB' Application.

    An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    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.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    Source Error:

    Line 18:    Public Shared Function GetOpenConnection() As SqlConnection
    Line 19: Dim connection As New SqlConnection(ConfigurationManager.ConnectionStrings("ConnectionString1").ToString())
    Line 20: connection.Open()
    Line 21: Return connection
    Line 22: End Function 'GetOpenConnection

  2. mikejoseph
    mikejoseph avatar
    16 posts
    Member since:
    Jan 2007

    Posted 07 Jun 2007 Link to this post

    Depricated post ...  [deleted text as it refers to a previous assembly no longer applicable] ...
  3. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 08 Jun 2007 Link to this post

    Jon: the provided connection string and database are for SQL Express. If you don't have it installed on your machine you could get this error. You could import the database in SQL Server 2005. It is quite simple and it can be done even by hand.

    Michael: do you use the "Prometheus" version from this forum thread? I think that it should not generate the exceptions you are getting. If you still experience problems integrating the example in your application, I could help you via GoToMeeting (although we do this in very rare occasions), but this could be done on Monday at the earliest.

    Best wishes,
    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  4. mikejoseph
    mikejoseph avatar
    16 posts
    Member since:
    Jan 2007

    Posted 08 Jun 2007 Link to this post

    Hi Valeri,

    At first i wasn't using that assembly from the thread and I found that after I replied, but it didn't make anything act any differently once implemented.  Today, I'll start it over from scratch and the new assembly to see if it all works out-of-box and then see if I can implement into my current project.  Thanks again for the help.  I'll tinker with it more for a while today to see if I can work it out.

    Thanks!

    Mike
  5. mikejoseph
    mikejoseph avatar
    16 posts
    Member since:
    Jan 2007

    Posted 09 Jun 2007 Link to this post

    Indeed Valeri... that new build did the trick...

    Also, those misbehaving async-postback triggers I mentioned were due to an unrelated javascript error.

    Thanks again for all the help and I'll post any results or improvments.

    Mike
  6. mikejoseph
    mikejoseph avatar
    16 posts
    Member since:
    Jan 2007

    Posted 18 Jun 2007 Link to this post

    Hi all... 

    I tried the latest build under the sticky threads and I adapted it to work with my application and YAY, it works.  At least the positioning and the remembering of those positions.  The one thing I'm having a problem with is that my events within the widgets don't seem to be getting fired.  For example, one of my widgets is a Weather Forecast.  The widget shows a 5-day forecast for the days and then there's a link button within the control called "Change Zipcode" ... upon clicking that button, you should be able to see a textbox to update your zip, but when I click the button, absolutely nothing happens.  I'll continue to research this, but does anyone have any suggestions as to how to get by this?

    If anyone wants to see how this works, use my test account:
    http://www.mytoyotapage.com/
    Login: test@testing.com
    Pass: password

    Upon logging in, you'll see the weather forecast and notice you can change it.  Great... :)  Now navigate to:
    http://www.mytoyotapage.com/Portal.aspx

    You'll notice you can add and drag and remove widgets and re-navigating to the page maintains the positioning... but if you try to add a weather widget, you will notice that the Change Zipcode button doesn't work.

    Thanks,
    Mike
  7. Petya
    Admin
    Petya avatar
    869 posts

    Posted 19 Jun 2007 Link to this post

    Hello,

    It is extremely hard for us to determine the cause of your problem. We would require some running code that reproduces the issue so we can work on and try to provide a solution. If it absolutely impossible for you to create and send us a simplified version of your code reproducing the error, then please at least turn off the redirect to your custom error page so we can see the stack trace and try to figure out why this occurs. Looking forward to your reply.


    Best wishes,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. mikejoseph
    mikejoseph avatar
    16 posts
    Member since:
    Jan 2007

    Posted 20 Jun 2007 Link to this post

    Just to follow up for anyone following the thread -

    I provided Petya with some sample code through the support ticket threads.  Here's what I got in response.

    From: telerik
    Date: 6/20/2007 7:04:01 AM
    Hi Michael,

    Thank you for providing us with a simplified version of your code. Even simplified to this extend it is not of a small amount, so I hope that I am not missing something and the suggestion I will offer you to solve your problem will be an appropriate one.  Please, place an asp:updatepanel around all the content in WeatherBox.ascx. I hope you find this solution satisfactory.

    All the best,
    Petya
    the Telerik team


     
    From: mikejoseph
    Date: 6/20/2007 10:18:46 AM
    Thanks so much, Petya...

    I love it when the solution is simple, though it makes me feel like a big dummy I've banged my head for so long on it!

    Thanks again,

    Mike
  9. mikejoseph
    mikejoseph avatar
    16 posts
    Member since:
    Jan 2007

    Posted 20 Jun 2007 Link to this post

    Hey Jon Hobbs,

    You ever get yours working?

    MJ
  10. Tulika
    Tulika avatar
    15 posts
    Member since:
    Aug 2007

    Posted 08 Jun 2009 Link to this post

    Hi,

    I'm working on 'MyPortalWithDB.zip' project. While running this application fetching error:

    No parameterless constructor defined for type of 'System.String'.

    Server Error in '/MyPortalWithDB' Application.

    No parameterless constructor defined for type of 'System.String'.

    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.MissingMethodException: No parameterless constructor defined for type of 'System.String'.

    Source Error:

    Line 47:                     if (!string.IsNullOrEmpty(serializedState))
    Line 48:                     {
    Line 49:                         DockState state = DockState.Deserialize(serializedState);
    Line 50:                         _currentDockStates.Add(state);
    Line 51:                     }

    Source File: e:\Rad Download\MyPortalWithDB\MyPortal.aspx.cs    Line: 49

    Stack Trace:

    [MissingMethodException: No parameterless constructor defined for type of 'System.String'.]
       System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer) +2133
       System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer) +95
       System.Web.Script.Serialization.ObjectConverter.ConvertObjectToType(Object o, Type type, JavaScriptSerializer serializer) +267
       System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer) +1680
       System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer) +95
       System.Web.Script.Serialization.ObjectConverter.ConvertObjectToType(Object o, Type type, JavaScriptSerializer serializer) +267
       System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) +209
       System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(String input) +106
       Telerik.Web.UI.DockState.Deserialize(String input) in C:\Work\ControlSources\Telerik.Web.UI\Dock\DockState.cs:259
       MyPortal.get_CurrentDockStates() in e:\Rad Download\MyPortalWithDB\MyPortal.aspx.cs:49
       MyPortal.Page_Init(Object sender, EventArgs e) in e:\Rad Download\MyPortalWithDB\MyPortal.aspx.cs:129
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +37
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +91
       System.Web.UI.Control.OnInit(EventArgs e) +128
       System.Web.UI.Page.OnInit(EventArgs e) +36
       System.Web.UI.Control.InitRecursive(Control namingContainer) +535
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2039
    


    Kindly advice for the same.
  11. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 09 Jun 2009 Link to this post

    I searched through forums and I found something similar which is resolved by changing method to use ByVal  instead of ByRef.
    Hope this helps.
  12. ctca
    ctca avatar
    8 posts
    Member since:
    Aug 2009

    Posted 06 Feb 2010 Link to this post

    The link that is provided about the sticky (http://www.telerik.com/community/forums/thread/b311D-mkttd.aspx) just gives a server error.

    Does anyone know where I can find that thread or know of a place that has a working example of how to store user persistence in a database for rad docks like the original poster is talking about?
  13. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 09 Feb 2010 Link to this post

    Hello vipergtsrz,

    The following examples from our Code Library demonstrate how to dynamically create RadDock controls and save their state in a DataBase:



    All the best,
    Pero
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  14. ctca
    ctca avatar
    8 posts
    Member since:
    Aug 2009

    Posted 09 Feb 2010 Link to this post

    Thank you very much for getting back to me. This helps a lot.
Back to Top