May have found the solution for Cassini problem

Last post 08-27-2007, 5:03 PM by fredd. 1 replies.
Sort Posts: Previous Next
  •  08-27-2007, 4:37 PM 32960

    May have found the solution for Cassini problem

    Hi Adam,
     
    I played around with this issue and narrowed it down to the LoadControl command. Did some Googling and came across http://forums.asp.net/t/871572.aspx which describes a similar problem.
     
    Here's the situation: tag.aspx tries to load the control using:
     
          Control ctrl=LoadControl("Tag//"+tabcontrol); 
     
    This doesn't sit well with Cassini (or other non-IE web servers) which needs an expanded path, like this:
     
          Control ctrl = LoadControl("~/Cutesoft_Client/CuteEditor/Dialogs/Tag/" + tabcontrol);
     
    That would be fine and an easy fix, but we've renamed the Cutesoft_Client folder as "c_client" and the subfolder as "ce" and have defined that in FilesPath, so it needs to be like this:
     
          Control ctrl = LoadControl("~/c_client/ce/Dialogs/Tag/" + tabcontrol);
     
    BTW, it has to be single forward slash, not double...
     
    How can we modify tag.aspx to use the FilesPath property?
     
    FredD
     
  •  08-27-2007, 5:03 PM 32963 in reply to 32960

    Re: May have found the solution for Cassini problem

    Hi Adam,
     
    There appears to be an even simpler solution: replace the double forward slash with a single..
     
    Modify tag.aspx from:
     
       Control ctrl=LoadControl("Tag//"+tabcontrol); 
     
    to
     
       Control ctrl=LoadControl("Tag/"+tabcontrol); 
     
    This appears to work in Cassini and IIS, online and local, in Firefox and IE.
     
    Why do you have the double forward slash anyway? Do you have it in other code locations?
     
    FredD
View as RSS news feed in XML