Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VS doesn't like class in classlib
Message
From
03/12/2018 13:41:31
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
VS doesn't like class in classlib
Environment versions
Environment:
C# 5.0
OS:
Windows 7
Application:
Web
Visual Studio:
Visual Studio 2017
Miscellaneous
Thread ID:
01663999
Message ID:
01663999
Views:
52
Howdy peoples


Created a common class library (ISYSCommonLib.dll) for my website and it (currently) has one process in it. Looks as such:

namespace ISYSCommon
{
public class ISYSCommon
{
//**********************************
// ChkPWFormat
//**********************************
static bool ChkPWFormat(string PW, ref string ErrorMsg)
blahblahblah
}
}

In the code behind, I've got

using ISYSCommon;

and it's happy with that.

However, when I try to call said proc

bool hasError = ISYSCommon.ChkPWFormat(PW, ref ErrorMsg);

I get told that 'ChkPWFormat' does not exist in this context.

Again, what am I missing/forgot.

And oh, btw, it also doesn't seem to like the following in the ASPX page

@ Page Language="C#" AutoEventWireup="true" CodeFile="ISYSLogin.aspx.cs" Inherits="ISYSLogin" Assembly Name="ISYSCommonLib" Import Namespace="ISYSCommon"

Gives me an "Error parsing attribute" for 'assembly','name','import', and 'namespace'.
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Next
Reply
Map
View

Click here to load this message in the networking platform