New Job Day20 Tuesday

Source: Internet
Author: User
Tags connectionstrings

In the afternoon, a feature in the project is stripped out, a demo is packaged and a callable library is encapsulated, a task that is useful for familiarity with the system. Do not want to copy all the things and then delete the change, to the minimum code to complete, so that you know which part is what role.

1, the Company's UI framework for pop-ups and dialog boxes are dialog, there is a problem, in the pop-up form, click OK to Dialog.alert () display the prompt message, and then use Dialog.close to close the pop-up window. As a result it close the alert () dialog box just now ... Can only dialog.close turn off the pop-up form, and then Dialog.alert popup Success dialog box ...

2, the beginning of the project hint System.Web.Mvc.ajax, such as the web search, to put the referenced SYSTEM.WEB.MVC "Properties", "Copy to local" to true

3, other projects in the Web. config, there are <add key= "webpages:enabled" value= "true"/>, this item, this value is false, change to True will be error, do not know why ...

Search, webpages seems to be able to directly open the cshtml, but these projects should be the same, IIS is the same configuration, night to find the reason, it may be not transplanted well.

Configuration Error Description: An error occurred while processing the configuration file required to service the request. Please check the specific error details below and modify the configuration file as appropriate. Parser Error message: The connection name "LocalSqlServer" is not found in the application configuration or the connection string is empty. SOURCE Error: Line 244:<Membership>Line 245:<providers>Line 246:<Addname= "AspNetSqlMembershipProvider"type= "System.Web.Security.SqlMembershipProvider, system.web, version=4.0.0.0, Culture=neutral, publickeytoken= B03F5F7F11D50A3A "connectionStringName= "LocalSqlServer"enablePasswordRetrieval= "false"enablePasswordReset= "true"requiresQuestionAndAnswer= "true"ApplicationName="/"requiresUniqueEmail= "false"Passwordformat= "Hashed"maxinvalidpasswordattempts= "5"minRequiredPasswordLength= "7"minRequiredNonalphanumericCharacters= "1"passwordAttemptWindow= "Ten"passwordstrengthregularexpression=""/>Line 247:</providers>Line 248:</Membership>source file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config line: 246

====================

 <  connectionstrings  >  <  clear  />  <  add  name  = "xxx"   connectionString  Span style= "color: #0000ff;" >= "Data source=xxx;initial catalog=xxx; User id=xxx; password=xxx; "  ProviderName  = "System.Data.SqlClient"  />  </ connectionstrings  >  

Try it, the <clear/> comment in the Web. config is off. Webpages can be set to true. But questions still exist, and other projects have <clear/> why can they be used?

====================

<connectionStrings><Clear/><Addname= "LocalSqlServer"connectionString= "Data source=xxx;initial catalog=xxx; User id=xxx; password=xxx; "ProviderName= "System.Data.SqlClient" /><Addname= "XXX"connectionString= "Data source=xxx;initial catalog=xxx; User id=xxx; password=xxx; "ProviderName= "System.Data.SqlClient" /></connectionStrings>

It can also be normal if you add a localsqlserver connection string. But why not other projects?

====================

Online said add <clear/> can good, why I this situation is the opposite, add <clear/> instead of ...

<name= "AspNetSqlMembershipProvider"/>

But it is possible to use this sentence specifically (but not for <clear/>)

====================

Online has a variety of solutions, from the side of a random change can be used. It was a question that always bothered me and made me unable to get away. Why the other two items are normal, how to configure can, what true not true,clear not clear, have tried, completely do not affect, why this project is not? What's so special about it ... Afternoon toss for at least an hour, at night at home also toss so long ...

Listen to the last two hours of "three bodies", the first one to hear. At first, it was a bit of a drag. About the "three-body" part of the game is very exciting, three people in the harsh environment of a shower of fire reborn to civilization. The last few chapters what a few dimensions, it is too much to pull ...

The evening originally listens to the earphone, the eye may rest, but lies in the bed, the eye seems still very painful ...

New Job Day20 Tuesday

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.