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.