Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to Modify a Module when the Solution (.sln) file is missing?How to Modify a Module when the Solution (.sln) file is missing?
Previous
 
Next
New Post
2/27/2014 11:12 PM
 

Hi,

I support a site that has a set of custom modules.  The source code was provided, in the form of separate .ascx and .ascx.cs files.  However, the solution file is absent.  I've tried moving all the files into a new solution.  However, the designer files for the entity data models throw errors.  The DNN site is Professional 6.2.9 and needs to be upgraded to 7.1 after modules are modified.  What's the suggested approach to ensure a smooth build and affect the changes?

 
New Post
2/28/2014 6:10 AM
 
I don't think anyone can help without knowing what the errors are.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
2/28/2014 8:57 AM
 
I would start by determining if the module actually needs a .sln file.
If the module was built as a WSP then there is no need for a solution file.

Is there an actual .dll file for the modules located in the sites /bin/ folder.
If there is no .dll file then its possible the module is WSP based

If there is a .dll file for the module then - well we need more info on what sort of errors you are seeing.


Westa
 
New Post
2/28/2014 12:03 PM
 

Good Morning,

Here's an example of the error I receive during the Visual Studio build process:

Partial declarations of EDMX filename must not specify different base classes

This error references the following code:

using System;

    using System.Data.Entity;

    using System.Data.Entity.Infrastructure;

    

    public partial class AdminTaskEntities : DbContext

    {

        public AdminTaskEntities()

            : base("name=AdminTaskEntities")

        {

        }

    

        protected override void OnModelCreating(DbModelBuilder modelBuilder)

        {

            throw new UnintentionalCodeFirstException();

        }

    

        public DbSet<AdminTask> AdminTasks { get; set; }

        public DbSet<TaskType> TaskTypes { get; set; }

    }

 
New Post
2/28/2014 12:10 PM
 
I don't think this has anything to do with DNN being in the mix. You might do better to ask on a standard MS Developer forum.

At a guess - and it's no more than a guess - I'd say you have a mix-up of Entity Framework versions. What you are building with maybe disagrees with what the original project used. The error message is pretty specific. Look at the other part of the class definition and make them agree. Deciding what to agree on may be harder!

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to Modify a Module when the Solution (.sln) file is missing?How to Modify a Module when the Solution (.sln) file is missing?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out