我创建了一个Web服务,当我在Visual Studio中运行它时运行正常。但是当我将它上传到IIS并尝试从那里运行时,我收到以下错误:
var Game1 = ["name", "image", "genre"]
var Game2 = ["name2", "image2", "genre2"]
var Game3 = ["name3", "image3", "genre3"]
var games = [Game1, Game2, Game3]
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:
The source code that generated this unhandled exception can only be shown
when compiled in debug mode. To enable this, please follow one of the below
steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
Stackoverflow希望我提供更多细节,但我不知道还能说些什么。 我知道有重复,但网站通过视觉工作室和浏览器运行良好。所以我不知道它引用的是什么引用?