Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 3rd, 2006, 04:24 AM
Registered User
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default The given assembly name or codebase was invalid.

I'm trying to use a compiled custom server control.

I followed instructions found on MSDN:

1. add a reference to the dll into bin folder
2. put the @register directive in a web form
3. put the <uc:webgrid ... > directive into the web form to call the control

Here is the code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="prova.aspx.cs" Inherits="prova" %>
<%@ Register TagPrefix="uc" Namespace="Inva.WebControls2" Assembly="bin/InvaWebControls2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<uc:webgrid id="wg1" runat="server"></uc:webgrid>
</div>
</form>
</body>
</html>

I got the error listed inthe title at IDE time and I cannto get rid of it despite many trials.

The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

I also tried to recompile the source and use the fresh generated dll without success.

Please give me a hint!

Thanks a lot.

Lucio Fassio



 
Old December 20th, 2007, 08:00 PM
Registered User
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Lucio,

You can find a general explanation and solution to the problem below.

The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047):

http://www.apijunkie.com/APIJunkie/b...7-4b2e92053a44


Good luck


http://www.apijunkie.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
updating the codebase & bindingredirect in config Gauls .NET Web Services 0 February 21st, 2007 12:24 PM
setting codebase for applet inside jsp file picky Java Basics 0 December 12th, 2006 08:12 AM
Converting .NET 2.0 Assembly to .Net 1.x Assembly pskaushik .NET Framework 2.0 1 November 25th, 2006 01:51 PM
Set codebase parameter vahid1983 J2EE 0 April 6th, 2006 01:51 AM
Assembly arv1980 VS.NET 2002/2003 1 January 15th, 2006 11:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.