Solved

error when i try to run my .net application

Posted on 2010-09-02
6
708 Views
Last Modified: 2013-11-27
C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:bin\Debug\FileNet.Api.dll /reference:"C:\Program Files\Microsoft WSE\v3.0\Microsoft.Web.Services3.dll" /reference:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\System.Data.dll" /reference:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll" /reference:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\System.dll" /reference:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll" /reference:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll" /reference:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll" /debug+ /debug:full /optimize- /out:obj\Debug\CESample.exe /resource:obj\Debug\CESample.AdhocQueryForm.resources /resource:obj\Debug\CESample.CreateCompoundDocForm.resources /resource:obj\Debug\CESample.CreateCustomObjectForm.resources /resource:obj\Debug\CESample.CreateDocForm.resources /resource:obj\Debug\CESample.CreateFolderForm.resources /resource:obj\Debug\CESample.GetCompoundDocForm.resources /resource:obj\Debug\CESample.GetCustomObjectForm.resources /resource:obj\Debug\CESample.GetDocForm.resources /resource:obj\Debug\CESample.MainForm.resources /resource:obj\Debug\CESample.Properties.Resources.resources /target:winexe AdhocQueryForm.cs AdhocQueryForm.Designer.cs CEConnection.cs CEUtil.cs CreateCompoundDocForm.cs CreateCompoundDocForm.Designer.cs CreateCustomObjectForm.cs CreateCustomObjectForm.Designer.cs CreateDocForm.cs CreateDocForm.Designer.cs CreateFolderForm.cs CreateFolderForm.Designer.cs GetCompoundDocForm.cs GetCompoundDocForm.Designer.cs GetCustomObjectForm.cs GetCustomObjectForm.Designer.cs GetDocForm.cs GetDocForm.Designer.cs MainForm.cs MainForm.Designer.cs Program.cs "Properties\AssemblyInfo.cs" Properties\Resources.Designer.cs Properties\Settings.Designer.cs
fatal error CS0042: Unexpected error creating debug information file 'C:\Documents and Settings\Administrator.DYSTEST\Desktop\New Folder (2)\Demo\CESample\obj\Debug\CESample.PDB' -- 'C:\Documents and Settings\Administrator.DYSTEST\Desktop\New Folder (2)\Demo\CESample\obj\Debug\CESample.pdb: Access is denied.
0
Comment
Question by:fatihdi
  • 2
  • 2
  • 2
6 Comments
 

Author Comment

by:fatihdi
ID: 33588098
Compile complete -- 1 errors, 0 warnings
c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3021,9): error MSB3491: Could not write lines to file "obj\Demo.csproj.FileList.txt". Access to the path 'C:\Documents and Settings\Administrator.DYSTEST\Desktop\New Folder (2)\Demo\CESample\obj\Demo.csproj.FileList.txt' is denied.
Done building project "Demo.csproj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
0
 
LVL 17

Accepted Solution

by:
Zhaolai earned 500 total points
ID: 33588144
Delete everything in this folder:
C:\Documents and Settings\Administrator.DYSTEST\Desktop\New Folder (2)\Demo\CESample\obj
and then compile again.
0
 
LVL 2

Expert Comment

by:chataros
ID: 33588163
I think you have a (background) process (instance of executable) that is locking the file, and the project cannot be rebuilt.

0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:fatihdi
ID: 33588204
@zhaolai

when i deleted everything in that folder and try to rebuild i get;
--------------------------------------------------------------------------------------------------------------------------------------------

Error      1      Unable to copy file "obj\Debug\CESample.exe" to "bin\Debug\CESample.exe". Access to the path 'bin\Debug\CESample.exe' is denied.      Demo

-------------------------------------------------------------------------------------------------------------------------------------------

this message
0
 
LVL 2

Expert Comment

by:chataros
ID: 33588236

go to Startup Project --> MyProject --> Compile
Change the Build Output Path from bin\Release\ to bin\[SomeOtherName]\
0
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33588252
Then delete everything in folder "bin\Debug", and re-compile.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now