Asp.Net site is working on local but is not working on server (iis 7)

  1. #1

    Asp.Net site is working on local but is not working on server (iis 7)

    Ext tools don't seem. I see white page.

    My web.config:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    	<configSections>
    		<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    			<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    				<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
    				<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    					<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
    					<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
    					<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
    					<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
    				</sectionGroup>
    			</sectionGroup>
    		</sectionGroup>
        <section name="urlrewritingnet" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
        <section name="extnet" type="Ext.Net.GlobalConfig" requirePermission="false" />
    	</configSections>
      <urlrewritingnet rewriteOnlyVirtualUrls="true" contextItemsPrefix="QueryString" defaultPage="default.aspx" defaultProvider="RegEx" xmlns="http://www.urlrewriting.net/schemas/config/2006/07">
        <rewrites>
          <add name="Menu" virtualUrl="^~/(.*).aspx" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/Default.aspx?m=$1" ignoreCase="true" />
        </rewrites>
      </urlrewritingnet>
      <appSettings>
        <add key="ConnectionStringLocal" value="Data Source=.;Initial Catalog=db;Integrated Security=True" />
        <add key="ConnectionString" value="Data Source=192.168.1.2;Initial Catalog=db;Integrated Security=True" />
        <add key="ConnectionStringPersonel" value="Data Source=192.168.1.2;Initial Catalog=db2;Integrated Security=True" />
      </appSettings>
    	<connectionStrings />
    	<system.web>
    		<compilation debug="true">
    			<assemblies>
    				<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    				<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    				<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    				<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    			</assemblies>
    		</compilation>
    		<authentication mode="Windows" />
        <identity impersonate="true" userName="domain\username" password="pass"/>
        <authorization>
          <allow users="*" />
        </authorization>
        <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
    		<pages>
    			<controls>
    				<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    				<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add tagPrefix="ext" namespace="Ext.Net" assembly="Ext.Net" />
    			</controls>
    		</pages>
    		<httpHandlers>
    			<remove verb="*" path="*.asmx" />
    			<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    			<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    			<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
          <add verb="*" path="*/ext.axd" type="Ext.Net.ResourceHandler" validate="false" />
    		</httpHandlers>
    		<httpModules>
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
    			<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="DirectRequestModule" type="Ext.Net.DirectRequestModule, Ext.Net" />
    		</httpModules>
    	</system.web>
    	<system.codedom>
    		<compilers>
    			<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    				<providerOption name="CompilerVersion" value="v3.5" />
    				<providerOption name="WarnAsError" value="false" />
    			</compiler>
    			<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    				<providerOption name="CompilerVersion" value="v3.5" />
    				<providerOption name="OptionInfer" value="true" />
    				<providerOption name="WarnAsError" value="false" />
    			</compiler>
    		</compilers>
    	</system.codedom>
    	<system.webServer>
    		<validation validateIntegratedModeConfiguration="false" />
    		<modules>
    			<remove name="ScriptModule" />
    			<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
          <add name="DirectRequestModule" preCondition="managedHandler" type="Ext.Net.DirectRequestModule, Ext.Net" />
    		</modules>
    		<handlers>
    			<remove name="WebServiceHandlerFactory-Integrated" />
    			<remove name="ScriptHandlerFactory" />
    			<remove name="ScriptHandlerFactoryAppServices" />
    			<remove name="ScriptResource" />
    			<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    			<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    			<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
          <add name="DirectRequestHandler" verb="*" path="*/ext.axd" preCondition="integratedMode" type="Ext.Net.ResourceHandler" />
    		</handlers>
    	</system.webServer>
    	<runtime>
    		<assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
    			<dependentAssembly>
    				<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
    				<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
    			</dependentAssembly>
    			<dependentAssembly>
    				<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
    				<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
    			</dependentAssembly>
    		</assemblyBinding>
    	</runtime>
    </configuration>
    My User Control:
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="TalepIstek.ascx.cs" Inherits="Forms_TalepIstek" %>
    <%@ Register Src="~/Controls/SagMenu.ascx" TagName="ucSagMenu" TagPrefix="ucSagMenu" %>
    <script type="text/javascript">
        var fnKullanildi = function (value, metadata, record, rowIndex, colIndex, store) {
            var deger = "";
            if (record.data.Kullanildi == true)
                deger = "Evet";
            else if (record.data.Kullanildi == false)
                deger = "Hayır";
            return deger;
        };
        var fnTalepDurumu = function (value, metadata, record, rowIndex, colIndex, store) {
            var deger = ""; // handler= "return (value == 1) ? 'İzin' : 'İptal'"
            if (record.data.TalepDurumu == "1")
                deger = "İzin";
            else if (record.data.TalepDurumu == "0")
                deger = "İptal";
            return deger;
        };
        var fnOnayDurumu = function (value, metadata, record, rowIndex, colIndex, store) {
            var deger = "";
            if (record.data.OnayDurumu == "R")
                deger = "<span style='color: Red;'>Red</span>";
            else if (record.data.OnayDurumu == "K")
                deger = "<span style='color: Green;'>Kabul</span>";
            else if (record.data.OnayDurumu == null)
                deger = "<span style='color: Blue;'>Onayda</span>";
            return deger;
        };
    </script>
    <div id="center">
        <div id="welcome">
            <h1>
                İzin Talebi</h1>
            <p>
                İzin talep formunu doldurmanız gerekmektedir.</p>
            <div>
                <ext:Store runat="server" ID="strIzinTip">
                    <Reader>
                        <ext:JsonReader IDProperty="IzinTipID">
                            <Fields>
                                <ext:RecordField Name="IzinTipID" />
                                <ext:RecordField Name="IzinTipAdi" />
                                <ext:RecordField Name="ToplamSure" />
                            </Fields>
                        </ext:JsonReader>
                    </Reader>
                </ext:Store>
                <ext:FormPanel ID="pnlTalep" runat="server" FormGroup="true" Padding="5" MonitorValid="true"
                    Layout="Form">
                    <Items>
                        <ext:TableLayout ID="TableLayout1" runat="server" Columns="2">
                            <Cells>
                                <ext:Cell>
                                    <ext:ComboBox ID="cbxIzinTip" runat="server" FieldLabel="İzin Tipi" AllowBlank="false"
                                        BlankText="Bu alanı boş bırakamazsınız!" TypeAhead="true" Mode="Local" StoreID="strIzinTip"
                                        ValueField="IzinTipID" DisplayField="IzinTipAdi" ForceSelection="true" TriggerAction="All"
                                        EmptyText="Seçiniz" Width="354">
                                        <DirectEvents>
                                            <Select OnEvent="ItemSelected">
                                                <EventMask ShowMask="true" Msg="Yükleniyor" Target="Parent" RemoveMask="false" />
                                            </Select>
                                        </DirectEvents>
                                    </ext:ComboBox>
                                </ext:Cell>
                                <ext:Cell>
                                    <ext:Label ID="lblKalanSure" runat="server" Text="">
                                    </ext:Label>
                                </ext:Cell>
                                <ext:Cell>
                                    <ext:DateField ID="dfBaslangicTarihi" runat="server" FieldLabel="Başlama Tarihi"
                                        Width="354" AllowBlank="false" BlankText="Bu alanı boş bırakamazsınız!" Vtype="daterange"
                                        InvalidText="Yanlış tarih formatı girdiniz!" EndDateField="dfBitisTarihi">
                                    </ext:DateField>
                                </ext:Cell>
                                <ext:Cell>
                                    <ext:TimeField ID="tfBaslangic" runat="server" MinTime="9:00" MaxTime="18:00" Increment="30"
                                        SelectedTime="09:00" Format="HH:mm" FieldLabel="Saat" LabelWidth="40" Width="120" />
                                </ext:Cell>
                                <ext:Cell>
                                    <ext:DateField ID="dfBitisTarihi" runat="server" FieldLabel="Bitiş Tarihi" Width="354"
                                        AllowBlank="false" BlankText="Bu alanı boş bırakamazsınız!" Vtype="daterange"
                                        InvalidText="Yanlış tarih formatı girdiniz!">
                                        <CustomConfig>
                                            <ext:ConfigItem Name="startDateField" Value="#{dfBaslangicTarihi}" Mode="Value" />
                                        </CustomConfig>
                                    </ext:DateField>
                                </ext:Cell>
                                <ext:Cell>
                                    <ext:TimeField ID="tfBitis" runat="server" MinTime="9:00" MaxTime="18:00" Increment="30"
                                        SelectedTime="17:30" Format="HH:mm" FieldLabel="Saat" LabelWidth="40" Width="120" />
                                </ext:Cell>
                                <ext:Cell ColSpan="2">
                                    <ext:TextArea ID="tbxAciklama" runat="server" FieldLabel="Açıklama" Width="500" Height="100" />
                                </ext:Cell>
                                <ext:Cell ColSpan="2">
                                    <ext:TextArea ID="tbxAciklamaOnay" runat="server" FieldLabel="İşlem Açıklaması" Width="500"
                                        Height="100" ReadOnly="true" />
                                </ext:Cell>
                                <ext:Cell ColSpan="2">
                                    <ext:Label ID="lblUyari" runat="server" Text="" Hidden="true" Cls="red">
                                    </ext:Label>
                                </ext:Cell>
                            </Cells>
                        </ext:TableLayout>
                    </Items>
                    <Buttons>
                        <ext:Button ID="btnSave" runat="server" Text="Onaya Gönder" Icon="Disk">
                            <DirectEvents>
                                <Click OnEvent="Save" Failure="Ext.MessageBox.alert('Hata', 'Beklenmeyen bir hata oluştu');">
                                    <EventMask ShowMask="true" Msg="Kaydediliyor" />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                    </Buttons>
                    <Listeners>
                        <ClientValidation Handler="#{btnSave}.setDisabled(!valid);" />
                    </Listeners>
                </ext:FormPanel>
                <ext:FormPanel ID="pnlTalepList" runat="server" FormGroup="true" Padding="5" MonitorValid="true"
                    Layout="Form">
                    <Items>
                        <ext:GridPanel ID="gpTalep" runat="server" Title="Talep Listesi" StripeRows="true"
                            TrackMouseOver="true" Width="600" Height="350" AutoExpandColumn="BaslangicTarihi">
                            <Store>
                                <ext:Store ID="strTalep" runat="server" OnRefreshData="store_RefreshData">
                                    <Reader>
                                        <ext:JsonReader IDProperty="TalepID">
                                            <Fields>
                                                <ext:RecordField Name="TalepID" Type="Int" />
                                                <ext:RecordField Name="BaslangicTarihi" Type="Date" />
                                                <ext:RecordField Name="BitisTarihi" Type="Date" />
                                                <ext:RecordField Name="TalepDurumu" />
                                                <ext:RecordField Name="OnayDurumu" />
                                                <ext:RecordField Name="Kullanildi" />
                                            </Fields>
                                        </ext:JsonReader>
                                    </Reader>
                                </ext:Store>
                            </Store>
                            <ColumnModel ID="ColumnModel1" runat="server">
                                <Columns>
                                    <ext:DateColumn Header="Baslangic Tarihi" DataIndex="BaslangicTarihi" Format="dd.MM.yyyy HH:mm" />
                                    <ext:DateColumn Header="Bitis Tarihi" DataIndex="BitisTarihi" Format="dd.MM.yyyy HH:mm" />
                                    <ext:Column Header="Talep Durumu" DataIndex="TalepDurumu">
                                        <Renderer Fn="fnTalepDurumu" />
                                    </ext:Column>
                                    <ext:Column Header="Kullanildi" DataIndex="Kullanildi">
                                        <Renderer Fn="fnKullanildi" />
                                    </ext:Column>
                                    <ext:Column Header="Onay Durumu" DataIndex="OnayDurumu">
                                        <Renderer Fn="fnOnayDurumu" />
                                    </ext:Column>
                                    <ext:CommandColumn Width="35">
                                        <Commands>
                                            <ext:GridCommand Icon="NoteEdit" CommandName="Edit">
                                                <ToolTip Text="İşlem" />
                                            </ext:GridCommand>
                                        </Commands>
                                    </ext:CommandColumn>
                                </Columns>
                            </ColumnModel>
                            <SelectionModel>
                                <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true" />
                            </SelectionModel>
                            <BottomBar>
                                <ext:PagingToolbar ID="PagingToolBar1" runat="server" StoreID="strTalep" PageSize="50"
                                    DisplayInfo="true" DisplayMsg="Görüntülenen: {0} - {1} Toplam kayıt: {2}" />
                            </BottomBar>
                            <Listeners>
                                <Command Handler="if(command == 'Edit') { #{DirectMethods}.ShowDetail(#{gpTalep}.getStore().getAt(rowIndex).id);}
            if(command == 'Delete') { #{DirectMethods}.ShowDetail(#{gpTalep}.getStore().getAt(rowIndex).id);}
            " />
                            </Listeners>
                            <LoadMask ShowMask="true" />
                        </ext:GridPanel>
                    </Items>
                </ext:FormPanel>
                <ext:Hidden ID="hfTalepDurumu" runat="server">
                </ext:Hidden>
                <ext:Hidden ID="hfTalepID" runat="server">
                </ext:Hidden>
            </div>
            <p style="clear: both" />
        </div>
    </div>
    <ucSagMenu:ucSagMenu ID="ucSagMenu" runat="server" />
    My Default.aspx:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    
    <%@ Register Src="~/Controls/Header.ascx" TagName="ucHeader" TagPrefix="ucHeader" %>
    <%@ Register Src="~/Controls/Footer.ascx" TagName="ucFooter" TagPrefix="ucFooter" %>
    <%@ Register Src="~/Controls/UstMenu.ascx" TagName="ucUstMenu" TagPrefix="ucUstMenu" %>
    <%@ Register Src="~/Controls/Banner.ascx" TagName="ucBanner" TagPrefix="ucBanner" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>DuIzin</title>
        <ucHeader:ucHeader ID="ucHeader" runat="server" />
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="rmDefault" runat="server" Locale="tr-TR">
        </ext:ResourceManager>
        <div id="wrapper">
            <div id="bg">
                <ucBanner:ucBanner ID="ucBanner" runat="server" />
                <div id="page">
                    <div id="container">
                        <!-- horizontal navigation -->
                        <ucUstMenu:ucUstMenu ID="ucUstMenu" runat="server" />
                        <!-- end horizontal navigation -->
                        <!--  content -->
                        <div id="content">
                            <asp:PlaceHolder ID="phMain" runat="server"></asp:PlaceHolder>
                            <div class="clear" style="height: 40px">
                            </div>
                        </div>
                        <!-- end content -->
                    </div>
                    <!-- end container -->
                </div>
                <ucFooter:ucFooter ID="ucFooter" runat="server" />
            </div>
        </div>
        </form>
    </body>
    </html>
  2. #2
    Hi,

    Please use Fiddler or Firebug to detrmine status and response from server for resource requests (ext.axd or webresource.axd)
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Quote Originally Posted by Vladimir View Post
    Hi,

    Please use Fiddler or Firebug to detrmine status and response from server for resource requests (ext.axd or webresource.axd)
    Thank you for your help. All the problem is my fault. I made something wrong in the code.

Similar Threads

  1. [CLOSED] Webservice treeloader in the IIS server not working
    By mirwais in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 20, 2012, 12:49 PM
  2. Replies: 2
    Last Post: May 23, 2011, 11:45 AM
  3. Replies: 4
    Last Post: Mar 04, 2011, 3:36 PM
  4. Site isn't working on IE6
    By arenazl in forum Bugs
    Replies: 3
    Last Post: Oct 02, 2009, 11:16 AM
  5. store databind from server not working
    By Devworks in forum 1.x Help
    Replies: 11
    Last Post: Feb 06, 2009, 12:14 PM

Posting Permissions