• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            道。道。道

            安全特性不等于安全的特性

               :: 首頁 :: 聯系 :: 聚合  :: 管理

            常用鏈接

            搜索

            •  

            最新評論

            SYMPTOMS

            An unhandled exception may occur under the following circumstances:
            An ASP.NET worker process (Aspnet_wp.exe) runs under the default ASPNET account.
            -and-
            You do not enable impersonation on that application.

            -and-
            You try to connect to or write to an Access database.
            Under these circumstances, you may receive one of the following exceptions:
            The Microsoft Jet database engine cannot open the file 'C:\Nwind.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
            Operation must use an updateable query.


            CAUSE

            Because of security concerns, the ASP.NET worker process runs under the default ASPNET account. If you do not enable impersonation for an application, all of the threads that run the requests for that application run under the process account.

            This problem occurs because the ASPNET account does not have sufficient permissions to connect to or write to an Access database.


            RESOLUTION

            To work around this problem, use one of the following methods:
            Configure the ASP.NET worker process to run under the SYSTEM account in the <processModel> section of the Machine.config file.
            For security reasons, Microsoft recommends that you enable impersonation on your ASP.NET application. This method works if the impersonated user has necessary permissions to the computer and the database that you are accessing.
            Grant read and write permissions for the "Everyone" group on the database and the database folder. This method is not safe; therefore, Microsoft does not recommend this method.


            STATUS

            This behavior is by design.


            MORE INFORMATION

            When you need unlimited users, full-time support, and ACID transactions, Microsoft strongly recommends that you use Microsoft SQL Server with Microsoft Internet Information Services (IIS). Although Microsoft Active Server Pages (ASP) works with any OLE DB-compliant or ODBC-compliant database, IIS has been extensively tested. IIS is designed to work with Microsoft SQL Server on high transaction traffic and with unlimited users, which can occur in an Internet scenario.

            Note "ACID" is an acronym for the four properties of transaction-processing systems: Atomicity, Consistency, Isolation, Durability.

            ASP supports the use of the Microsoft Jet database engine as a valid data source. However, Microsoft ODBC Driver for Access and Microsoft OLE DB Provider for Jet are not intended for use with high-stress, high-concurrency, full-time server applications (such as Web applications, commerce applications, transactional applications, messaging servers, and so on).


            Steps to reproduce the behavior

            1. Create a new ASP.NET Web Application project in Microsoft Visual C# .NET.
            2. Add the following code to the "Declaration" section of your Web Form, which appears at the top of the Code window:
            using System.Data.OleDb;					
            3. Add the following code to the Page_Load event:
                String myConn  ="Provider=Microsoft.JET.OLEDB.4.0;Data Source=C:\\Nwind.mdb;";
            String myQuery = "Insert into Customers(CustomerID,CompanyName) Values ('aaaaa', 'aaaaa')";

            OleDbConnection cn = new OleDbConnection(myConn);
            cn.Open();
            OleDbCommand cmd = new OleDbCommand(myQuery, cn);
            cmd.ExecuteNonQuery();
            cn.close();
            4. Modify the connection string as appropriate for your environment.
            5. Compile the project.
            6. View WebForm1.aspx in your browser. Notice that you receive one of the above-mentioned exceptions.


            REFERENCES

            For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
            306590 (http://support.microsoft.com/kb/306590/) ASP.NET security overview
            307626 (http://support.microsoft.com/kb/307626/) ASP.NET configuration overview
            For more information about the <processModel> section, visit the following Microsoft Developer Network (MSDN) Web site:
            <processModel> Section
            http://msdn2.microsoft.com/en-us/library/7w2sway1(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/7w2sway1(vs.71).aspx)



            APPLIES TO
            Microsoft ADO.NET 2.0
            Microsoft ADO.NET 1.0
            Microsoft ASP.NET 1.0
            Microsoft Access 2002 Standard Edition
            Microsoft Access 2000 Standard Edition
            Microsoft Office FrontPage 2003


            Keywords: 
            kbtshoot kberrmsg kbnofix kbprb kbsystemdata KB316675


            posted on 2007-11-26 09:32 獨孤九劍 閱讀(414) 評論(0)  編輯 收藏 引用 所屬分類: Learn articles
            久久青青草原精品国产软件| 久久久综合九色合综国产| 久久夜色精品国产亚洲av| 国产精品久久久久免费a∨| 久久精品国产亚洲av麻豆小说| 久久久久久a亚洲欧洲aⅴ| 久久人人爽人人爽AV片| 97精品国产97久久久久久免费 | 久久精品国产99国产精偷| 久久久久久国产精品无码下载| 久久婷婷午色综合夜啪| 免费国产99久久久香蕉| 亚洲va久久久久| 国产精品gz久久久| 久久99国产综合精品免费| 日日狠狠久久偷偷色综合免费| 一本色道久久88加勒比—综合| 精品久久久久久久久免费影院| 久久91综合国产91久久精品| 模特私拍国产精品久久| 久久97久久97精品免视看| 国产亚洲精品美女久久久| 少妇高潮惨叫久久久久久| 欧美亚洲另类久久综合婷婷| 精品久久久久久久久午夜福利| 一本色综合久久| 亚洲?V乱码久久精品蜜桃| 久久国产精品二国产精品| 99久久精品费精品国产| 日韩欧美亚洲综合久久影院d3| 国产精品久久午夜夜伦鲁鲁| 看久久久久久a级毛片| 久久久久久人妻无码| 人人狠狠综合久久88成人| 久久人人妻人人爽人人爽| 奇米影视7777久久精品| 亚洲AV日韩精品久久久久久久| 久久婷婷五月综合色奶水99啪| 久久久久久久久波多野高潮| 亚洲色欲久久久综合网东京热| 一本一本久久a久久综合精品蜜桃 一本一道久久综合狠狠老 |