Solved

error when i try to run my .net application

Posted on 2010-09-02
6
711 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
The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

 

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
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.
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
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:

830 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