RE: Error - 0x8007007E when building ASP.NET project

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks for your followup Thomas,

Cool idea. If unmnaged code can be completely avoid in ASP.NET environment,
that'll be the best thing.

If there're any further things we can help, please feel free to post here.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: Error - 0x8007007E when building ASP.NET project
| thread-index: AcXrhDubDBmK+FuNSxqP1ereff/UEg==
| X-WBNR-Posting-Host: 217.78.22.80
| From: "=?Utf-8?B?cm9zYW0=?=" <rosam@xxxxxxxxxxxxxxxx>
| References: <B5B4D190-4152-492A-9BE0-76963C470953@xxxxxxxxxxxxx>
<qDWVtil6FHA.832@xxxxxxxxxxxxxxxxxxxxx>
<88016665-781F-415A-8967-81692B2A745C@xxxxxxxxxxxxx>
<xXQyorx6FHA.3496@xxxxxxxxxxxxxxxxxxxxx>
| Subject: RE: Error - 0x8007007E when building ASP.NET project
| Date: Thu, 17 Nov 2005 06:36:02 -0800
| Lines: 251
| Message-ID: <774A8349-AC45-4736-A0C9-1336E07A3B2A@xxxxxxxxxxxxx>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.vsnet.general
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.vsnet.general:29191
| X-Tomcat-NG: microsoft.public.vsnet.general
|
| Steven,
|
| I have come to the same conclusion as you, i.e. using unmanged code in
| ASP.NET can be a pain in the ....
|
| Rather then trying to get it to work I have restructured my code and
removed
| the need for the unmanged code in the ASP.NET application. The unmanaged
code
| is now executing in another part of my applicatin which is running as a
| service.
|
| --
| /Thomas
|
|
| "Steven Cheng[MSFT]" wrote:
|
| > Thanks for your followup Thomas,
| >
| > So the Rosam.Aws.Ide.Dll is an unmanaged c++ dll which is referenced by
| > your managed Rosam.Aws.Cb.dll assembly ,yes? Also from the filemon
trace
| > logs you provided, at build time, the IDE is unable to locate the
| > Rosam.Aws.Ide.Dll, are you putting it in your web application 's
private
| > "bin" sub folder? Anyway, IMO, the problem is because the VS.NET
2005's
| > Build will create dynamic compiled assemblies for asp.ne web
application
| > (in Temporary dir...), however, the unmanaged dll is not shadow copied
so
| > when IDE referencing to the Temporary dir path it always fails....
At
| > runtime, it'll searching the application dir also so that find the
correct
| > dll there. Using unmanaged DLL in .net , especially ASP.NET environment
| > will have some pain since native (unmanged ) dll do not quite follow
the
| > .net assembly's assembly probing and searchig policy and some other
| > rules....
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| > --------------------
| > | Thread-Topic: Error - 0x8007007E when building ASP.NET project
| > | thread-index: AcXqsAvyev9QIP07S+C670keUezvIw==
| > | X-WBNR-Posting-Host: 217.78.22.80
| > | From: "=?Utf-8?B?cm9zYW0=?=" <rosam@xxxxxxxxxxxxxxxx>
| > | References: <B5B4D190-4152-492A-9BE0-76963C470953@xxxxxxxxxxxxx>
| > <qDWVtil6FHA.832@xxxxxxxxxxxxxxxxxxxxx>
| > | Subject: RE: Error - 0x8007007E when building ASP.NET project
| > | Date: Wed, 16 Nov 2005 05:17:08 -0800
| > | Lines: 154
| > | Message-ID: <88016665-781F-415A-8967-81692B2A745C@xxxxxxxxxxxxx>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain;
| > | charset="Utf-8"
| > | Content-Transfer-Encoding: 7bit
| > | X-Newsreader: Microsoft CDO for Windows 2000
| > | Content-Class: urn:content-classes:message
| > | Importance: normal
| > | Priority: normal
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | Newsgroups: microsoft.public.vsnet.general
| > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.vsnet.general:29126
| > | X-Tomcat-NG: microsoft.public.vsnet.general
| > |
| > | Steven,
| > |
| > | I should probably have mentioned how the dlls are refering each other
in
| > my
| > | previous post.
| > | Rosam.Aws.Ide.Dll exposes a set of unmnanaged classes & functions via
| > | __declspec(dllexport). Rosam.Aws.Cb.Dll links to the
Rosam.Aws.Ide.lib to
| > | resolve these references.
| > | I.e. the reference is between unmnaged code in both DLL's.
| > | Rosam.Aws.Cb.Dll also uses managed classes from Rosam.Aws.Ide.Dll but
I
| > | don't expect that to cause any problem.
| > |
| > | --
| > | /Thomas
| > |
| > |
| > | "Steven Cheng[MSFT]" wrote:
| > |
| > | > Hi Thomas,
| > | >
| > | > Welcome to MSDN newsgroup.
| > | > From your description, you're developing an VS2005 solution which
| > contains
| > | > an ASP.NET web project, while you build the solution, you're
getting
| > the
| > | > following error:
| > | >
| > | > ===============
| > | > Building directory '/Rosam/Aws/HttpHandler/App_GlobalResources/'.
| > | > (0): Build (web): The specified module could not be found.
| > (Exception
| > | > from HRESULT: 0x8007007E)
| > | > ===============
| > | >
| > | > Also, you found that you can get rid of the error if disabling the
| > ASP.NET
| > | > app's ShadowCopyBinAssemlies, but it will lead to other
problems....
| > yes?
| > | >
| > | > Based on my experience, such problem is likely caused by the VS.NET
| > | > 2005/ASP.NET 2.0 developing enviornment not configured well. Have
you
| > | > encountered any small error or problems when installing the VS.NET
IDE?
| > As
| > | > for shadowCopy, it is necessary for the ASP.NET applicaiton so we
| > surely
| > | > should not disable it. And this also somewhat indicate that there
may
| > | > exists some file system accessing issues ... Would you try using
| > FileMon
| > | > tool to have a trace on your dev machine to see whether there're
any
| > file
| > | > system access errors when you build the solution, we can get the
| > filemon
| > | > tool from the System Internal site:
| > | >
| > | > http://www.sysinternals.com/
| > | >
| > | > Also, here is another web link I've searched which mentioned the
| > similiar
| > | > symptom:
| > | >
| > | > http://weblogs.asp.net/rchartier/archive/2005/02/28/381863.aspx
| > | >
| > | > Hope helps. Thanks,
| > | >
| > | > Steven Cheng
| > | > Microsoft Online Support
| > | >
| > | > Get Secure! www.microsoft.com/security
| > | > (This posting is provided "AS IS", with no warranties, and confers
no
| > | > rights.)
| > | >
| > | >
| > | >
| > | >
| > | >
| > | > --------------------
| > | > | Thread-Topic: Error - 0x8007007E when building ASP.NET project
| > | > | thread-index: AcXp5O12my1sHac7Sg2/E7fl6PTqiw==
| > | > | X-WBNR-Posting-Host: 217.78.22.80
| > | > | From: "=?Utf-8?B?cm9zYW0=?=" <rosam@xxxxxxxxxxxxxxxx>
| > | > | Subject: Error - 0x8007007E when building ASP.NET project
| > | > | Date: Tue, 15 Nov 2005 05:03:09 -0800
| > | > | Lines: 53
| > | > | Message-ID: <B5B4D190-4152-492A-9BE0-76963C470953@xxxxxxxxxxxxx>
| > | > | MIME-Version: 1.0
| > | > | Content-Type: text/plain;
| > | > | charset="Utf-8"
| > | > | Content-Transfer-Encoding: 7bit
| > | > | X-Newsreader: Microsoft CDO for Windows 2000
| > | > | Content-Class: urn:content-classes:message
| > | > | Importance: normal
| > | > | Priority: normal
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| > | > | Newsgroups: microsoft.public.vsnet.general
| > | > | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| > | > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| > | > | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.vsnet.general:29088
| > | > | X-Tomcat-NG: microsoft.public.vsnet.general
| > | > |
| > | > |
| > | > | I have a problem with Visual Studio 2005. I have a solution with
| > several
| > | > | projects. One of the projects is an ASP.NET project. When
building
| > the
| > | > | solution i get the this output (from the ASP.NET project):
| > | > |
| > | > | ------ Rebuild All started: Project:
| > | > | http://localhost/Rosam/Aws/HttpHandler/, Configuration: Debug
NET
| > ------
| > | > | Validating Web Site
| > | > | Building directory
'/Rosam/Aws/HttpHandler/App_GlobalResources/'.
| > | > | (0): Build (web): The specified module could not be found.
| > (Exception
| > | > | from HRESULT: 0x8007007E)
| > | > | Validation Complete
| > | > |
| > | > | I can get rid of the problem by adding the following to the
| > "web.config"
| > | > file:
| > | > |
| > | > | <hostingEnvironment shadowCopyBinAssemblies="false" />
| > | > |
| > | > |
| > | > | This however leads to other problems. The IDE then locks the my
| > dependent
| > | > | dll's so that they can't be copied to the target folder. See the
| > partial
| > | > | output below:
| > | > |
| > | > | ------ Rebuild All started: Project:
| > | > | http://localhost/Rosam/Aws/HttpHandler/, Configuration: Debug
NET
| > ------
| > | > | Cannot copy assembly 'Rosam.Aws.Ide.dll' to file
| > | > |
'D:\ssp.NET\Solutions\Rosam\Aws\HttpHandler\Bin\Rosam.Aws.Ide.dll'.
| > | > Unable
| > | > | to add
'd:\ssp.NET\Solutions\Rosam\Aws\Ide\Debug\Rosam.Aws.Ide.dll'
| > to
| > | > the
| > | > | Web. Unable to add file 'Bin/Rosam.Aws.Ide.dll'. The process
cannot
| > | > access
| > | > | the file because it is being used by another process.
| > | > | Cannot copy assembly 'Rosam.Aws.Cb.dll' to file
| > | > |
'D:\ssp.NET\Solutions\Rosam\Aws\HttpHandler\Bin\Rosam.Aws.Cb.dll'.
| > | > Unable to
| > | > | add 'd:\ssp.NET\Solutions\Rosam\Aws\Cb\Debug\Rosam.Aws.Cb.dll' to
the
| > | > Web.
| > | > | Unable to add file 'Bin/Rosam.Aws.Cb.dll'. The process cannot
access
| > the
| > | > | file because it is being used by another process.
| > | > | Cannot copy assembly 'Rosam.Aws.ServiceLib.dll' to file
| > | > |
| > | >
| >
'D:\ssp.NET\Solutions\Rosam\Aws\HttpHandler\Bin\Rosam.Aws.ServiceLib.dll'.
| > | > | Unable to add
| > | > |
| > | >
| >
'D:\ssp.NET\Solutions\Rosam\Aws\ServiceLib\obj\Debug\Rosam.Aws.ServiceLib.dl
| > | > l'
| > | > | to the Web. Unable to add file 'Bin/Rosam.Aws.ServiceLib.dll'.
The
| > | > process
| > | > | cannot access the file because it is being used by another
process.
| > | > | Validating Web Site
| > | > | Building directory
'/Rosam/Aws/HttpHandler/App_GlobalResources/'.
| > | > | Building directory '/Rosam/Aws/HttpHandler/App_Code/'.
| > | > | Building directory '/Rosam/Aws/HttpHandler/'.
| > | > | Validation Complete
| > | > |
| > | > | The "other process" mentioned in the error message above is the
| > | > development
| > | > | environment.
| > | > | Has anybody got any suggestions on how to solve the problems
| > described?
| > | > |
| > | > |
| > | > | --
| > | > | /Thomas
| > | > |
| > | >
| > | >
| > |
| >
| >
|

.



Relevant Pages

  • Re: Change in MapPath in ASPNET2?
    ... currently it would be a limitation of the VS 2005 ide which will make ... Steven Cheng ... Microsoft Online Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Timer question
    ... You're welcome Richard, ... Steven Cheng ... Microsoft Online Support ... |> Cache, you can event not specify a expiration timeout. ...
    (microsoft.public.dotnet.general)
  • RE: Gridview change from B2 =>RC1
    ... Steven Cheng ... Microsoft Online Support ... | DataSource control, in BETA2, we don't need to explicitly declare the ... the objectdatasource and the ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: UserName and Kerberos tokens at the same time
    ... \par> What makes me feeling a bit strange is that the WSE 3.0 Kerberos demo also ... \par> Steven Cheng ... \par> Microsoft Online Support ... The kerberos Security token will try establish the security ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: passing param to xslt styleseet problem
    ... Steven Cheng ... Microsoft Online Support ... | Subject: RE: passing param to xslt styleseet problem ... | mapped to the top level parameters because they're just the extension ...
    (microsoft.public.dotnet.xml)