MSDN > フォーラム ホーム > Phoenix > error BC31019: Unable to write to output file
質問する質問する
 

質問error BC31019: Unable to write to output file

  • 2009年6月2日 3:54J.Star ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     
    I've recently installed Visual Studio on my computer for school and after completing my first tutorial I receive this error-


    There were build errors.  Would you like to continue and run the last successful build? Yes No

    Error    1    Unable to write to output file 'AppPath\WindowsApplication1.exe': Access is denied.     WindowsApplication1


    Well the problem is that I only ran an empty form as per the tutorial.  This is what I get from output

    ------ Build started: Project: WindowsApplication1, Configuration: Debug Any CPU ------
    C:\Windows\Microsoft.NET\Framework\v3.5\Vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Drawing,System.Diagnostics,System.Windows.Forms /optioncompare:Binary /optionexplicit+ /optionstrict:custom /nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 /optioninfer+ /rootnamespace:WindowsApplication1 /doc:obj\Debug\WindowsApplication1.xml /define:"CONFIG=\"Debug\",DEBUG=-1,TRACE=-1,_MyType=\"WindowsForms\",PLATFORM=\"AnyCPU\"" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /main:WindowsApplication1.My.MyApplication /debug+ /debug:full /filealign:512 /out:obj\Debug\WindowsApplication1.exe /resource:obj\Debug\WindowsApplication1.Resources.resources /target:winexe Form1.vb Form1.Designer.vb "My Project\AssemblyInfo.vb" "My Project\Application.Designer.vb" "My Project\Resources.Designer.vb" "My Project\Settings.Designer.vb"
    vbc : error BC31019: Unable to write to output file 'C:\AppPath\WindowsApplication1\obj\Debug\WindowsApplication1.exe': Access is denied.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    In addition whenever I click on any help it tells me that I do not have document explorer installed, but it is.


    So I restarted my computer in safemode and ran visual studio 2008 and it ran like a charm everything worked beautifully.  So now I guess my question is what could be causing this problem in normal windows and how can I fix it?

    Running on Vista home premium if that makes a difference at all.

すべての返信