Home > Net >  When asp.net website, "released encounters an error, the object reference not set to an instanc
When asp.net website, "released encounters an error, the object reference not set to an instanc

Time:11-26

Did IT bosses help see what reason

CodePudding user response:

Compile time all have no problem,,,,

CodePudding user response:

Can't read

CodePudding user response:

See the log try, there is a path

CodePudding user response:

Regenerated solution, it is estimated that there will be a specific error message, also can see that specify the location of the log

CodePudding user response:

Look at the logs,
Since compiled no problem that could be released component problem,

CodePudding user response:

I look at the error log files, suggest the
System. NullReferenceException: the object reference not set to an instance of an object,
In Microsoft. VisualStudio. ApplicationCapabilities. Publish. Web. WebPublishRequirements. WebPublishPersistence. GetAllProfileIds ()
In Microsoft. VisualStudio. ApplicationCapabilities. Publish. The ViewModel. ProfileSelectorViewModel. The Initialize ()
In Microsoft. VisualStudio. ApplicationCapabilities. Publish. The Provider. DefaultPublishTabProvider. CreateViewAsync (IVsHierarchy project, IAsyncServiceProvider serviceProvider, CancellationToken CancellationToken)
In Microsoft. VisualStudio. ApplicationCapabilities. Publish. The Provider. ManagedPublishProvider. & lt; CreateViewAsync> D__3. MoveNext ()
===================

CodePudding user response:

But don't know what reason

CodePudding user response:

reference 5 floor is nu month god reply:
see log first,
Since compiled no problem that could be released component problem,

And no matter what web page, a little bit released will pop up the question

CodePudding user response:

Run in administrator mode VS

CodePudding user response:

refer to 7th floor SKY862390450 response:
but I don't know why


Release folder will give permission

CodePudding user response:

The solution
Program to compile, than the code itself, I built a Web application again, didn't write any code, click on the issue is still the same mistakes, search a lot of methods, including VS add new functionality, change directory, or the same problems,

Final solution is to open the Visual Studio Installer, click more to repair, to install VS repair, repair after restart the computer, open again, can be released,

Possible reasons for
Dissemination of web applications, using VS and IIS is released, I is to download the VS first, and then open the IIS service, may make. The.net framework is not complete, also cause errors when released,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Copyright statement: this article to CSDN blogger (sanjin boy) of the original articles, follow BY CC 4.0 - SA the copyright agreement, reproduced and this statement, please attach the original source link
The original link: https://blog.csdn.net/lingjiaxin/article/details/104843463

CodePudding user response:

https://blog.csdn.net/weixin_38286173/article/details/80341917
Link to see yourself! Estimates that you have a place to write the Model no
  • Related