Problems in setting membership in Asp.net beta2

Source: Internet
Author: User
1. Modify the membership data source
The default data source of Asp.net is sqlexpress. You certainly want to change it to the SQL data source you want.
My change is in
Create an aspnetdb name control database first
C: \ windows \ Microsoft. NET \ framework \ v2.0.50215 \ config \ machine. config
The connectionstrings section of is changed to the desired data source. Note that changing aspnetdb to other data will be abnormal.
<Connectionstrings>
<Add name = "localsqlserver" connectionstring = "Data Source =.; Integrated Security = sspi; database = aspnetdb; pooling = true" providername = "system. Data. sqlclient"/>
</Connectionstrings>
Then run c: \ windows \ Microsoft. NET \ framework \ v2.0.50215 \ aspnet_regsql.exe
Configure

2. registration fails. A different password is always prompted.
Because beta2 starts to use a strong password, you can use a strong password. If you do not know what a strong password is, Google will be used.

I still don't know how to remove this item. Please let me know.

3. There is a vulnerability in stmp configuration beta2. When an error occurs during execution, the information is
Compiler error message: cs0246: the type or namespace name
'Mailsettingssection 'cocould not be found (Are you missing a using ctive ve
Or an Assembly reference ?)

Line 45:
Line 46: configuration Config = openwebconfiguration (apppath );
Line 47: mailsettingssection netsmtpmailsection =
(Mailsettingssection) config. getsection ("system.net/mailsettings ");
Line 48:
Line 49: servernametextbox. Text =
Netsmtpmailsection. SMTP. Network. Host;

Source file:
F: \ windows \ Microsoft. NET \ framework \ v2.0.50215 \ ASP. netwebadminfiles \ appconfig
\ Smtpsettings. aspx line: 47
In fact, there are two statements in this file: mailsettingssection netsmtpmailsection =
(Mailsettingssection) config. getsection ("system.net/mailsettings ");
Line: 47,101
Must be changed

Mailsettingssectiongroup netsmtpmailsection = (mailsettingssectiongroup) config. getsectiongroup ("system.net/mailsettings ");

OK, solved. VS 2005 is powerful, but bugs... Too many, hehe

4. Test SMTP sending to inform users of password errors
Mailbox unavailable. The server response was: 5.7.1 unable to relay
I don't know what the reason is. I guess it was treated as spam, so I
<Mailsettings>
<SMTP>
<Network host = "pop.163.com" Password = "*****" username = "*****"
From = "sczjxt@163.com"/>
</SMTP>
</Mailsettings>
But the error type is different,
Finally, I used SMTP on another edong.com.

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.