Enterprise Platform Project Learning Summary 1-problems and solutions

Source: Internet
Author: User

Webpage Error:

<%@ application codebehind="Global.asax.cs" inherits= " Servicemvc.mvcapplication" language="C # %>


1. Workaround:
In Service code client line 10th
Public servicemvcclient (System.String serveraddress, NRails.Service.IRequestSerializer serializer = null, NRails.Net.IProto proto = null)
belonged to Servicemvcclient, where serveraddress was not clear
Configuration additions

<add key="serveraddress" value="127.0.0.1:7132" / >

Like if Physicalcardclient serveraddress unclear.

is added

<add key="physicalcardaddress" value="121.40.112.218:7154 " />

 

2. Can only enter the number of settings
onkeyup="value=value.replace (/[^\d]/g, ')" onbeforepaste=" Clipboarddata.setdata (' Text ', Clipboarddata.getdata (' text '). Replace (/[^\d]/g, ")"

3. Modified page data cannot be read (displayed): Re-run after deleting old database data

4. Unable to add new row data, or added but not displayed.

Workaround:

Impl Remove if (user==null) Else{return 1;} See NService1 in detail.
Creates a new problem, the page cannot display the added data, but the database is logged.
Workaround:
First: Eqmlist Missing in controller
Second: the appsettings in Web. config is missing the corresponding key (for the page does not display the problem, the specific key is not clear?) )
The third type: Multiple data display script data in sequence, the array statements do not have such as debug and other irrelevant content. (This is joke!)


5.ViewBag "non-existent" problem:

Workaround:

Preferred, update Microsoft.Asp.Net.MVC, update this, will accompany update webpages and other versions

Unload project, edit, Reload project.

View the corresponding version in the Web. config within the project and modify it in the Web. config in view.

Note that there are two Web. config, which mainly control the following data:

System.Web.MvcSystem.Web.WebPages.Razorwebpages:VersionSystem.Web.WebPages

6. Login button does not respond/Remember password failed/Edit save failed (this problem can be extended to many similar events):

Workaround: Most of the script in the function and the front page function in the parameter does not have one by one corresponding to the proposed multi-use lookup.


7. AD list error, pending resolution
8. SMS verification error, pending resolution

9. Unable to save the problem after creation:

Workaround: After debugging, it is found that the controller if-else the condition statement to judge the error problem.

10.toexcelcard.js has not been indexed to Systemajaxcenter.js

Workaround: Modify _references.js, add all JS associations

11. When browsing the Web site on IIS, a failure to write to the output file "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP. files\root\106f9ae8\ Cc0e1

Workaround 1: The usual workaround: Because the temp directory under the system directory does not have the appropriate permissions, do the following:c:\windows\temp--> properties---safe----Add Network The read and write permissions of the service user can be resolved.

Workaround 2: Open Server System C drive, open window, right-click Temp Property Security Edit Add Iis_iusrs user Control permission to add modify and Write permissions. This is the solution for Windows Server R2 Standard Edition SP1 64-bit Chinese version. (Mine is the problem. This solves, the network service above does not have the line)

Note: IIS related see http://msdn.microsoft.com/zh-cn/library/aa751852.aspx

12. Browsing Web site on IIS, style invalidation, F12 view content found CSS code is empty

Workaround: Error in reference path in BundleConfig.cs, also note that reference path must use relative path ~

13. Security Transparent Method "WebMatrix.WebData.PreApplicationStartCode.Start ()" Attempt to access Ann ... The error

Workaround:

Install-package Microsoft.AspNet.WebPages.WebData

Install-package Microsoft.AspNet.WebPages.Data

14. Unable to connect to MySQL database, generate form failed, page cannot log in after run, etc.

Workaround: Modify the type Adomysql, the connection string code in Web. config is still the same

    <add name="defaultconnection" connectionstring="Data source= (LocalDb) \ V11.0;initial catalog=aspnet-servicemvc-20150716165429;integrated Security=sspi; attachdbfilename=| Datadirectory|\aspnet-servicemvc-20150716165429.mdf" providername="  System.Data.SqlClient" />  

15. Repeatedly encountered the page Save button did not respond, error onclick, addcontentconfig, JS script, etc.

Solution: From a few aspects, see JS about the saved code in the URL is consistent with the controller, the parameters and data whether the corresponding, or cshtml code in the savexxxcontent in the parameters and the first two corresponding. In addition, the controller saves parameters can also be judged. In short, the source of the error to deal with.

16. Many times the page saved successfully but not displayed

Workaround: Follow question 15 to troubleshoot, or page Js-url/data/type/datatype, or to troubleshoot the method implementation, or to set Layout = null.

17. Script modification Run, repeatedly refresh the discovery code or the old version of the

Solution 1: Browser caching issues.

18. Account Admin Card Traffic Management-Details query error system.indexoutofrangeexception out of the exception

Workaround: There are many similar problems, many of the parameters of a method in the script do not have one by one corresponding. In general, when troubleshooting, you can view the source code Console in the Web page F12.

19. Multiple encounters list does not display, this time protypelist the list does not display

Workaround: After repeated verification, found that the error is hidden domain Viewbag.companyid is not defined in the Controller

20. Error in the remote address of a certain

WORKAROUND: General Service not enabled

21: Data storage failed, # # # #

WORKAROUND: Troubleshoot whether the required IDs between the page and the corresponding script correspond

Enterprise Platform Project Learning Summary 1-problems and solutions

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.