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\studionotarilefusco.com\RedirectOldLink.aspx.vb    Line: 40

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +36
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +52
   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\studionotarilefusco.com\RedirectOldLink.aspx.vb:40
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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