Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 88:             string s;
Line 89:             s = brand + " " + model;
Line 90:             if (!brand.Equals("") && !model.Equals(""))
Line 91:                 return s.Trim();
Line 92:             else if (!string.IsNullOrEmpty(brand))

Source File: d:\websites\mm\App_Code\BLL\Ad.cs    Line: 90

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Ad.get_Name() in d:\websites\mm\App_Code\BLL\Ad.cs:90
   ExportDetail.Page_Load(Object sender, EventArgs e) in d:\websites\mm\ExportDetail.aspx.cs:56
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +11900941
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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

Request Details

Session Id:cjnednidgiese20vjvwipeazRequest Type:GET
Time of Request:3/29/2024 4:26:05 PMStatus Code:500
Request Encoding:Unicode (UTF-8)Response Encoding:Unicode (UTF-8)

Trace Information

CategoryMessageFrom First(s)From Last(s)
aspx.pageBegin PreInit
aspx.pageEnd PreInit0,0000380,000038
aspx.pageBegin Init0,0000530,000015
aspx.pageEnd Init0,0010730,001020
aspx.pageBegin InitComplete0,0010950,000023
aspx.pageEnd InitComplete0,0011070,000011
aspx.pageBegin PreLoad0,0011170,000010
aspx.pageEnd PreLoad0,0011310,000013
aspx.pageBegin Load0,0011410,000010
Unhandled Execution Error
Object reference not set to an instance of an object.
  at Ad.get_Name() in d:\websites\mm\App_Code\BLL\Ad.cs:line 90
  at ExportDetail.Page_Load(Object sender, EventArgs e) in d:\websites\mm\ExportDetail.aspx.cs:line 56
  at System.Web.UI.Control.OnLoad(EventArgs e)
  at System.Web.UI.Control.LoadRecursive()
  at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
0,0187080,017567

Control Tree

Control UniqueIDTypeRender Size Bytes (including children)ViewState Size Bytes (excluding children)ControlState Size Bytes (excluding children)
__PageASP.exportdetail_aspx000
    ctl02System.Web.UI.LiteralControl000
    ctl00System.Web.UI.HtmlControls.HtmlHead000
        HeadScriptHolderSystem.Web.UI.WebControls.Literal000
        ctl01System.Web.UI.HtmlControls.HtmlTitle000
        customerStyleLinkSystem.Web.UI.HtmlControls.HtmlLink000
        ctl03System.Web.UI.LiteralControl000
    ctl04System.Web.UI.LiteralControl000
    form1System.Web.UI.HtmlControls.HtmlForm000
        ctl05System.Web.UI.ResourceBasedLiteralControl000
        adNameLitSystem.Web.UI.WebControls.Literal000
        ctl06System.Web.UI.LiteralControl000
        PrevButtonSystem.Web.UI.WebControls.LinkButton000
        ctl07System.Web.UI.LiteralControl000
        NextButtonSystem.Web.UI.WebControls.LinkButton000
        ctl08System.Web.UI.ResourceBasedLiteralControl000
        Repeater1System.Web.UI.WebControls.Repeater000
        ctl09System.Web.UI.ResourceBasedLiteralControl000
        PrintLinkSystem.Web.UI.WebControls.HyperLink000
        ctl10System.Web.UI.LiteralControl000
        TipLinkSystem.Web.UI.WebControls.LinkButton000
        ctl11System.Web.UI.LiteralControl000
        tipASP.controls_tipme_ascx000
            tip$MultiView1System.Web.UI.WebControls.MultiView0012
                tip$TipFormSystem.Web.UI.WebControls.View000
                    tip$ctl00System.Web.UI.LiteralControl000
                    tip$YourNameTextBoxSystem.Web.UI.WebControls.TextBox000
                    tip$ctl01System.Web.UI.LiteralControl000
                    tip$YourEmailTextBoxSystem.Web.UI.WebControls.TextBox000
                    tip$ctl02System.Web.UI.LiteralControl000
                    tip$RecNameTextBoxSystem.Web.UI.WebControls.TextBox000
                    tip$ctl03System.Web.UI.LiteralControl000
                    tip$RecEmailTextBoxSystem.Web.UI.WebControls.TextBox000
                    tip$ctl04System.Web.UI.LiteralControl000
                    tip$TipMessageTextBoxSystem.Web.UI.WebControls.TextBox000
                    tip$ctl05System.Web.UI.LiteralControl000
                    tip$ValidationSummary1Sample.Web.UI.Compatibility.ValidationSummary000
                    tip$RegularExpressionValidator2Sample.Web.UI.Compatibility.RegularExpressionValidator000
                    tip$RegularExpressionValidator1Sample.Web.UI.Compatibility.RegularExpressionValidator000
                    tip$ctl06System.Web.UI.LiteralControl000
                    tip$OkButtonTipMailSystem.Web.UI.WebControls.Button000
                    tip$ctl07System.Web.UI.LiteralControl000
                    tip$CancelButtonSystem.Web.UI.WebControls.Button000
                    tip$ctl08System.Web.UI.LiteralControl000
                tip$ConfirmTipFormSystem.Web.UI.WebControls.View000
                    tip$ctl09System.Web.UI.LiteralControl000
            tip$ctl10System.Web.UI.LiteralControl000
        ctl12System.Web.UI.ResourceBasedLiteralControl000
        MainImagePlaceHolderSystem.Web.UI.WebControls.PlaceHolder000
        ctl13System.Web.UI.LiteralControl000
        MiniImagePlaceHolderSystem.Web.UI.WebControls.PlaceHolder000
        ctl14System.Web.UI.ResourceBasedLiteralControl000
        locationNameLitSystem.Web.UI.WebControls.Literal000
        ctl15System.Web.UI.ResourceBasedLiteralControl000
        LocationRepeaterASP.controls_locationinfo_ascx000
            LocationRepeater$LocationRepeaterSystem.Web.UI.WebControls.Repeater000
            LocationRepeater$ctl00System.Web.UI.LiteralControl000
        ctl16System.Web.UI.ResourceBasedLiteralControl000
        LatestRepeaterSystem.Web.UI.WebControls.Repeater000
        ctl17System.Web.UI.LiteralControl000
        ShowAllAdsSystem.Web.UI.WebControls.HyperLink000
        ctl18System.Web.UI.ResourceBasedLiteralControl000
        ContactLitSystem.Web.UI.WebControls.Literal000
        ctl19System.Web.UI.LiteralControl000
        contactFormASP.controls_contactform_ascx000
            contactForm$ctl00System.Web.UI.LiteralControl000
            contactForm$ContactMultiViewSystem.Web.UI.WebControls.MultiView000
                contactForm$cFormSystem.Web.UI.WebControls.View000
                    contactForm$ctl01System.Web.UI.ResourceBasedLiteralControl000
                    contactForm$NamnTextBoxSystem.Web.UI.WebControls.TextBox000
                    contactForm$ctl02System.Web.UI.LiteralControl000
                    contactForm$TeleTextBoxSystem.Web.UI.WebControls.TextBox000
                    contactForm$ctl03System.Web.UI.LiteralControl000
                    contactForm$EpostTextBoxSystem.Web.UI.WebControls.TextBox000
                    contactForm$ctl04System.Web.UI.LiteralControl000
                    contactForm$ContactSendButtonSystem.Web.UI.WebControls.Button000
                    contactForm$ctl05System.Web.UI.LiteralControl000
                    contactForm$RegularExpressionValidator1Sample.Web.UI.Compatibility.RegularExpressionValidator000
                    contactForm$ctl06System.Web.UI.LiteralControl000
                    contactForm$RequiredFieldValidator2Sample.Web.UI.Compatibility.RequiredFieldValidator000
                    contactForm$ctl07System.Web.UI.LiteralControl000
                    contactForm$RequiredFieldValidator1Sample.Web.UI.Compatibility.RequiredFieldValidator000
                    contactForm$ctl08System.Web.UI.LiteralControl000
                    contactForm$MessageTextBoxSystem.Web.UI.WebControls.TextBox000
                    contactForm$ctl09System.Web.UI.LiteralControl000
                    contactForm$ValidationSummary1Sample.Web.UI.Compatibility.ValidationSummary000
                    contactForm$ctl10System.Web.UI.LiteralControl000
                contactForm$cConfirmSystem.Web.UI.WebControls.View000
                    contactForm$ctl11System.Web.UI.LiteralControl000
        ctl20System.Web.UI.LiteralControl000
        ResultASP.controls_exportsearchres_ascx000
            Result$Literal1System.Web.UI.WebControls.Literal000
            Result$ctl00System.Web.UI.LiteralControl000
            Result$SortOrderDDLSystem.Web.UI.WebControls.DropDownList000
            Result$ctl01System.Web.UI.LiteralControl000
            Result$ResultSystem.Web.UI.WebControls.Repeater000
            Result$ctl02System.Web.UI.LiteralControl000
            Result$SearchHitsLabelSystem.Web.UI.WebControls.Literal000
            Result$ctl03System.Web.UI.LiteralControl000
            Result$FirstLinkSystem.Web.UI.WebControls.HyperLink000
            Result$ctl04System.Web.UI.LiteralControl000
            Result$PrevLinkSystem.Web.UI.WebControls.HyperLink000
            Result$ctl05System.Web.UI.LiteralControl000
            Result$PagerSystem.Web.UI.WebControls.Repeater000
            Result$ctl06System.Web.UI.LiteralControl000
            Result$NextLinkSystem.Web.UI.WebControls.HyperLink000
            Result$ctl07System.Web.UI.LiteralControl000
            Result$LastLinkSystem.Web.UI.WebControls.HyperLink000
            Result$ctl08System.Web.UI.LiteralControl000
            Result$LinkButton2System.Web.UI.WebControls.Button000
            Result$ctl09System.Web.UI.LiteralControl000
            Result$CompareBtnSystem.Web.UI.WebControls.Button000
            Result$ctl10System.Web.UI.LiteralControl000
            Result$HiddenSearchGuidSystem.Web.UI.WebControls.HiddenField000
            Result$ctl11System.Web.UI.LiteralControl000
        ctl21System.Web.UI.LiteralControl000
    ctl22System.Web.UI.LiteralControl000

Session State

Session KeyTypeValue
siteSystem.Stringexport
searchGUIDSystem.String99b78feb-b8de-490d-8c65-ef3fb3044975

Application State

Application KeyTypeValue
paramNames25b3b44c-4c31-4536-ad8f-0cc38387cd07classlib.CommonDB+spGetParamNamesDataTablespGetParamNames
paramNamesclasslib.CommonDB+spGetParamNamesDataTablespGetParamNames
ModelsListSystem.Collections.Generic.List`1[System.String]System.Collections.Generic.List`1[System.String]
ModelUpdateSystem.DateTime2024-03-29 16:23:18
CustomersSystem.Data.DataViewSystem.Data.DataView
CustomersUpdateSystem.DateTime2024-03-29 16:23:19
JordbrukTreeXmlConvertXmlConvert
SkogTreeXmlConvertXmlConvert
EntreprenadTreeXmlConvertXmlConvert
CategoryUpdateSystem.DateTime2024-03-29 16:23:20
AreaNameListclasslib.CommonDB+spGetAreaNamesDataTablespGetAreaNames

Request Cookies Collection

NameValueSize

Response Cookies Collection

NameValueSize
ASP.NET_SessionIdcjnednidgiese20vjvwipeaz42

Headers Collection

NameValue
Accept*/*
Hostmaskinmarknaden.se
User-Agentclaudebot

Response Headers Collection

NameValue
X-AspNet-Version4.0.30319
Cache-Controlprivate
Content-Typetext/html

Form Collection

NameValue

Querystring Collection

NameValue
customerGUID09341546-53FD-4699-BE68-F423230A3147
adGUIDd0a37afd-ade4-4259-a334-befd0ace3f6f
dosearchy

Server Variables

NameValue
ALL_HTTPHTTP_ACCEPT:*/* HTTP_HOST:maskinmarknaden.se HTTP_USER_AGENT:claudebot
ALL_RAWAccept: */* Host: maskinmarknaden.se User-Agent: claudebot
APPL_MD_PATH/LM/W3SVC/2/ROOT
APPL_PHYSICAL_PATHD:\websites\mm\
AUTH_TYPE 
AUTH_USER 
AUTH_PASSWORD 
LOGON_USER 
REMOTE_USER 
CERT_COOKIE 
CERT_FLAGS 
CERT_ISSUER 
CERT_KEYSIZE 
CERT_SECRETKEYSIZE 
CERT_SERIALNUMBER 
CERT_SERVER_ISSUER 
CERT_SERVER_SUBJECT 
CERT_SUBJECT 
CONTENT_LENGTH0
CONTENT_TYPE 
GATEWAY_INTERFACECGI/1.1
HTTPSoff
HTTPS_KEYSIZE 
HTTPS_SECRETKEYSIZE 
HTTPS_SERVER_ISSUER 
HTTPS_SERVER_SUBJECT 
INSTANCE_ID2
INSTANCE_META_PATH/LM/W3SVC/2
LOCAL_ADDR10.1.0.27
PATH_INFO/ExportDetail.aspx
PATH_TRANSLATEDD:\websites\mm\ExportDetail.aspx
QUERY_STRINGcustomerGUID=09341546-53FD-4699-BE68-F423230A3147&adGUID=d0a37afd-ade4-4259-a334-befd0ace3f6f&dosearch=y
REMOTE_ADDR44.195.23.152
REMOTE_HOST44.195.23.152
REMOTE_PORT42166
REQUEST_METHODGET
SCRIPT_NAME/ExportDetail.aspx
SERVER_NAMEmaskinmarknaden.se
SERVER_PORT80
SERVER_PORT_SECURE0
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/8.5
URL/ExportDetail.aspx
HTTP_ACCEPT*/*
HTTP_HOSTmaskinmarknaden.se
HTTP_USER_AGENTclaudebot

Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3062.0