Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8348579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:44:01+00:00 2026-06-09T07:44:01+00:00

PROJECT A contains a View , let’s call it View1.ascx marked as Embedded Resource

  • 0

PROJECT A contains a View , let’s call it View1.ascx marked as “Embedded Resource” in the properties window

both PROJECT A and PROJECT B and C load that view1 from the PROJECTA.DLL using a custom resource provider

This way I can reuse my views across projects.

Sadly, this causes visual studio to be unable to build PROJECT B , OR C the first time around, after each change to the PROJECTA.dll

"Error  12  Could not copy "C:\GIT\PROJECTA\PROJECTA\bin\PROJECTA.dll" to "bin\PROJECTA.dll". Exceeded retry count of 10. Failed."

Is there any way to make this work? or should I somehow move all “re-used” views to a seperate assembly? The views use classes from PROJECT A so that’s why I kept them inside PROJECT A

To make everything clear: Building it a second time around usually works, and the code and views are all working, it’s just a really big waste of time to have to wait 10 seconds for the first build attempt to fail.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T07:44:02+00:00Added an answer on June 9, 2026 at 7:44 am

    Apparantly my assemblyresourceprovider used a AssemblyResourceVirtualFile:VirtualFile oebject that was loading my dll from Assembly.LoadFile instead of using the recommended way of loading dlls in memory as described here: http://fzysqr.com/2010/04/26/asp-net-mvc2-plugin-architecture-tutorial/
    I left the old line of code in comment for you guys to see where the problem was

    public override System.IO.Stream Open()
    {
        string[] parts = path.Split('/');
        string assemblyName = parts[2];
        string resourceName = parts[3];
    
    
        assemblyName = Path.Combine(HttpRuntime.BinDirectory, assemblyName);
        byte[] assemblyBytes = File.ReadAllBytes(assemblyName);
        System.Reflection.Assembly assembly = Assembly.Load(assemblyBytes);
        /*System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(assemblyName);*/
        if (assembly != null)
        {
            Stream resourceStream = assembly.GetManifestResourceStream(resourceName);
            return resourceStream;
        }
        return null;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my project contains navigation controller and segmented control (with separate view controller: segmentManagingViewController) programmatically
In my project I have a grid view which contains images. Based on my
My embedded project contains a Qt application for the PC which is mainly a
i am creating a view based project named test,it contains testappdelegate.h,testappdelegate.m,test.h,test.m classes. i am
I have a Microsoft MVC project with an action Foo whose view (Foo.aspx) contains
My project contains shared library and exe client. I found that my own exception
My project directory contains a CMakeLists.txt file and src and include directories at its
My project which contains a lot of pages with forms. This is a backend
I have a project that contains xml files. I also have an Ant build
We have a project that contains a library of Python and Scala packages, as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.