web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 2015 - Publish custom MVC 4 website to virtual directory

(0) ShareShare
ReportReport
Posted on by

I have developed an MVC 4 website that interacts with CRM 2015 (via SDK) and it works fine from my VS 2012. When I publish the website to the CRM Server, I get an error with a dll which I am not using in my website. The website is published inside a virtual directory with it's own application pool. The error I keep getting is the following:

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

Could not load file or assembly 'Microsoft.Crm, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Description:

An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Crm, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

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

Can anyone help with this issue?

Thanks

*This post is locked for comments

I have the same question (0)
  • Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    Check you have same version file available on the server under GAC, it may be there is old  file or not there at all, put it there and also make sure all CRM Sdk available under bin director of your application.

    Hope it will help.

    Thanks.

  • Rajkumar Rajaraman Profile Picture
    on at

    Refer this thread:

    community.dynamics.com/.../165802

  • Suggested answer
    Community Member Profile Picture
    on at

    I think you should just be able to copy those files from the CRM Server's bin folder into your own bin folder.  Each time you do it you will get a new error pointing to a different dll....I think there is between 5 and 7 total that you will need to copy into your bin folder.

    Thanks,

    Scott Moore

    www.easiintl.com

  • Robert Cassar Profile Picture
    on at

    I have done that already and it is still giving me the same error for the same assembly.  I am not sure if i need to change something in the virtual directory settings in iis.

  • Robert Cassar Profile Picture
    on at

    It seems that creating a virtual directory within CRM website is unsupported. However creating another website on CRM server is supported. So now I created a separate website with separate application pool.

    However I am getting another error and cannot find any help.

     

    The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.

    Thanks

  • Verified answer
    Robert Cassar Profile Picture
    on at

    Created a separate website on IIS running CRM and followed this post to solve my error.

    consultrikin.wordpress.com/.../organizationrequest

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans