.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How can i add .manifest file reference to the asp.net 2.0

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :ASP.Net
Hi Guys,I have a COM DLL and i made .manifest file for it so i can use it on my host.but i cant add the reference to the asp.net 2.0.Can you please help me .RegardsMoji

View Complete Post

More Related Resource Links

WPF: can we reference a image file (~.png or ~.bmp) from a separated assembly?

We try to reference a image file (xxx.png) in a separated Reference assembly call "ResourceLibrary.dllwe have implement following code in another assembly (not main execuation assembly). <Button > <Image x:Name="pageUpArrow" Stretch="Uniform" Source="pack://application:,,,/ResourcesLibrary;component/Images/xxx.png" /> </Button> We get a complaint at run time:Message="Cannot convert string 'pack://application:,,,/ResourcesLibrary;component/Images/xxx.png' in attribute 'Source' to object of type 'System.Windows.Media.ImageSource'. Cannot locate resource 'images/xxx.png'.  Error at object 'System.Windows.Controls.ControlTemplate' in markup file ...Could we directly reference a image file (xxx.png) in saperated assembly?thanks!Jane

Reference.vb file not added

Hi, After adding WCF service reference, Reference.vb file is not getting added in my client code. What could be the reason ? I added service in following steps: 1. Selected option "Add Service reference" 2. Discover Services in this solution 3. Added Service Reference. After adding service reference, following files got created in App_WenReference folder: Folder TestServiceReference Within folder TestServiceReference, following files got created: Configuration.svcinfo TestService.disco TestService.wsdl TestService.xsd TestService1.xsd TestService2.xsd TestService3.xsd TestService4.xsd But Reference.vb file is not added. What could be the reason ?Amit Lohakare

The located assembly's manifest definition does not match the assembly reference

after applying the latest window 2003 server updates all web-sites on the server fails with the following message: 1 Server Error in '/' Application. 2 -------------------------------------------------------------------------------- 3 4 The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 5 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. 6 7 Exception Details: System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 8 9 Source Error: 10 11 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 12 13 Stack Trace: 14 15 16 [FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)] 17 System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Bool

SSIS package - change Web reference's addres from Configuration file?

Greetings. The SSIS packages provide very nice options to configure them from an XML file, which allows to change credentials, database names etc w/o editing the package. This lets me, say, transfer package from one server to another or from test to production w/o any hassle - just changing the xml. Problem is, i need to acces a web service in my package, and built-in SSIS web service task is useless and just SUCKS. It fails to work even with miscrosoft's own sharepoint web service. So, i have to use scripting task. And scripting task uses "web reference" to access web services, which in turn gives no way to change it's url.  So, if i want to test and then move to production, i'll have to edit my package to change the web reference url from "testserver:5123/mywebservice" to "productionserver:81/webservices/mywebservice". And then change it again to test it again. Etc. Is there a solution to this? A way to programmatically change web reference's url from inside scripting task?

Add Service reference not updaing the client apps web.config file in .Net Framework 4.0


Hi Team

I am doing some experiments with WCF on .Net 4.0. I have created a service in 4.0 and add a new empty web application to consume my Service. When i added a service reference from the IDE, i can see the web.config file is not updated with the Servcie end points. How do i solve this issue?

My web.config in the client looks like this after adding the service reference.

Embed manifest and config file


I want to embed the manifest and the application config file into the exe.  Does anyone know the best way to do this? I see it used this way all the time.

Thanks in advance


Can not add assembly reference and using .dll file from Visual studio 2008 and 2010 Type 'LibraryN


Hi all,

Please tell me the way to solved my problem to looking for a long time.

My System Info:

OS: Windows 7 - Ultimate - 64bit

VS: Visual Studio 2008 - Professional (and problem with my VS2010 installed)


I have a small project and build it to library .dll file with some function util.

From an other website (with diffirence solution). I added reference the .dll before to website.

In website, I declaration to using the function in library (dll file before). But I found error:  Error 1 Type 'LibraryName' is not defined.

And in VS2010 the problem is same.

But, run website on an other computer, it work normally.

Thanks and Best regards.

Registration Free COM using manifest file embeded in Plugin DLL?


Searching google online for 1 whole week and I still can't get this solved... please help!

I'm suppose to build a Plugin (will be called Plugin.dll after compiled) which resides in a main framework (Framework.exe after compiled), everything is written in C# except the C++ COM object (ComObject.dll) which is required by my plugin to function.

The hierarchy looks something like this:

    Framework.exe --> Plugin.dll --> ComObject.dll 


I was provided with the main framework, the ComObject.dll and a manifest file Framework.exe.manifest.


Currently I have two options of getting my program to work:

Option 1: In Command Prompt, type in 'regsvr32 ComObject.dll' to register the COM object, add the COM reference in my plugin source code, build away and run it.

Option 2: In the application properties of my framework source code, add in the manifest file to get it embedded into the Framework.exe. Either this or manually embed the manifest file using mt.exe, both works. This works even if I unregister it later using 'regsvr32 /u ComObject.dll' in Command Prompt.


Reference Dynamically Created JavaScript File


I would like to dynamically create, and reference, entirely different JavaScript files based on an id.  This is the route I've taken, and it appears to be working.  I guess I'm just curious if there's something obvious I'm missing, or if anybody has a better idea.

On the web page a reference points to what i'm calling a "javascript handler". 

<script type="text/javascript" src="http://localhost:50869/JsHandler.ashx?Id=0001"></script>


I may eventually experiment with routing to make the reference look like this...

<script type="text/javascript" src="http://localhost:50869/js/0001"></script>


But that's besides the point.  Please keep in mind, the following example is very simple and could be accomplished in easier ways.  Its more of a proof of concept, and I will be creating completely different JS files, from begining to end, depending on the Id passed in.

So yeah basically the logic in my JavaScript handler looks like this

var Id = context.Request["Id"];
            using (var sr = new StreamReader("/Forms/0001.js"))
                var chingy = E

Intellisense / class reference not working in MembershipProvider derived class file in App_Code fold



I am new to ASP.NET and may be biting off more than I can chew, but I figure if I jump in the deep end I may learn more.

Can somebody tell me why the Visual Studio intellisense is not working in a newly created class file inside the App_Code folder?

I presume that System.Web is not being referenced from the App_Code folder correctly for some reason, because as soon as I type "using System.Web", everything is fine and then stops when I want to add ".Security" (no dropdown). I think this has an influence on the fact that the inherited MembershipProvider in my code is not highlighted/referenced and I cannot use the "Implement Abstract Class" option.

If I create a new class file in the root folder of my website, everything works fine. I have even tried to delete and recreate the file in my App_Code and it still did not work. I also tried to copy the file from my App_Code folder to the root and it still did not work. My code is as follows:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace PodcastManager
    public class

How to write the manifest file for Reg-Free COM if there are two DLL files? ( 32-bit and 64-bit vers



Our program, Core.exe is using two different COM dll files for 32-bit and 64-bit OS. 

Normally, the user will be required to register either one of the dll files using 'regsvr32' command in Command Prompt window.

However we decided to use Reg-Free COM using a manifest file Core.exe.manifest located alongside Core.exe.

The problem is, now we have two DLL files, 32bit.dll and 64bit.dll.. how do we configure the manifest file?

For example if there's only one dll file, my manifest file should look like:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
 <file name="32bit.dll">
  <comClass clsid="{9DFC3817-ACDA-4BB4-C74B-6507DF3A25E5}"
       description="Some Class"

Since the 64bit.dll is using the same clsid, tlbid and all.. is it possible to specify two file names in the 'file name' field above? not sure how to handle this..



Best Regards,

"The located assembly's manifest definition does not match the assembly reference. (Exception from


 Since last night ive been getting this error on my website. Its happening on every page regardless of a database connection. Can anyone explain what this is and how I can fix it please?


.OCX reference issue "Path/File Access Error"


Hi All,

hopefully someone has solution of this error.

i am adding reference on a .ocx file in my project.

When i tried to access the method of this file .

I get the following message "Path/File Access Error"

I tried running the following commands 'regsvr32 XYZ.ocx'.

but issue is same.

Thanks in advance

3rd Party Managed C++ File Reference Question


This seems like a common scenario but I can't seem to figure it out.  Here is my situation:


1. My development machine is a Windows 7 Ultimate 64-bit box with Visual Studio 2010 Professional.


2. I have a Visual Studio 2010 solution with a single managed C# project that depends on a 3rd party managed C++ assembly.


3. I have both a 32-bit and 64-bit version of the 3rd party managed C++ assembly (same file name).


4. I

"Object reference not set to an instance of an object" when 1 single user tries to check out a file


We are running WSS 3.0 SP2.  We have 1 single user that started having the following occur:  When he goes into a document library in which he has contribute permissions, selects a file, picks Check Out and Edit, he is getting a pop-up stating 'Object reference not set to an instance of an object".  When he clicks on the OK button he gets another message stating that it may be a permission issue or the file may be locked for editing by another user.

I have confirmed that nobody else has the file checked out for editing.  Other users (including myself) can open the exact same files, check them out and edit them, then check them back in.

I have searched the web for this error and have not found anything useful to tell me what to try on his machine.  I’m thinking it is a local PC issue since he is the only one experiencing the issue plus I have had him log into our Citrix client and he can successfully check out and edit files there.  He has done a reboot of his machine but this did not res

A better way to reference your wizard steps using named steps

Note: this article uses the plain vanilla but the concepts apply equally well to its popular counterpart .

By far the most common way that I see wizard steps reference in code snippets is by their index.

File Splitter in .Net

I love to do utility programs in .Net. And this is one of them. As I was playing with JSplit (a free file splitter program), I wondered if I could do it in .Net. The framework supports file operations like reading files in bytes and creating them. It is indeed easy to do file operations in .Net Basics on File operations
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend