Hugo van Dyk
Hugo van Dyk

Reputation: 42

adding a new page to precompiled website

I've been tasked with editing and updating a precompiled website written in c#. Unfortunately I have little knowledge or experience with the language nor do I have the source code for the website.

I've managed to edit the .dll file by using dotPeek to decompile the files then editing and recompiling them in Visual Studio before copy-pasting the new .dll files back into the bin of the original project.

I've been trying to add a new page by basicly reworking another page of the same website but whenever I try to build the website it gives me this error.

Could not load type 'Contacts' from assembly 'App_Web_dvy2uzvm, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

I did add a cs to the updated dll with the proper name but it seems unable to access it and I haven't been able to track down any information online. I'm probably just googling the wrong questions though.

This is the bit of code which I believe contains the issue.

<%@ page language="C#" masterpagefile="~/SampleMaster.master"
 autoeventwireup="true" inherits="Contacts, App_Web_dvy2uzvm" title="Untitled Page" %>

Any sort of help would be greatly appreciated thank you.

Upvotes: 0

Views: 55

Answers (1)

John Mc
John Mc

Reputation: 2933

You're going to need the source code to recompile with the new page added. That's the way it's meant to work, and is why you're finding it difficult to find answers.

Upvotes: 1

Related Questions