473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Need to Resolve a Reference Problem

I have two C# files. To make it simple I've now put them in the same directory. The first few lines of the web page are as follows:

<%@ Page language="C#" %>
<%@ Reference Page="Crypto.cs" %>
<%
Crypto.CryptoEngine xe = new Crypto.CryptoEngine();
%>
.
.
.
The Reference directive is my 20th attempt at guessing what syntax Microsoft wants me to use. I've probably looked at 50 web pages trying to discover the correct syntax. How can I get the web page to recognize the Crypto namespace that is defined within the Crypto.cs file?

Will anyone please help? I'm at my wits end.

The start of the Crypto.cs file are:

using System.IO;
using System.Text;
using System.Security.Cryptography;

namespace Crypto
{
public class CryptoEngine
Oct 17 '07 #1
3 1247
Shashi Sadasivan
1,435 Expert 1GB
Are you trying to access the crypo namespace from some other namespace?
Oct 17 '07 #2
JosAH
11,448 Expert 8TB
You should have asked your question in the .NET Forum section; not here in the
.NET Articles section. I'll move your question to the forum for you.

kind regards,

Jos
Oct 17 '07 #3
rsdev
149 100+
If you're not using code-behind try;

Expand|Select|Wrap|Line Numbers
  1. <%@ Import Namespace="Crypto" %>
Code-behind partial class

Expand|Select|Wrap|Line Numbers
  1. using Crypto;
  2.  
  3. public partial class someName
Hope this helps!
Oct 17 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Bill Cohagan | last post by:
I've got a c# app that does some transforms using XSL files that are stored as Embedded Resources in the app. That turns out to be significant; i.e., the problem I've encountered goes away if I...
0
by: cubes | last post by:
Hi, I have an Access 97 application with a reference to an mda library with a single module. I distribute these as a runtime application. Recently I have found that I get a references problem...
3
by: dln | last post by:
I'm having a rather weird problem when attempting to build my project that maybe someone could help me out with. Basically, I have a workspace containing two C# projects. The first project is a...
1
by: Craig G | last post by:
i am having problems with my development environment i have a webservice (mywebservice.asmx) when i add the web reference into the development environment it will only allow me to use the...
66
by: genestarwing | last post by:
QUESTION: Write a program that opens and read a text file and records how many times each word occurs in the file. Use a binary search tree modified to store both a word and the number of times it...
2
by: ChrisB | last post by:
Hello, I was wondering what options are available for resolving the following (simplified) scenario. Two project exist and each contains a class: ProjectA - Class1 ProjectB - Class2 ...
5
by: carlpayne1984 | last post by:
Hi all, I'm fairly new to XML, however already I have studied myself stupid without being able to solve this problem. Basically, I have an XML file/Schema about a CD catalog that I've created that...
0
by: magnets | last post by:
I have two C# files. To make it simple I've now put them in the same directory. The first few lines of the web page are as follows: <%@ Page language="C#" %> <%@ Reference Page="Crypto.cs" %> <%...
6
by: K Viltersten | last post by:
I'm getting this message. System.IO.FileNotFoundException was unhandled Message: It's not possible to load the file or assembly SomeName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.