VS tangled Release and one-click website Release

Source: Internet
Author: User

This article is not about any knowledge point, but about the problems encountered during the development process. I hope you can understand what you will know. II. Record it yourself and study it later.

To be honest, this problem has been resolved several times, and it cannot be solved every time. It is handled in another way.

First, I use Ibatisnet to access the database. I think I am familiar with this, but some problems cannot be solved!

I. debugging and Release are generated differently. debugging reports different errors. It seems that there is a problem with the parameters passed by Ibatisnet, so that I can write different SQL statements based on different parameters.

After the Release of Release, is there still a common error of not instantiating objects? Debug is no problem! I don't know where the problem is.

 

 

Ii. Publishing websites. Microsoft's one-click release is always unsuccessful. An error is reported, either the object is not instantiated, or the Castle container cannot be instantiated, however, copying the entire project directly to IIS is okay, but the premise is that the project has been compiled in Debug, and an error is returned even if the entire project is copied in Release.

For example:

The ResultMap of the next object Poster of Ibatisnet is configured as follows:

<ResultMap class = "Poster" id = "Poster. ResultPoster">

<Result property = "Id" column = "Id"/>

<Result property = "_ GoodsInfo. GoodsName" column = "GoodsName"/>

</ResultMap>

The _ GoodsInfo object is an attribute under Detail and has been instantiated;

However

<Select id = "Poster. SelectRelevance" resultMap = "Poster. ResultPoster" parameterClass = "Poster">

After this resultMap is specified, if the object contains the _ GoodsInfo object and is a one-click release by Microsoft, an error is returned. Only after this project is generated can it be copied to the IIS directory. Otherwise, the object reference is not set to the object instance!

I still haven't gotten it out for one night. If you have time to study it, which of the following problems has occurred? Hope you can give me some advice!

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.