Server Error in '/' Application.

The given key was not present in the dictionary.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:


Line 38:       link = pagebl.CreaLinkToPagina(Request("idpagina"), lingua)
Line 39:     Else
Line 40:       link = pagebl.CreaLinkPaginaDaTipoPagina(UCase(nmwclass.tipologiaPagina(Request("idpagina"))), lingua)
Line 41:     End If
Line 42:     'Response.Write(baseurl & link)

Source File: E:\Inetpub\notaiomyweb.poundhost.com\studionotaiocalvelli.it\RedirectOldLink.aspx.vb    Line: 40

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +12974457
   OANOTAIClass.PagineBL.CreaLinkPaginaDaTipoPagina(String tipopagina, String lingua) in C:\Users\Marco Silletti\source\Workspaces\NotaioMyWeb\Produzione\Main\OANOTAIClass\PagineBL.vb:133
   RedirectOldLink.Page_Load(Object sender, EventArgs e) in E:\Inetpub\notaiomyweb.poundhost.com\studionotaiocalvelli.it\RedirectOldLink.aspx.vb:40
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0