当网站在localhost中运行良好时,它会在上传到在线服务器后发出异常 [英] When website works well in localhost it gives exception after upload to online server

查看:44
本文介绍了当网站在localhost中运行良好时,它会在上传到在线服务器后发出异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以指导我解决这个问题:

我的网站在localhost中工作正常。当我将文件上传到在线服务器时,它给出了例外:

Can anyone guide me to solve this:
My website works fine in localhost. When I upload files to online server it gives exception:

System.NullReferenceException: Object reference not set to an instance of an object.

推荐答案

您可能需要发布导致攻击的代码行。



一般来说,错误意味着实现了一个对象未初始化(首先创建/实例化)。
You may need to post the line of code which is causing the offence.

In general the error means that an object was implemented that was not initialised (created/instanced first).


这篇关于当网站在localhost中运行良好时,它会在上传到在线服务器后发出异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆