RE: first web application and cs0016

Discussion in 'ASP .Net' started by John Soulis [MSFT], Apr 1, 2004.

  1. First run aspnet_regiis -i from this folder at a command prompt.
    c:\WINDOWS\Microsoft.NET\Framework
    \v1.1.4322. If this does not correct the issue. Download filemon from
    www.sysinternals.com. Run filemon and then reproduce the error. Then look
    for an access denied in the filemon log. The easiest way to do this is to
    save the log file and load it into Excel. Then you can sort on the columns.
    This could tell you what process trying to access that folder and being
    denied. Then you will know what process will need permissions to the
    folder. My guess is it is the aspnet_wp.exe process.
    Thank you,
    John Soulis
    Microsoft, ASP.NET

    This posting is provided "AS IS", with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/cpyright.htm
     
    John Soulis [MSFT], Apr 1, 2004
    #1
    1. Advertising

  2. RE: first web application and cs0016 (long)

    (John Soulis [MSFT]) wrote in
    news:eek::

    > First run aspnet_regiis -i from this folder at a command prompt.
    > c:\WINDOWS\Microsoft.NET\Framework
    > \v1.1.4322. If this does not correct the issue.


    Nope, this didn't work.
    >Download filemon
    > from www.sysinternals.com. Run filemon and then reproduce the error.
    > Then look for an access denied in the filemon log. The easiest way to
    > do this is to save the log file and load it into Excel. Then you can
    > sort on the columns. This could tell you what process trying to access
    > that folder and being denied. Then you will know what process will
    > need permissions to the folder. My guess is it is the aspnet_wp.exe
    > process.
    >


    I stopped the iis service, deleted the temporary internet files
    directory, rebooted the machine, started filemon, then vs and tried to
    run my web application. Then I stopped debugging and examined the log
    file. I found several access denied instances:
    inetinfo.exe:1840 IRP_MJ_CREATE C:\WINDOWS\TEMP\ ACCESS DENIED
    TONKA\IUSR_TONKA
    inetinfo.exe:1840 IRP_MJ_CREATE C:\WINDOWS\TEMP\ ACCESS DENIED
    TONKA\IUSR_TONKA
    inetinfo.exe:1840 IRP_MJ_CREATE C:\WINDOWS\TEMP\ ACCESS DENIED
    TONKA\IUSR_TONKA
    inetinfo.exe:1840 IRP_MJ_CREATE C:\WINDOWS\TEMP\ ACCESS DENIED
    TONKA\IUSR_TONKA
    aspnet_wp.exe:2176 IRP_MJ_CREATE C:\WINDOWS\T18ELRY5BIOU17EL
    ACCESS DENIED TONKA\ASPNET
    aspnet_wp.exe:2176 IRP_MJ_CREATE C:\Documents and Settings\TONKA
    \ASPNET\Local Settings\Application Data\ApplicationHistory
    \aspnet_wp.exe.bf16b455.ini.inuse ACCESS DENIED TONKA\ASPNET
    aspnet_wp.exe:2176 IRP_MJ_CREATE C:\Documents and Settings\TONKA
    \ASPNET\Local Settings\Application Data\ApplicationHistory
    \b065eec7.bf16b455.ini.inuse ACCESS DENIED TONKA\ASPNET
    csc.exe:2228 IRP_MJ_CREATE C:\DOCUME~1\TONKA\ASPNET\LOCALS~1
    \Temp\RES3.tmp ACCESS DENIED TONKA\ASPNET
    aspnet_wp.exe:2176 IRP_MJ_CREATE C:\Documents and Settings\TONKA
    \ASPNET\Local Settings\Application Data\ApplicationHistory
    \b065eec7.bf16b455.ini.inuse ACCESS DENIED TONKA\ASPNET
    csc.exe:2392 IRP_MJ_CREATE C:\DOCUME~1\TONKA\ASPNET\LOCALS~1
    \Temp\RES7.tmp ACCESS DENIED TONKA\ASPNET


    I see that inetinfo and aspnet_wp.exe seem to have problems. Now, what do
    I do about them? I've seen lots of references to giving processes
    permissions, but I can't figure out how to do that. Inetinfo is running
    as system, and aspnew_wp.exe is running as ASPNet.

    The particular file that the compiler is complaining about not being able
    to create is referenced several times with different extensions, and all
    with a status of success. I've clipped the file paths but included all of
    the accesses here:

    aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.0.cs
    aspnet_wp.exe:2176 IRP_MJ_WRITE ..\hwc3fn7y.0.cs
    aspnet_wp.exe:2176 IRP_MJ_CLEANUP ..\hwc3fn7y.0.cs
    aspnet_wp.exe:2176 IRP_MJ_CLOSE ..\hwc3fn7y.0.cs
    csc.exe:2392 IRP_MJ_CREATE ..\hwc3fn7y.0.cs
    csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.0.cs
    csc.exe:2392 IRP_MJ_READ ..\hwc3fn7y.0.cs
    csc.exe:2392 IRP_MJ_CLEANUP ..\hwc3fn7y.0.cs
    csc.exe:2392 IRP_MJ_CLOSE ..\hwc3fn7y.0.cs
    aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.cmdline
    aspnet_wp.exe:2176 IRP_MJ_WRITE ..\hwc3fn7y.cmdline
    aspnet_wp.exe:2176 IRP_MJ_CLEANUP ..\hwc3fn7y.cmdline
    aspnet_wp.exe:2176 IRP_MJ_CLOSE ..\hwc3fn7y.cmdline
    csc.exe:2392 IRP_MJ_CREATE ..\hwc3fn7y.cmdline
    csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.cmdline
    csc.exe:2392 IRP_MJ_READ ..\hwc3fn7y.cmdline
    csc.exe:2392 IRP_MJ_CLEANUP ..\hwc3fn7y.cmdline
    csc.exe:2392 IRP_MJ_CLOSE ..\hwc3fn7y.cmdline
    aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.dll
    aspnet_wp.exe:2176 IRP_MJ_CLEANUP ..\hwc3fn7y.dll
    aspnet_wp.exe:2176 IRP_MJ_CLOSE ..\hwc3fn7y.dll
    aspnet_wp.exe:2176 FASTIO_QUERY_OPEN ..\hwc3fn7y.dll
    aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.dll
    aspnet_wp.exe:2176 IRP_MJ_QUERY_INFORMATION ..\hwc3fn7y.dll
    aspnet_wp.exe:2176 IRP_MJ_SET_INFORMATION ..\hwc3fn7y.dll
    aspnet_wp.exe:2176 IRP_MJ_CLEANUP ..\hwc3fn7y.dll
    aspnet_wp.exe:2176 IRP_MJ_CLOSE ..\hwc3fn7y.dll
    aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.err
    csc.exe:2392 IRP_MJ_CLEANUP ..\hwc3fn7y.err
    csc.exe:2392 IRP_MJ_CLOSE ..\hwc3fn7y.err
    aspnet_wp.exe:2176 FASTIO_READ ..\hwc3fn7y.out
    aspnet_wp.exe:2176 FASTIO_READ ..\hwc3fn7y.out
    aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.out
    aspnet_wp.exe:2176 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.out
    aspnet_wp.exe:2176 IRP_MJ_WRITE ..\hwc3fn7y.out
    csc.exe:2392 FASTIO_WRITE ..\hwc3fn7y.out
    csc.exe:2392 IRP_MJ_CLEANUP ..\hwc3fn7y.out
    csc.exe:2392 IRP_MJ_CLOSE ..\hwc3fn7y.out
    aspnet_wp.exe:2176 IRP_MJ_CREATE ..\hwc3fn7y.out
    aspnet_wp.exe:2176 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.out
    aspnet_wp.exe:2176 IRP_MJ_READ ..\hwc3fn7y.out
    aspnet_wp.exe:2176 IRP_MJ_CLEANUP ..\hwc3fn7y.out
    aspnet_wp.exe:2176 IRP_MJ_CLOSE ..\hwc3fn7y.out
    csc.exe:2392 IRP_MJ_CREATE ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_CREATE ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_SET_INFORMATION ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_SET_INFORMATION ..\hwc3fn7y.pdb
    csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
    csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_READ* ..\hwc3fn7y.pdb
    System:4 IRP_MJ_QUERY_INFORMATION ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_WRITE* ..\hwc3fn7y.pdb
    csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_WRITE* ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_WRITE* ..\hwc3fn7y.pdb
    csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
    csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
    csc.exe:2392 FASTIO_QUERY_STANDARD_INFO ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_WRITE* ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_SET_INFORMATION ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_SET_INFORMATION ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_CLEANUP ..\hwc3fn7y.pdb
    csc.exe:2392 IRP_MJ_CLOSE ..\hwc3fn7y.pdb


    I know this is a long post, but hopefully some useful information is in
    there somewhere!

    Thanks for any assistance.

    Marc
     
    Marc Pelletier, Apr 1, 2004
    #2
    1. Advertising

  3. RE: first web application and cs0016 (long)

    You will need to give these two accounts, IUSR_TONKA and ASPNet,
    permissions to the directories they are being denied acces to. You can do
    this by right click the folder and going to properties. Then click the
    security tab. Then click the add button. Add the account.
    It is the account that the aspnet_wp.exe and the inetinfo.exe processes run
    under that need to be granted access to the directories that they are being
    denied access to.
    I hope this helps.
    Regards,
    John Soulis
    Microsoft, ASP.NET

    This posting is provided "AS IS", with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/cpyright.htm
     
    John Soulis [MSFT], Apr 2, 2004
    #3
  4. RE: first web application and cs0016 (long)

    (John Soulis [MSFT]) wrote in
    news::

    > You will need to give these two accounts, IUSR_TONKA and ASPNet,
    > permissions to the directories they are being denied acces to. You
    > can do this by right click the folder and going to properties. Then
    > click the security tab. Then click the add button. Add the account.
    > It is the account that the aspnet_wp.exe and the inetinfo.exe
    > processes run under that need to be granted access to the directories
    > that they are being denied access to.
    >


    Thanks for this, John. But I really am feeling more out of the loop all the
    time. I am running xp pro and don't have a security tab under properties. I
    do have a sharing tab, but it doesn't work the way you describe either, and
    all of it is disabled because this directory is used by the operating
    system. We are well outside the scope of this newsgroup now, but thanks for
    any assistance with this all the same ;-)

    cheers

    Marc
     
    Marc Pelletier, Apr 2, 2004
    #4
  5. RE: first web application and cs0016 (long)

    This is caused by the "Simple File Sharing' option


    To change the option, follow these steps:
    Click START then CONTROL PANEL
    In Control panel, double-click the FOLDER OPTIONS icon
    Under the VIEW tab, scroll to the bottom of the ADVANCED SETTINGS
    Remove the check from the option labeled: USE SIMPLE FILE SHARING
    Click the OK button to save changes.

    ** NOTE: This setting cannot be changed on WinXP home systems. To change
    NTFS
    security settings in XP Home edition you must reboot in Windows safe mode
    and log
    in as the Administrator.

    Thank you,
    John Soulis
    Microsoft, ASP.NET

    This posting is provided "AS IS", with no warranties, and confers no rights.
    Use of included script samples are subject to the terms specified at
    http://www.microsoft.com/info/cpyright.htm
     
    John Soulis [MSFT], Apr 3, 2004
    #5
  6. RE: first web application and cs0016 (long)

    (John Soulis [MSFT]) wrote in
    news::

    > This is caused by the "Simple File Sharing' option
    >
    >
    > To change the option, follow these steps:
    > Click START then CONTROL PANEL
    > In Control panel, double-click the FOLDER OPTIONS icon
    > Under the VIEW tab, scroll to the bottom of the ADVANCED SETTINGS
    > Remove the check from the option labeled: USE SIMPLE FILE SHARING
    > Click the OK button to save changes.
    >
    >


    John,

    I'm in. Thank you very much. I gave the aspnet and iusr_Tonka user full
    control over the temporary asp.net files directory and that still didn't do
    it. So I went back and gave anyone else that seemed to make any sense full
    control, and that still didn't do it. Finally I gave everyone full control
    and it works. I know that isn't correct, but it works!

    I also noticed that aspnet user didn't have write ability on his own
    documents and settings directory, so I added that.

    Thanks again for the help.

    Marc Pelletier
     
    Marc Pelletier, Apr 4, 2004
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. FrzzMan[
    Replies:
    3
    Views:
    1,695
    FrzzMan[
    May 30, 2004
  2. Q. John Chen

    Sudden CS0016 Error

    Q. John Chen, Aug 10, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    432
    Q. John Chen
    Aug 10, 2004
  3. =?Utf-8?B?VmlrcmFt?=
    Replies:
    1
    Views:
    4,769
    Guest
    Jan 12, 2005
  4. =?Utf-8?B?RG91Z2xhcw==?=

    Compilation error (CS0016)

    =?Utf-8?B?RG91Z2xhcw==?=, Jan 18, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,317
    =?Utf-8?B?c2FyYQ==?=
    Jan 18, 2005
  5. =?Utf-8?B?Y3ljbG9wdGlj?=

    Yet another CS0016

    =?Utf-8?B?Y3ljbG9wdGlj?=, Feb 22, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    315
    =?Utf-8?B?Y3ljbG9wdGlj?=
    Feb 22, 2005
Loading...

Share This Page