none
alt klasörde projemin çalışması için ne yapmalıyım? RRS feed

  • Soru

  • merhaba

    root da yani "/"   da bir projem var sorunsuz çalışıyor bunu copy/paste olarak bir klasör içinde yine çalıştırmak istiyorum ama

    sunucuda şu aşağıdaki hatayı alıyorum.

    "/eng/"

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. ulaşılamıyor yok diyor sanırım görmüyor.

    sebebi ne olabilir? klasörde sorunsuz çalıştıılamazmı?

    web.config sadece ana dizinde "/" da var

    <?xml version="1.0"?>
    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=152368
      -->
    <configuration>
      <appSettings>
        <add key="ChartImageHandler" value="storage=memory;timeout=20;url=~/tempimagefiles/;" />
      </appSettings>
      <connectionStrings>
        <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" />
        <add name="BakanlikConnectionString" connectionString="Data Source=126.45.136.61;Initial Catalog=bakanlik;Integrated Security=True" />
      </connectionStrings>
      <system.web>
        <httpRuntime maxRequestLength="40960" executionTimeout="3600" requestValidationMode="2.0" />
        <globalization uiCulture="af-ZA" culture="tr-TR" requestEncoding="ISO-8859-9" responseEncoding="ISO-8859-9" fileEncoding="ISO-8859-9" />
        <customErrors mode="Off" />
        <httpHandlers>
          <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
        </httpHandlers>
        <pages buffer="true" enableEventValidation="false" clientIDMode="Static">
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          </controls>
        </pages>
        <compilation debug="true" targetFramework="4.0" defaultLanguage="c#">
          <assemblies>
            <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
            <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>
        <authentication mode="Forms">
          <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
        </authentication>
        <membership>
          <providers>
            <clear />
            <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
          </providers>
        </membership>
        <profile>
          <providers>
            <clear />
            <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
          </providers>
        </profile>
        <roleManager enabled="false">
          <providers>
            <clear />
            <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
            <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
          </providers>
        </roleManager>
      </system.web>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
        <handlers>
          <remove name="ChartImageHandler" />
          <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        </handlers>
      </system.webServer>
      <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
      </system.webServer>
    </configuration>

    birde global.asax la urller var.

    <%@ Application Language="C#" %>
    <%@ Import Namespace="System.Web.Routing" %>
    
    <script runat="server">
    
        void Application_Start(object sender, EventArgs e) 
        {
            // Code that runs on application startup
            RoutingAyarlari(RouteTable.Routes);
        }
    
        void RoutingAyarlari(RouteCollection routes)
        {
            routes.MapPageRoute("haberdetay", "{Baslik}_ilani_{HaberId}.html", "~/ilandetay.aspx");
            routes.MapPageRoute("urundetay", "{kat_isim}_urunu_{kat_id}.html", "~/UrunDetay.aspx");
            routes.MapPageRoute("sayfadetay", "{Baslik}_Sayfasi_{SayfaId}.html", "~/eng/detaysayfasi.aspx");
    		routes.MapPageRoute("sertifikagoster", "{Adi}_sertifikagoster_{OgrenciID}.html", "~/SertifikaGoster.aspx");
            routes.MapPageRoute("ensertifikagoster", "{Adi}_bakanlikensertifikagoster_{OgrenciID}.html", "~/enSertifikaGoster.aspx");
            routes.MapPageRoute("resimdetay", "{Baslik}_resmi_{SayfaId}.html", "~/Default35.aspx");
            routes.MapPageRoute("kategori", "kategori_{KategoriAdi}_{KategoriId}.html", "~/ResimKategori.aspx");
            routes.MapPageRoute("sayfakategori", "sayfakategori_{KategoriAdi}_{SayfaKategoriId}.html", "~/Default34.aspx");
            routes.MapPageRoute("aramasayfasi", "{str}_sonuclari.html", "~/SertifikaAra.aspx");
            routes.MapPageRoute("yazidetay", "{yazi}_yazisi_{YaziId}.html", "~/YaziDetay.aspx");
            routes.MapPageRoute("fotogaleri", "fotogaleri.html", "~/FotoGaleri.aspx");
        }
        
        void Application_End(object sender, EventArgs e) 
        {
            //  Code that runs on application shutdown
    
        }
            
        void Application_Error(object sender, EventArgs e) 
        { 
            // Code that runs when an unhandled error occurs
    
        }
    
        void Session_Start(object sender, EventArgs e)
        {
            Application.Lock();
    
            Application["OnlineUsers"] = Convert.ToInt32(Application["OnlineUsers"]) + 1;
    
            Application.UnLock();
        }
    
        void Session_End(object sender, EventArgs e)
        {
            Application.Lock();
    
            Application["OnlineUsers"] = Convert.ToInt32(Application["OnlineUsers"]) - 1;
    
            Application.UnLock();
    
    
           // Response.Write(Request.PhysicalApplicationPath);
        } 
           
    </script>


    • Düzenleyen EEymen 21 Aralık 2014 Pazar 12:47
    21 Aralık 2014 Pazar 12:46

Yanıtlar

Tüm Yanıtlar