Problem with deploying new web site, works in dev not when deployed

Discussion in 'General troubleshooting' started by NickD, Nov 29, 2011.

  1. Hi, I am fairly new at this and am having a problem deploying my web site (ASP.net with some AJAX components) and have been going mad trying to find an explanation.

    Generally everything works with one exception, the pages that are using the AJAX HTMLEditor are not working when reading / updating / deleting from an MS Access database. I have other AJAX controls on the pages (Such as calendar extender) which appear to be working properly.

    I have 2 test environments both running IIS 7 and both work as they should. The Visual Studio2010 development testing also works correctly.

    I suspect that the problem lies in the IIS configuration or web.config settings.

    Any help would be appreciated, I have been looking for answers for a few days and am fast approaching insanity...

    Thanks in advance.
     
  2. I neglected to mention that forms with textbox controls (not HTMLEditor) all update the database as they should. The issue is only with the pages that use the HTLMEditor controls.

    This is the web.config that currently works on my test server using IIS 7.

    <?xml version="1.0" encoding="UTF-8"?>

    <configuration>
    <connectionStrings>
    <remove name="LocalSqlServer" />
    <add name="CI1ConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|CI1.mdb"
    providerName="System.Data.OleDb" />
    <add name="AppCtlConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|CI1AppCtl.mdb"
    providerName="System.Data.OleDb" />
    <add name="SurveyConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|CI1Surveys.mdb"
    providerName="System.Data.OleDb" />
    <add name="LogFileConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|CI1SystemLogs.mdb"
    providerName="System.Data.OleDb" />
    </connectionStrings>

    <system.web>
    <httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="" />
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" validateRequest="false"
    enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="false" >
    <controls>
    <add tagPrefix="asp" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
    </controls>
    </pages>
    <httpModules>
    <add name="EOWebRuntime" type="EO.Web.Runtime,EO.Web"/>
    </httpModules>
    <httpHandlers>
    </httpHandlers>

    <sessionState mode="InProc" timeout="120" />

    <identity impersonate="false" />
    <trust level="Full" />
    <customErrors defaultRedirect="CTL_Problem.aspx" />
    <compilation batch="true" batchTimeout="900" debug="true" defaultLanguage="c#" explicit="true" numRecompilesBeforeAppRestart="15" strict="false" targetFramework="4.0">
    <assemblies>
    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    </assemblies>
    </compilation>
    <globalization culture="en-AU" enableClientBasedCulture="true" uiCulture="en-AU" />
    </system.web>

    <system.net>
    <mailSettings>
    <smtp>
    <network defaultCredentials="true" host="localhost" />
    </smtp>
    </mailSettings>
    </system.net>

    <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true" />
    <defaultDocument>
    <files>
    <clear />
    <add value="default.aspx" />
    <add value="index.aspx" />
    </files>
    </defaultDocument>
    </system.webServer>

    <location path="Styles/Site.css">
    <system.web>
    <authorization>
    <allow users="*" />
    </authorization>
    </system.web>
    </location>
    <location path="data">
    <system.web>
    <authorization>
    <deny users="?" />
    </authorization>
    </system.web>
    </location>
    <location path="functions">
    <system.web>
    <authorization>
    <deny users="?" />
    </authorization>
    </system.web>
    </location>
    </configuration>
     
  3. Resolved! the issues are all around resource utilisation. Upgraded the site subscription to Max and everything is working now!
     
  4. Glad you got it worked out.
     
  5. Ajax

    Does this mean I have to upgrade my Basic plan in order to use AJAX in my site???
     
  6. Elshadriel

    Elshadriel Winhost Staff

    Hello Negra,

    I think it depends more on how you code the site and how large it is. For example, if you develop a single page, you shouldn't have any trouble using AJAX.
     

Share This Page