hi again,
i created a new web site to ensure what is my web sites problem while copying from my old pages to new one.
i created web config, master pages, css and our user controls and i have tested each other.
when i create global.asax and configure to my old that i used routing i receive error above.
i dont know why. please advise me something to resolve it.
thank you
my global file is configured like below.
<%@ Application Language="VB" %>
<%@ import Namespace="System.web.routing" %>
<script runat="server">
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application startup
SaveRoots(RouteTable.Routes)
End Sub
Sub Application_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application shutdown
End Sub
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a new session is started
End Sub
Sub SaveRoots(ByVal routes As RouteCollection)
' routes.MapPageRoute("indexRoute", "{sayfaNo}", "~/index.aspx", True)
' routes.MapPageRoute("sektorSayfaNoRoute", "Sektor/{seoktorSayfaNo}", "~/sektor.aspx", True)
routes.MapPageRoute("bultenRoute", "Haber/{seoBaslik}", "~/basinBulteni.aspx", True)
routes.MapPageRoute("etiketRoute", "Haberler/{seoEtiket}", "~/etiket.aspx", True)
routes.MapPageRoute("firmaRoute", "{seoFirma}", "~/firma.aspx", True)
routes.MapPageRoute("fuarFirmaRoute", "Yapi-Fuari/{seofuarFirma}", "~/fuar.aspx", True)
routes.MapPageRoute("sektorRoute", "Sektor/{seoSektor}", "~/sektor.aspx", True)
routes.MapPageRoute("yapiFirmalariSeoSektorRoute", "Sektor-Firmalari/{yfSeoSektor}", "~/yapiFirma.aspx", True)
routes.MapPageRoute("rssRoute", "RSS/{rssSektorSeo}", "~/Rss/yapi-sektorleri-rss.aspx", True)
routes.MapPageRoute("firmaRSSRoute", "Firma-RSS/{rssFirmaSeo}", "~/Rss/yapi-firmalari-rss.aspx", True)
End Sub
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when a session ends.
' Note: The Session_End event is raised only when the sessionstate mode
' is set to InProc in the Web.config file. If session mode is set to StateServer
' or SQLServer, the event is not raised.
End Sub
</script>