C# projection weird compilation errors

G

genc_ymeri

Hi over there,
We are a team of 6 developping web applications
(ASP.Net/C#/VB.Net/SQLServer). What happens is that randomly, each of us
get the below error in (PS). We believe that the "acess is denied" error
description [probably] is a "dummy message" b/c the file name changes the
very next time we compile for no reasons. (we think that it didn't have any
reason in the first place b/c no changes of any kind were done to it or to
the files/modules which are accessing it)

Sometime after adding all the permission possible to that file (dll), that
may make it to work with a chance of 10%,
sometime we can restart www service and it may work with very low chances,
sometime a rebuild of the solution may make it to work (low probability too)
and
sometime we delete references (of our build in house dlls) then add them
back may make it to work (low chances to work).............

but sometime we can spend hours to figure out and only a reboot will make it
to work.

For certain, the only thing that makes it to work for sure is a reboot.

The error shows up very frequently (every 30 mins). This is very time
consuming for each of us we really can't link it to anything in our project
as a cause of the problem.

Anyhelp or idea is very much appreciated,
Thank you in advance,
Genc Ymeri
Sr. Developer
Workflow Systems,
Reston VA


PS


Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'ANameSpace.DllFileName'. (e.g
Windows.Encript.Dll, MyCompanyAAssembly.dll)


Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line:
198

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'MyComp.Security' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Bravera.Security
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/wwwRAPID
LOG: Initial PrivatePath = bin




Source Error:


Line 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
 
G

Gabriel Magaña

I get those errors from time to time when I rebuild two solutions at a time
and they happen to share a project. Sometimes solution A rebuilds the
shared project first, and then goes on to another project in the solution,
in the meantime, solution B is rebuilding and rebuilds the shared project,
so the solution A rebuild complains because it cannot access the shared
project exactly when it needs it.

This may also happen if you guys are all building with a shared output
directory.

Other than in this scenario, I have not seen this error.


genc_ymeri said:
Hi over there,
We are a team of 6 developping web applications
(ASP.Net/C#/VB.Net/SQLServer). What happens is that randomly, each of us
get the below error in (PS). We believe that the "acess is denied" error
description [probably] is a "dummy message" b/c the file name changes the
very next time we compile for no reasons. (we think that it didn't have
any
reason in the first place b/c no changes of any kind were done to it or to
the files/modules which are accessing it)

Sometime after adding all the permission possible to that file (dll), that
may make it to work with a chance of 10%,
sometime we can restart www service and it may work with very low chances,
sometime a rebuild of the solution may make it to work (low probability
too)
and
sometime we delete references (of our build in house dlls) then add them
back may make it to work (low chances to work).............

but sometime we can spend hours to figure out and only a reboot will make
it
to work.

For certain, the only thing that makes it to work for sure is a reboot.

The error shows up very frequently (every 30 mins). This is very time
consuming for each of us we really can't link it to anything in our
project
as a cause of the problem.

Anyhelp or idea is very much appreciated,
Thank you in advance,
Genc Ymeri
Sr. Developer
Workflow Systems,
Reston VA


PS


Description: An error occurred during the processing of a configuration
file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'ANameSpace.DllFileName'. (e.g
Windows.Encript.Dll, MyCompanyAAssembly.dll)


Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config
Line:
198

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'MyComp.Security' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Bravera.Security
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/wwwRAPID
LOG: Initial PrivatePath = bin




Source Error:


Line 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
 
G

Gabriel Magaña

Are you guys compiling at the same time to the same output directory?


genc_ymeri said:
We have a single solutions, two projects, pretty straight forward the
first one create a dll, the second one use it as reference and the project
dependeces are set properly. Any idea how to get rid of it ?????


Thanks a lot in advance,
Genc Ymeri


Gabriel Magaña said:
I get those errors from time to time when I rebuild two solutions at a
time and they happen to share a project. Sometimes solution A rebuilds
the shared project first, and then goes on to another project in the
solution, in the meantime, solution B is rebuilding and rebuilds the
shared project, so the solution A rebuild complains because it cannot
access the shared project exactly when it needs it.

This may also happen if you guys are all building with a shared output
directory.

Other than in this scenario, I have not seen this error.


genc_ymeri said:
Hi over there,
We are a team of 6 developping web applications
(ASP.Net/C#/VB.Net/SQLServer). What happens is that randomly, each of
us
get the below error in (PS). We believe that the "acess is denied"
error
description [probably] is a "dummy message" b/c the file name changes
the
very next time we compile for no reasons. (we think that it didn't have
any
reason in the first place b/c no changes of any kind were done to it or
to
the files/modules which are accessing it)

Sometime after adding all the permission possible to that file (dll),
that
may make it to work with a chance of 10%,
sometime we can restart www service and it may work with very low
chances,
sometime a rebuild of the solution may make it to work (low probability
too)
and
sometime we delete references (of our build in house dlls) then add them
back may make it to work (low chances to work).............

but sometime we can spend hours to figure out and only a reboot will
make it
to work.

For certain, the only thing that makes it to work for sure is a reboot.

The error shows up very frequently (every 30 mins). This is very time
consuming for each of us we really can't link it to anything in our
project
as a cause of the problem.

Anyhelp or idea is very much appreciated,
Thank you in advance,
Genc Ymeri
Sr. Developer
Workflow Systems,
Reston VA


PS


Description: An error occurred during the processing of a configuration
file
required to service this request. Please review the specific error
details
below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'ANameSpace.DllFileName'. (e.g
Windows.Encript.Dll, MyCompanyAAssembly.dll)


Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line:
198

Assembly Load Trace: The following information can be helpful to
determine
why the assembly 'MyComp.Security' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Bravera.Security
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/wwwRAPID
LOG: Initial PrivatePath = bin




Source Error:


Line 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
 
G

genc_ymeri

We have a single solutions, two projects, pretty straight forward the first
one create a dll, the second one use it as reference and the project
dependeces are set properly. Any idea how to get rid of it ?????


Thanks a lot in advance,
Genc Ymeri


Gabriel Magaña said:
I get those errors from time to time when I rebuild two solutions at a time
and they happen to share a project. Sometimes solution A rebuilds the
shared project first, and then goes on to another project in the solution,
in the meantime, solution B is rebuilding and rebuilds the shared project,
so the solution A rebuild complains because it cannot access the shared
project exactly when it needs it.

This may also happen if you guys are all building with a shared output
directory.

Other than in this scenario, I have not seen this error.


genc_ymeri said:
Hi over there,
We are a team of 6 developping web applications
(ASP.Net/C#/VB.Net/SQLServer). What happens is that randomly, each of us
get the below error in (PS). We believe that the "acess is denied" error
description [probably] is a "dummy message" b/c the file name changes
the
very next time we compile for no reasons. (we think that it didn't have
any
reason in the first place b/c no changes of any kind were done to it or
to
the files/modules which are accessing it)

Sometime after adding all the permission possible to that file (dll),
that
may make it to work with a chance of 10%,
sometime we can restart www service and it may work with very low
chances,
sometime a rebuild of the solution may make it to work (low probability
too)
and
sometime we delete references (of our build in house dlls) then add them
back may make it to work (low chances to work).............

but sometime we can spend hours to figure out and only a reboot will make
it
to work.

For certain, the only thing that makes it to work for sure is a reboot.

The error shows up very frequently (every 30 mins). This is very time
consuming for each of us we really can't link it to anything in our
project
as a cause of the problem.

Anyhelp or idea is very much appreciated,
Thank you in advance,
Genc Ymeri
Sr. Developer
Workflow Systems,
Reston VA


PS


Description: An error occurred during the processing of a configuration
file
required to service this request. Please review the specific error
details
below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'ANameSpace.DllFileName'. (e.g
Windows.Encript.Dll, MyCompanyAAssembly.dll)


Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config Line:
198

Assembly Load Trace: The following information can be helpful to
determine
why the assembly 'MyComp.Security' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Bravera.Security
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/wwwRAPID
LOG: Initial PrivatePath = bin




Source Error:


Line 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
 
G

genc_ymeri

Are you guys compiling at the same time to the same output directory?

No, everyone one of us has his own copy (from VSS) and output directories
for the projects are different..... 2nd projecy has a reference to the
output of the first one.



Gabriel Magaña said:
Are you guys compiling at the same time to the same output directory?


genc_ymeri said:
We have a single solutions, two projects, pretty straight forward the
first one create a dll, the second one use it as reference and the
project dependeces are set properly. Any idea how to get rid of it ?????


Thanks a lot in advance,
Genc Ymeri


Gabriel Magaña said:
I get those errors from time to time when I rebuild two solutions at a
time and they happen to share a project. Sometimes solution A rebuilds
the shared project first, and then goes on to another project in the
solution, in the meantime, solution B is rebuilding and rebuilds the
shared project, so the solution A rebuild complains because it cannot
access the shared project exactly when it needs it.

This may also happen if you guys are all building with a shared output
directory.

Other than in this scenario, I have not seen this error.


Hi over there,
We are a team of 6 developping web applications
(ASP.Net/C#/VB.Net/SQLServer). What happens is that randomly, each of
us
get the below error in (PS). We believe that the "acess is denied"
error
description [probably] is a "dummy message" b/c the file name changes
the
very next time we compile for no reasons. (we think that it didn't have
any
reason in the first place b/c no changes of any kind were done to it or
to
the files/modules which are accessing it)

Sometime after adding all the permission possible to that file (dll),
that
may make it to work with a chance of 10%,
sometime we can restart www service and it may work with very low
chances,
sometime a rebuild of the solution may make it to work (low probability
too)
and
sometime we delete references (of our build in house dlls) then add
them
back may make it to work (low chances to work).............

but sometime we can spend hours to figure out and only a reboot will
make it
to work.

For certain, the only thing that makes it to work for sure is a reboot.

The error shows up very frequently (every 30 mins). This is very time
consuming for each of us we really can't link it to anything in our
project
as a cause of the problem.

Anyhelp or idea is very much appreciated,
Thank you in advance,
Genc Ymeri
Sr. Developer
Workflow Systems,
Reston VA


PS


Description: An error occurred during the processing of a configuration
file
required to service this request. Please review the specific error
details
below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'ANameSpace.DllFileName'. (e.g
Windows.Encript.Dll, MyCompanyAAssembly.dll)


Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config
Line:
198

Assembly Load Trace: The following information can be helpful to
determine
why the assembly 'MyComp.Security' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Bravera.Security
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/wwwRAPID
LOG: Initial PrivatePath = bin




Source Error:


Line 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
 
G

Gabriel Magaña

Hmm, you mentioned ASP.NET... VS2005 has a big bug where files in the /bin
folder get checked into version control... If any of your developers have
checked dlls into the /bin directory that might explain your problem
(because once checked in, they are marked as read-only which causes all
sorts of problems).

If you do have /bin files mistakenly checked in, you can just delete them
off source control.


genc_ymeri said:
Are you guys compiling at the same time to the same output directory?

No, everyone one of us has his own copy (from VSS) and output directories
for the projects are different..... 2nd projecy has a reference to the
output of the first one.



Gabriel Magaña said:
Are you guys compiling at the same time to the same output directory?


genc_ymeri said:
We have a single solutions, two projects, pretty straight forward the
first one create a dll, the second one use it as reference and the
project dependeces are set properly. Any idea how to get rid of it ?????


Thanks a lot in advance,
Genc Ymeri


I get those errors from time to time when I rebuild two solutions at a
time and they happen to share a project. Sometimes solution A rebuilds
the shared project first, and then goes on to another project in the
solution, in the meantime, solution B is rebuilding and rebuilds the
shared project, so the solution A rebuild complains because it cannot
access the shared project exactly when it needs it.

This may also happen if you guys are all building with a shared output
directory.

Other than in this scenario, I have not seen this error.


Hi over there,
We are a team of 6 developping web applications
(ASP.Net/C#/VB.Net/SQLServer). What happens is that randomly, each of
us
get the below error in (PS). We believe that the "acess is denied"
error
description [probably] is a "dummy message" b/c the file name changes
the
very next time we compile for no reasons. (we think that it didn't
have any
reason in the first place b/c no changes of any kind were done to it
or to
the files/modules which are accessing it)

Sometime after adding all the permission possible to that file (dll),
that
may make it to work with a chance of 10%,
sometime we can restart www service and it may work with very low
chances,
sometime a rebuild of the solution may make it to work (low
probability too)
and
sometime we delete references (of our build in house dlls) then add
them
back may make it to work (low chances to work).............

but sometime we can spend hours to figure out and only a reboot will
make it
to work.

For certain, the only thing that makes it to work for sure is a
reboot.

The error shows up very frequently (every 30 mins). This is very time
consuming for each of us we really can't link it to anything in our
project
as a cause of the problem.

Anyhelp or idea is very much appreciated,
Thank you in advance,
Genc Ymeri
Sr. Developer
Workflow Systems,
Reston VA


PS


Description: An error occurred during the processing of a
configuration file
required to service this request. Please review the specific error
details
below and modify your configuration file appropriately.

Parser Error Message: Access is denied: 'ANameSpace.DllFileName'. (e.g
Windows.Encript.Dll, MyCompanyAAssembly.dll)


Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config
Line:
198

Assembly Load Trace: The following information can be helpful to
determine
why the assembly 'MyComp.Security' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Bravera.Security
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/wwwRAPID
LOG: Initial PrivatePath = bin




Source Error:


Line 196: <add assembly="System.EnterpriseServices,
Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top