Where in the web.config file does the data directory code go?

Last post 08-26-2007, 1:14 PM by coolvibe. 5 replies.
Sort Posts: Previous Next
  •  08-11-2007, 11:55 PM 32397

    Where in the web.config file does the data directory code go?

    Can you tell me which lines this should go between or can I simply put it at the bottom of the web.config file?

    thanks

      <appSettings>
      ...
       <add key="CuteChat.DataDirectory" value="DesktopModules/CuteSoft_Client/CuteChat" />
      </appSettings>

  •  08-15-2007, 1:42 PM 32512 in reply to 32397

    Re: Where in the web.config file does the data directory code go?

    This is an example:
     
    <?xml version="1.0"?>
    <configuration>
     <appSettings>
      <add key="ConnectionString" value="server=(local)\portal;database=SamplePortal;uid=test;pwd=test"/>  
       <add key="CuteChat.DataDirectory" value="DesktopModules/CuteSoft_Client/CuteChat" />
     </appSettings>
     <system.web>
      <compilation defaultLanguage="c#" debug="true"/>
        <customErrors mode="Off"/>
        <authentication mode="Forms">
       <forms name=".UserManagementASPXAUTH" loginUrl="~/Login.aspx"/>
      </authentication>
      <authorization>
       <allow users="*"/>
      </authorization>
      <trace enabled="true"></trace>
      <sessionState mode="InProc" timeout="20"/>
      <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
      <xhtmlConformance mode="Legacy"/></system.web>
    </configuration>
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-25-2007, 4:08 PM 32890 in reply to 32512

    Re: Where in the web.config file does the data directory code go?

    I added this to the web.config for my community server 2007 installation.
     
    Now, after changing the directory name the lobby avatar is a red x (bad path) and also the messenger link in the top right corner does not work anymore.
     
    <%="<"%><%="script"%><%=" src='"%><%=ResolveUrl("~/CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx")%><%="'"%><%=">"%><%="<"%><%="/script"%><%=">"%>
     
    This was the problem for the messenger link.
     
    <nobr><asp:Image ImageUrl="~/CuteSoft_client/CuteChat/Images/50-home.gif" align="center" runat="server" id="Image1" />
     
    This was the problem in the Chat.aspx causing the lobby img to not show up.
     
    There is actually many other places you will need to change hard coding.
  •  08-26-2007, 10:56 AM 32902 in reply to 32890

    Re: Where in the web.config file does the data directory code go?

    Logicwrath,
     
    It's not necessary to change the web.config file when integrating with Community Server.
     
    Please check the following detailed intructions for CS integration:

    http://cutesoft.net/ASP.NET+Chat/Deployment/Community-Server-2007/Deployment.htm
     
     
    Keep me posted
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-26-2007, 11:33 AM 32904 in reply to 32512

    Re: Where in the web.config file does the data directory code go?

    Thanks Adam!
  •  08-26-2007, 1:14 PM 32907 in reply to 32902

    Re: Where in the web.config file does the data directory code go?

    Like this?

        <!-- Host Header to remove from URL so "www.mydomain.com/johndoe/Default.aspx" is treated as "www.mydomain.com/Default.aspx" -->
        <add key="RemoveAngleBrackets" value="false" />
        <!--optionally strip angle brackets on public login and registration screens-->
        <add key="PersistentCookieTimeout" value="0" />
        <!--use as persistent cookie expiration. Value is in minutes, and only active if a non-zero figure-->
        <add key="InstallationDate" value="6/11/2007" />
        <add key="CuteChat.DataDirectory" value="DesktopModules/CuteSoft_Client/CuteChat" />
      </appSettings>
      </appSettings>
      <system.codedom>
        <compilers>
          <compiler language="vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".VB" />
        </compilers>
      </system.codedom>
      <system.web>

View as RSS news feed in XML