Print Page | Close Window

Using .NET DLL's with ASP Page

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=28894
Printed Date: 28 March 2026 at 4:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Using .NET DLL's with ASP Page
Posted By: mxcxsx
Subject: Using .NET DLL's with ASP Page
Date Posted: 08 October 2010 at 12:08am
Hello,
I have been playing around with developing a Facebook Application in ASP.Net for a school project and have run into an error in which any bit of help would be greatly appreciated!

I am developing and writing my application in Visual Studio 2010 and made a new Web Site (not Web Application). My site loads perfectly when viewing it (there is no additional code that could crash the application).

However when I try to reference any DLL in

the ASPX file as:
<%@ Register Assembly="Facebook.Web" Namespace="Facebook.Web.FbmlControls" TagPrefix="cc2" %>

the ASPX.CS file as:
using Facebook.Web; 

the application displays the dreaded: 

Server Error in '/' Application.


Runtime Error

Description: 

Details:
 To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


Have I missed a step in importing the DLL? I have tried with multiple DLL's and the same server Error. I made sure not even to initialize any code and just use the namespace/register the assembly to make sure that is where the error is coming from. Also my project works fine when using a local deployment server on my desktop PC.

Thanks so much,
Michael



Replies:
Posted By: WebWiz-Bruce
Date Posted: 08 October 2010 at 8:25am
The message that you are getting at the moment is to let you know an error has occurred, but not what the error is.

You need to turn on remote error for your website in the web.config file so that you can get a detailed error so you know what the problem is.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net