|
 |
aspx thread: Need Help - Second Post
Message #1 by "Hugh McLaughlin" <hugh@k...> on Sun, 3 Feb 2002 19:35:44
|
|
I am having a great deal of difficulty getting a basic
business component to function. I have posted the code
for the component itself at:
http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
It consists of two simple functions - one that returns a
simple "hello world" message and the other which calls
a stored procedure to return data to populate a datagrid.
The code for the ASPX page which calls the component can
be found at:
http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
I have also supplied the code for the web.config file at:
http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
The error message that I am receiving is:
Compiler Error Message: BC30002: Type 'ManageUsersDB' is not defined.
I am using Visual Studio Version 1 on a Windows 2000 server.
I am compiling the code within Visual Studio. It appears to
compile successfully. I then copy the file MyPortal.dll to the
bin directory of the webroot. I think the code is correct since
I have tested it in a class within an ASP.Net page and it works fine.
I suspect there is a configuration problem but I can't be positive
and I am not sure where to look.
Any help would be greatly appreciated. Thanks.
Message #2 by "Douglas Rohm" <dlr@m...> on Sun, 3 Feb 2002 14:46:21 -0500
|
|
You have to add the assembly to the web.config file:
<configuration>
<system.web>
<compilation debug="true">
<assemblies>
<add assembly="MyPortal" />
</assemblies>
</compilation>
<customErrors mode="Off"/>
</system.web>
</configuration>
See if that helps.
Doug
-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...]
Sent: Sunday, February 03, 2002 7:36 PM
To: ASP+
Subject: [aspx] Need Help - Second Post
I am having a great deal of difficulty getting a basic
business component to function. I have posted the code
for the component itself at:
http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
It consists of two simple functions - one that returns a
simple "hello world" message and the other which calls
a stored procedure to return data to populate a datagrid.
The code for the ASPX page which calls the component can
be found at:
http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
I have also supplied the code for the web.config file at:
http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
The error message that I am receiving is:
Compiler Error Message: BC30002: Type 'ManageUsersDB' is not defined.
I am using Visual Studio Version 1 on a Windows 2000 server.
I am compiling the code within Visual Studio. It appears to compile
successfully. I then copy the file MyPortal.dll to the bin directory of
the webroot. I think the code is correct since I have tested it in a
class within an ASP.Net page and it works fine. I suspect there is a
configuration problem but I can't be positive and I am not sure where to
look.
Any help would be greatly appreciated. Thanks.
Message #3 by "Douglas Rohm" <dlr@m...> on Sun, 3 Feb 2002 14:58:27 -0500
|
|
Sorry about that last post of mine, I overlooked your web.config file.
You *did* include the assembly. My apologies.
Try using MyDataGrid.DataBind() in the .aspx page. I'll keep looking to
see if I can find anything else.
Doug
-----Original Message-----
From: Douglas Rohm [mailto:dlr@m...]
Sent: Sunday, February 03, 2002 2:46 PM
To: ASP+
Subject: [aspx] RE: Need Help - Second Post
You have to add the assembly to the web.config file:
<configuration>
<system.web>
<compilation debug="true">
<assemblies>
<add assembly="MyPortal" />
</assemblies>
</compilation>
<customErrors mode="Off"/>
</system.web>
</configuration>
See if that helps.
Doug
-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...]
Sent: Sunday, February 03, 2002 7:36 PM
To: ASP+
Subject: [aspx] Need Help - Second Post
I am having a great deal of difficulty getting a basic
business component to function. I have posted the code
for the component itself at:
http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
It consists of two simple functions - one that returns a
simple "hello world" message and the other which calls
a stored procedure to return data to populate a datagrid.
The code for the ASPX page which calls the component can
be found at:
http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
I have also supplied the code for the web.config file at:
http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
The error message that I am receiving is:
Compiler Error Message: BC30002: Type 'ManageUsersDB' is not defined.
I am using Visual Studio Version 1 on a Windows 2000 server.
I am compiling the code within Visual Studio. It appears to compile
successfully. I then copy the file MyPortal.dll to the bin directory of
the webroot. I think the code is correct since I have tested it in a
class within an ASP.Net page and it works fine. I suspect there is a
configuration problem but I can't be positive and I am not sure where to
look.
Any help would be greatly appreciated. Thanks.
Message #4 by "Hugh McLaughlin" <hugh@k...> on Sun, 3 Feb 2002 21:07:12
|
|
Thanks Doug. I tried your suggestion without success. Like I mentioned
in my post, I have used the same code in a class within an ASPX page and
it worked. This is why I suspect it is a configuration issue. But I am
so new at .Net, I can't be sure if it is the code or configuration.
> Sorry about that last post of mine, I overlooked your web.config file.
> You *did* include the assembly. My apologies.
>
> Try using MyDataGrid.DataBind() in the .aspx page. I'll keep looking to
> see if I can find anything else.
>
> Doug
>
> -----Original Message-----
> From: Douglas Rohm [mailto:dlr@m...]
> Sent: Sunday, February 03, 2002 2:46 PM
> To: ASP+
> Subject: [aspx] RE: Need Help - Second Post
>
>
> You have to add the assembly to the web.config file:
>
> <configuration>
> <system.web>
> <compilation debug="true">
> <assemblies>
> <add assembly="MyPortal" />
> </assemblies>
> </compilation>
> <customErrors mode="Off"/>
> </system.web>
> </configuration>
>
> See if that helps.
>
> Doug
>
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Sunday, February 03, 2002 7:36 PM
> To: ASP+
> Subject: [aspx] Need Help - Second Post
>
>
> I am having a great deal of difficulty getting a basic
> business component to function. I have posted the code
> for the component itself at:
>
> http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
>
> It consists of two simple functions - one that returns a
> simple "hello world" message and the other which calls
> a stored procedure to return data to populate a datagrid.
>
> The code for the ASPX page which calls the component can
> be found at:
>
> http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
>
> I have also supplied the code for the web.config file at:
>
> http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
>
> The error message that I am receiving is:
>
> Compiler Error Message: BC30002: Type 'ManageUsersDB' is not defined.
>
>
> I am using Visual Studio Version 1 on a Windows 2000 server.
> I am compiling the code within Visual Studio. It appears to compile
> successfully. I then copy the file MyPortal.dll to the bin directory of
> the webroot. I think the code is correct since I have tested it in a
> class within an ASP.Net page and it works fine. I suspect there is a
> configuration problem but I can't be positive and I am not sure where to
> look.
>
> Any help would be greatly appreciated. Thanks.
>
>
>
Message #5 by "Douglas Rohm" <dlr@m...> on Sun, 3 Feb 2002 16:08:49 -0500
|
|
Can you tell me the directory structure that you're using? Where does
the .aspx file reside and where does the .bin file reside?
-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...]
Sent: Sunday, February 03, 2002 9:07 PM
To: ASP+
Subject: [aspx] RE: Need Help - Second Post
Thanks Doug. I tried your suggestion without success. Like I mentioned
in my post, I have used the same code in a class within an ASPX page and
it worked. This is why I suspect it is a configuration issue. But I am
so new at .Net, I can't be sure if it is the code or configuration.
> Sorry about that last post of mine, I overlooked your web.config file.
> You *did* include the assembly. My apologies.
>
> Try using MyDataGrid.DataBind() in the .aspx page. I'll keep looking
> to see if I can find anything else.
>
> Doug
>
> -----Original Message-----
> From: Douglas Rohm [mailto:dlr@m...]
> Sent: Sunday, February 03, 2002 2:46 PM
> To: ASP+
> Subject: [aspx] RE: Need Help - Second Post
>
>
> You have to add the assembly to the web.config file:
>
> <configuration>
> <system.web>
> <compilation debug="true">
> <assemblies>
> <add assembly="MyPortal" />
> </assemblies>
> </compilation>
> <customErrors mode="Off"/>
> </system.web>
> </configuration>
>
> See if that helps.
>
> Doug
>
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Sunday, February 03, 2002 7:36 PM
> To: ASP+
> Subject: [aspx] Need Help - Second Post
>
>
> I am having a great deal of difficulty getting a basic business
> component to function. I have posted the code for the component
> itself at:
>
> http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
>
> It consists of two simple functions - one that returns a simple "hello
> world" message and the other which calls a stored procedure to return
> data to populate a datagrid.
>
> The code for the ASPX page which calls the component can
> be found at:
>
> http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
>
> I have also supplied the code for the web.config file at:
>
> http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
>
> The error message that I am receiving is:
>
> Compiler Error Message: BC30002: Type 'ManageUsersDB' is not defined.
>
>
> I am using Visual Studio Version 1 on a Windows 2000 server. I am
> compiling the code within Visual Studio. It appears to compile
> successfully. I then copy the file MyPortal.dll to the bin directory
> of the webroot. I think the code is correct since I have tested it in
> a class within an ASP.Net page and it works fine. I suspect there is a
> configuration problem but I can't be positive and I am not sure where
> to look.
>
> Any help would be greatly appreciated. Thanks.
>
>
>
Message #6 by "Hugh McLaughlin" <hugh@k...> on Sun, 3 Feb 2002 22:02:43
|
|
I have the sturcture set up like this
ASPProject
Webroot
Bin
MyPortal
The MyPortal.dll is located in the bin directory. The .dll file was
created in Visual Studio which defaulted the dll to MyDocuments. I
simply copied the file to the bin directory. The MyPortal.aspx and
web.config files are located in the MyPortal folder. I have IIS set to
use the Webroot folder as the default path for this particular site.
Does the code look correct to you? I think it is and I suspect that
since I am using a different configuration thant the books, I rpobably
have something messed up. Am I correct in assuming that the dll can be
created anywhere and simply copied to the appropraite directory?
Thanks for your effort.
> Can you tell me the directory structure that you're using? Where does
> the .aspx file reside and where does the .bin file reside?
>
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Sunday, February 03, 2002 9:07 PM
> To: ASP+
> Subject: [aspx] RE: Need Help - Second Post
>
>
> Thanks Doug. I tried your suggestion without success. Like I mentioned
>
> in my post, I have used the same code in a class within an ASPX page and
>
> it worked. This is why I suspect it is a configuration issue. But I am
>
> so new at .Net, I can't be sure if it is the code or configuration.
>
> > Sorry about that last post of mine, I overlooked your web.config file.
>
> > You *did* include the assembly. My apologies.
> >
> > Try using MyDataGrid.DataBind() in the .aspx page. I'll keep looking
> > to see if I can find anything else.
> >
> > Doug
> >
> > -----Original Message-----
> > From: Douglas Rohm [mailto:dlr@m...]
> > Sent: Sunday, February 03, 2002 2:46 PM
> > To: ASP+
> > Subject: [aspx] RE: Need Help - Second Post
> >
> >
> > You have to add the assembly to the web.config file:
> >
> > <configuration>
> > <system.web>
> > <compilation debug="true">
> > <assemblies>
> > <add assembly="MyPortal" />
> > </assemblies>
> > </compilation>
> > <customErrors mode="Off"/>
> > </system.web>
> > </configuration>
> >
> > See if that helps.
> >
> > Doug
> >
> > -----Original Message-----
> > From: Hugh McLaughlin [mailto:hugh@k...]
> > Sent: Sunday, February 03, 2002 7:36 PM
> > To: ASP+
> > Subject: [aspx] Need Help - Second Post
> >
> >
> > I am having a great deal of difficulty getting a basic business
> > component to function. I have posted the code for the component
> > itself at:
> >
> > http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
> >
> > It consists of two simple functions - one that returns a simple "hello
>
> > world" message and the other which calls a stored procedure to return
> > data to populate a datagrid.
> >
> > The code for the ASPX page which calls the component can
> > be found at:
> >
> > http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
> >
> > I have also supplied the code for the web.config file at:
> >
> > http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
> >
> > The error message that I am receiving is:
> >
> > Compiler Error Message: BC30002: Type 'ManageUsersDB' is not defined.
> >
> >
> > I am using Visual Studio Version 1 on a Windows 2000 server. I am
> > compiling the code within Visual Studio. It appears to compile
> > successfully. I then copy the file MyPortal.dll to the bin directory
> > of the webroot. I think the code is correct since I have tested it in
>
> > a class within an ASP.Net page and it works fine. I suspect there is a
>
> > configuration problem but I can't be positive and I am not sure where
> > to look.
> >
> > Any help would be greatly appreciated. Thanks.
> >
> >
> >
>
>
Message #7 by "Douglas Rohm" <dlr@m...> on Sun, 3 Feb 2002 17:05:31 -0500
|
|
That's the problem there. The directory structure should be:
ASPProject
Webroot
MyPortal
bin
Give that a shot.
Doug
-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...]
Sent: Sunday, February 03, 2002 10:03 PM
To: ASP+
Subject: [aspx] RE: Need Help - Second Post
I have the sturcture set up like this
ASPProject
Webroot
Bin
MyPortal
The MyPortal.dll is located in the bin directory. The .dll file was
created in Visual Studio which defaulted the dll to MyDocuments. I
simply copied the file to the bin directory. The MyPortal.aspx and
web.config files are located in the MyPortal folder. I have IIS set to
use the Webroot folder as the default path for this particular site.
Does the code look correct to you? I think it is and I suspect that
since I am using a different configuration thant the books, I rpobably
have something messed up. Am I correct in assuming that the dll can be
created anywhere and simply copied to the appropraite directory?
Thanks for your effort.
> Can you tell me the directory structure that you're using? Where does
> the .aspx file reside and where does the .bin file reside?
>
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Sunday, February 03, 2002 9:07 PM
> To: ASP+
> Subject: [aspx] RE: Need Help - Second Post
>
>
> Thanks Doug. I tried your suggestion without success. Like I
> mentioned
>
> in my post, I have used the same code in a class within an ASPX page
> and
>
> it worked. This is why I suspect it is a configuration issue. But I
> am
>
> so new at .Net, I can't be sure if it is the code or configuration.
>
> > Sorry about that last post of mine, I overlooked your web.config
> > file.
>
> > You *did* include the assembly. My apologies.
> >
> > Try using MyDataGrid.DataBind() in the .aspx page. I'll keep
> > looking
> > to see if I can find anything else.
> >
> > Doug
> >
> > -----Original Message-----
> > From: Douglas Rohm [mailto:dlr@m...]
> > Sent: Sunday, February 03, 2002 2:46 PM
> > To: ASP+
> > Subject: [aspx] RE: Need Help - Second Post
> >
> >
> > You have to add the assembly to the web.config file:
> >
> > <configuration>
> > <system.web>
> > <compilation debug="true">
> > <assemblies>
> > <add assembly="MyPortal" />
> > </assemblies>
> > </compilation>
> > <customErrors mode="Off"/>
> > </system.web>
> > </configuration>
> >
> > See if that helps.
> >
> > Doug
> >
> > -----Original Message-----
> > From: Hugh McLaughlin [mailto:hugh@k...]
> > Sent: Sunday, February 03, 2002 7:36 PM
> > To: ASP+
> > Subject: [aspx] Need Help - Second Post
> >
> >
> > I am having a great deal of difficulty getting a basic business
> > component to function. I have posted the code for the component
> > itself at:
> >
> > http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
> >
> > It consists of two simple functions - one that returns a simple
> > "hello
>
> > world" message and the other which calls a stored procedure to
> > return
> > data to populate a datagrid.
> >
> > The code for the ASPX page which calls the component can
> > be found at:
> >
> > http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
> >
> > I have also supplied the code for the web.config file at:
> >
> > http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
> >
> > The error message that I am receiving is:
> >
> > Compiler Error Message: BC30002: Type 'ManageUsersDB' is not
> > defined.
> >
> >
> > I am using Visual Studio Version 1 on a Windows 2000 server. I am
> > compiling the code within Visual Studio. It appears to compile
> > successfully. I then copy the file MyPortal.dll to the bin
directory
> > of the webroot. I think the code is correct since I have tested it
in
>
> > a class within an ASP.Net page and it works fine. I suspect there is
> > a
>
> > configuration problem but I can't be positive and I am not sure
> > where
> > to look.
> >
> > Any help would be greatly appreciated. Thanks.
> > ---
> > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > unsubscribe send a blank email to $subst('Email.Unsub').
> >
> >
> > ---
> > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > unsubscribe send a blank email to $subst('Email.Unsub').
> >
>
>
Message #8 by "Hugh McLaughlin" <hugh@k...> on Sun, 3 Feb 2002 22:27:58
|
|
Tried it. Didn't work. Doesn't the bin directory need to be part of the
webroot?
> That's the problem there. The directory structure should be:
>
> ASPProject
> Webroot
> MyPortal
> bin
>
> Give that a shot.
>
> Doug
>
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Sunday, February 03, 2002 10:03 PM
> To: ASP+
> Subject: [aspx] RE: Need Help - Second Post
>
>
> I have the sturcture set up like this
>
> ASPProject
> Webroot
> Bin
> MyPortal
>
> The MyPortal.dll is located in the bin directory. The .dll file was
> created in Visual Studio which defaulted the dll to MyDocuments. I
> simply copied the file to the bin directory. The MyPortal.aspx and
> web.config files are located in the MyPortal folder. I have IIS set to
> use the Webroot folder as the default path for this particular site.
> Does the code look correct to you? I think it is and I suspect that
> since I am using a different configuration thant the books, I rpobably
> have something messed up. Am I correct in assuming that the dll can be
> created anywhere and simply copied to the appropraite directory?
>
> Thanks for your effort.
>
>
>
> > Can you tell me the directory structure that you're using? Where does
>
> > the .aspx file reside and where does the .bin file reside?
> >
> > -----Original Message-----
> > From: Hugh McLaughlin [mailto:hugh@k...]
> > Sent: Sunday, February 03, 2002 9:07 PM
> > To: ASP+
> > Subject: [aspx] RE: Need Help - Second Post
> >
> >
> > Thanks Doug. I tried your suggestion without success. Like I
> > mentioned
> >
> > in my post, I have used the same code in a class within an ASPX page
> > and
> >
> > it worked. This is why I suspect it is a configuration issue. But I
> > am
> >
> > so new at .Net, I can't be sure if it is the code or configuration.
> >
> > > Sorry about that last post of mine, I overlooked your web.config
> > > file.
> >
> > > You *did* include the assembly. My apologies.
> > >
> > > Try using MyDataGrid.DataBind() in the .aspx page. I'll keep
> > > looking
> > > to see if I can find anything else.
> > >
> > > Doug
> > >
> > > -----Original Message-----
> > > From: Douglas Rohm [mailto:dlr@m...]
> > > Sent: Sunday, February 03, 2002 2:46 PM
> > > To: ASP+
> > > Subject: [aspx] RE: Need Help - Second Post
> > >
> > >
> > > You have to add the assembly to the web.config file:
> > >
> > > <configuration>
> > > <system.web>
> > > <compilation debug="true">
> > > <assemblies>
> > > <add assembly="MyPortal" />
> > > </assemblies>
> > > </compilation>
> > > <customErrors mode="Off"/>
> > > </system.web>
> > > </configuration>
> > >
> > > See if that helps.
> > >
> > > Doug
> > >
> > > -----Original Message-----
> > > From: Hugh McLaughlin [mailto:hugh@k...]
> > > Sent: Sunday, February 03, 2002 7:36 PM
> > > To: ASP+
> > > Subject: [aspx] Need Help - Second Post
> > >
> > >
> > > I am having a great deal of difficulty getting a basic business
> > > component to function. I have posted the code for the component
> > > itself at:
> > >
> > > http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
> > >
> > > It consists of two simple functions - one that returns a simple
> > > "hello
> >
> > > world" message and the other which calls a stored procedure to
> > > return
> > > data to populate a datagrid.
> > >
> > > The code for the ASPX page which calls the component can
> > > be found at:
> > >
> > > http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
> > >
> > > I have also supplied the code for the web.config file at:
> > >
> > > http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
> > >
> > > The error message that I am receiving is:
> > >
> > > Compiler Error Message: BC30002: Type 'ManageUsersDB' is not
> > > defined.
> > >
> > >
> > > I am using Visual Studio Version 1 on a Windows 2000 server. I am
> > > compiling the code within Visual Studio. It appears to compile
> > > successfully. I then copy the file MyPortal.dll to the bin
> directory
> > > of the webroot. I think the code is correct since I have tested it
> in
> >
> > > a class within an ASP.Net page and it works fine. I suspect there is
>
> > > a
> >
> > > configuration problem but I can't be positive and I am not sure
> > > where
> > > to look.
> > >
> > > Any help would be greatly appreciated. Thanks.
> > > ---
> > > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > > unsubscribe send a blank email to $subst('Email.Unsub').
> > >
> > >
> > > ---
> > > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > > unsubscribe send a blank email to $subst('Email.Unsub').
> > >
> >
> >
>
>
Message #9 by "Douglas Rohm" <dlr@m...> on Sun, 3 Feb 2002 17:27:50 -0500
|
|
No, the bin directory should be a sub-directory of the application root.
If your application is called MyPortal, then the bin directory should be
a sub-directory of it. In the MyPortal directory, place the .aspx and
.config files. In the bin folder, place the .dll.
-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...]
Sent: Sunday, February 03, 2002 10:28 PM
To: ASP+
Subject: [aspx] RE: Need Help - Second Post
Tried it. Didn't work. Doesn't the bin directory need to be part of
the
webroot?
> That's the problem there. The directory structure should be:
>
> ASPProject
> Webroot
> MyPortal
> bin
>
> Give that a shot.
>
> Doug
>
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Sunday, February 03, 2002 10:03 PM
> To: ASP+
> Subject: [aspx] RE: Need Help - Second Post
>
>
> I have the sturcture set up like this
>
> ASPProject
> Webroot
> Bin
> MyPortal
>
> The MyPortal.dll is located in the bin directory. The .dll file was
> created in Visual Studio which defaulted the dll to MyDocuments. I
> simply copied the file to the bin directory. The MyPortal.aspx and
> web.config files are located in the MyPortal folder. I have IIS set
to
> use the Webroot folder as the default path for this particular site.
> Does the code look correct to you? I think it is and I suspect that
> since I am using a different configuration thant the books, I rpobably
> have something messed up. Am I correct in assuming that the dll can
be
> created anywhere and simply copied to the appropraite directory?
>
> Thanks for your effort.
>
>
>
> > Can you tell me the directory structure that you're using? Where
> > does
>
> > the .aspx file reside and where does the .bin file reside?
> >
> > -----Original Message-----
> > From: Hugh McLaughlin [mailto:hugh@k...]
> > Sent: Sunday, February 03, 2002 9:07 PM
> > To: ASP+
> > Subject: [aspx] RE: Need Help - Second Post
> >
> >
> > Thanks Doug. I tried your suggestion without success. Like I
> > mentioned
> >
> > in my post, I have used the same code in a class within an ASPX page
> > and
> >
> > it worked. This is why I suspect it is a configuration issue. But
> > I
> > am
> >
> > so new at .Net, I can't be sure if it is the code or configuration.
> >
> > > Sorry about that last post of mine, I overlooked your web.config
> > > file.
> >
> > > You *did* include the assembly. My apologies.
> > >
> > > Try using MyDataGrid.DataBind() in the .aspx page. I'll keep
> > > looking
> > > to see if I can find anything else.
> > >
> > > Doug
> > >
> > > -----Original Message-----
> > > From: Douglas Rohm [mailto:dlr@m...]
> > > Sent: Sunday, February 03, 2002 2:46 PM
> > > To: ASP+
> > > Subject: [aspx] RE: Need Help - Second Post
> > >
> > >
> > > You have to add the assembly to the web.config file:
> > >
> > > <configuration>
> > > <system.web>
> > > <compilation debug="true">
> > > <assemblies>
> > > <add assembly="MyPortal" />
> > > </assemblies>
> > > </compilation>
> > > <customErrors mode="Off"/>
> > > </system.web>
> > > </configuration>
> > >
> > > See if that helps.
> > >
> > > Doug
> > >
> > > -----Original Message-----
> > > From: Hugh McLaughlin [mailto:hugh@k...]
> > > Sent: Sunday, February 03, 2002 7:36 PM
> > > To: ASP+
> > > Subject: [aspx] Need Help - Second Post
> > >
> > >
> > > I am having a great deal of difficulty getting a basic business
> > > component to function. I have posted the code for the component
> > > itself at:
> > >
> > > http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
> > >
> > > It consists of two simple functions - one that returns a simple
> > > "hello
> >
> > > world" message and the other which calls a stored procedure to
> > > return
> > > data to populate a datagrid.
> > >
> > > The code for the ASPX page which calls the component can be found
> > > at:
> > >
> > > http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
> > >
> > > I have also supplied the code for the web.config file at:
> > >
> > > http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
> > >
> > > The error message that I am receiving is:
> > >
> > > Compiler Error Message: BC30002: Type 'ManageUsersDB' is not
> > > defined.
> > >
> > >
> > > I am using Visual Studio Version 1 on a Windows 2000 server. I am
> > > compiling the code within Visual Studio. It appears to compile
> > > successfully. I then copy the file MyPortal.dll to the bin
> directory
> > > of the webroot. I think the code is correct since I have tested
> > > it
> in
> >
> > > a class within an ASP.Net page and it works fine. I suspect there
> > > is
>
> > > a
> >
> > > configuration problem but I can't be positive and I am not sure
> > > where
> > > to look.
> > >
> > > Any help would be greatly appreciated. Thanks.
> > > ---
> > > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > > unsubscribe send a blank email to $subst('Email.Unsub').
> > >
> > >
> > > ---
> > > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > > unsubscribe send a blank email to $subst('Email.Unsub').
> > >
> >
> > ---
> > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > unsubscribe send a blank email to $subst('Email.Unsub').
> >
>
>
Message #10 by "Hugh McLaughlin" <hugh@k...> on Sun, 3 Feb 2002 23:22:38
|
|
Well, I tried moving the bin directory into the MyPortal directory, but
it still didn't work. Does MyPortal need to be a Virtual Directory?
> No, the bin directory should be a sub-directory of the application root.
> If your application is called MyPortal, then the bin directory should be
> a sub-directory of it. In the MyPortal directory, place the .aspx and
> .config files. In the bin folder, place the .dll.
>
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Sunday, February 03, 2002 10:28 PM
> To: ASP+
> Subject: [aspx] RE: Need Help - Second Post
>
>
> Tried it. Didn't work. Doesn't the bin directory need to be part of
> the
> webroot?
>
> > That's the problem there. The directory structure should be:
> >
> > ASPProject
> > Webroot
> > MyPortal
> > bin
> >
> > Give that a shot.
> >
> > Doug
> >
> > -----Original Message-----
> > From: Hugh McLaughlin [mailto:hugh@k...]
> > Sent: Sunday, February 03, 2002 10:03 PM
> > To: ASP+
> > Subject: [aspx] RE: Need Help - Second Post
> >
> >
> > I have the sturcture set up like this
> >
> > ASPProject
> > Webroot
> > Bin
> > MyPortal
> >
> > The MyPortal.dll is located in the bin directory. The .dll file was
> > created in Visual Studio which defaulted the dll to MyDocuments. I
> > simply copied the file to the bin directory. The MyPortal.aspx and
> > web.config files are located in the MyPortal folder. I have IIS set
> to
> > use the Webroot folder as the default path for this particular site.
> > Does the code look correct to you? I think it is and I suspect that
> > since I am using a different configuration thant the books, I rpobably
>
> > have something messed up. Am I correct in assuming that the dll can
> be
> > created anywhere and simply copied to the appropraite directory?
> >
> > Thanks for your effort.
> >
> >
> >
> > > Can you tell me the directory structure that you're using? Where
> > > does
> >
> > > the .aspx file reside and where does the .bin file reside?
> > >
> > > -----Original Message-----
> > > From: Hugh McLaughlin [mailto:hugh@k...]
> > > Sent: Sunday, February 03, 2002 9:07 PM
> > > To: ASP+
> > > Subject: [aspx] RE: Need Help - Second Post
> > >
> > >
> > > Thanks Doug. I tried your suggestion without success. Like I
> > > mentioned
> > >
> > > in my post, I have used the same code in a class within an ASPX page
> > > and
> > >
> > > it worked. This is why I suspect it is a configuration issue. But
> > > I
> > > am
> > >
> > > so new at .Net, I can't be sure if it is the code or configuration.
> > >
> > > > Sorry about that last post of mine, I overlooked your web.config
> > > > file.
> > >
> > > > You *did* include the assembly. My apologies.
> > > >
> > > > Try using MyDataGrid.DataBind() in the .aspx page. I'll keep
> > > > looking
> > > > to see if I can find anything else.
> > > >
> > > > Doug
> > > >
> > > > -----Original Message-----
> > > > From: Douglas Rohm [mailto:dlr@m...]
> > > > Sent: Sunday, February 03, 2002 2:46 PM
> > > > To: ASP+
> > > > Subject: [aspx] RE: Need Help - Second Post
> > > >
> > > >
> > > > You have to add the assembly to the web.config file:
> > > >
> > > > <configuration>
> > > > <system.web>
> > > > <compilation debug="true">
> > > > <assemblies>
> > > > <add assembly="MyPortal" />
> > > > </assemblies>
> > > > </compilation>
> > > > <customErrors mode="Off"/>
> > > > </system.web>
> > > > </configuration>
> > > >
> > > > See if that helps.
> > > >
> > > > Doug
> > > >
> > > > -----Original Message-----
> > > > From: Hugh McLaughlin [mailto:hugh@k...]
> > > > Sent: Sunday, February 03, 2002 7:36 PM
> > > > To: ASP+
> > > > Subject: [aspx] Need Help - Second Post
> > > >
> > > >
> > > > I am having a great deal of difficulty getting a basic business
> > > > component to function. I have posted the code for the component
> > > > itself at:
> > > >
> > > > http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
> > > >
> > > > It consists of two simple functions - one that returns a simple
> > > > "hello
> > >
> > > > world" message and the other which calls a stored procedure to
> > > > return
> > > > data to populate a datagrid.
> > > >
> > > > The code for the ASPX page which calls the component can be found
> > > > at:
> > > >
> > > > http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
> > > >
> > > > I have also supplied the code for the web.config file at:
> > > >
> > > > http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
> > > >
> > > > The error message that I am receiving is:
> > > >
> > > > Compiler Error Message: BC30002: Type 'ManageUsersDB' is not
> > > > defined.
> > > >
> > > >
> > > > I am using Visual Studio Version 1 on a Windows 2000 server. I am
> > > > compiling the code within Visual Studio. It appears to compile
> > > > successfully. I then copy the file MyPortal.dll to the bin
> > directory
> > > > of the webroot. I think the code is correct since I have tested
> > > > it
> > in
> > >
> > > > a class within an ASP.Net page and it works fine. I suspect there
> > > > is
> >
> > > > a
> > >
> > > > configuration problem but I can't be positive and I am not sure
> > > > where
> > > > to look.
> > > >
> > > > Any help would be greatly appreciated. Thanks.
> > > > ---
> > > > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > > > unsubscribe send a blank email to $subst('Email.Unsub').
> > > >
> > > >
> > > > ---
> > > > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > > > unsubscribe send a blank email to $subst('Email.Unsub').
> > > >
> > >
> > > ---
> > > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > > unsubscribe send a blank email to $subst('Email.Unsub').
> > >
> >
> >
>
>
Message #11 by "Douglas Rohm" <dlr@m...> on Sun, 3 Feb 2002 18:19:44 -0500
|
|
Yes, it does need to be a virtual directory in IIS. Heheh, we can take
this offline as I'm sure we're now annoying the heck out of some people
(you're not bothering me so don't worry...).
-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...]
Sent: Sunday, February 03, 2002 11:23 PM
To: ASP+
Subject: [aspx] RE: Need Help - Second Post
Well, I tried moving the bin directory into the MyPortal directory, but
it still didn't work. Does MyPortal need to be a Virtual Directory?
> No, the bin directory should be a sub-directory of the application
> root. If your application is called MyPortal, then the bin directory
> should be a sub-directory of it. In the MyPortal directory, place the
> .aspx and .config files. In the bin folder, place the .dll.
>
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Sunday, February 03, 2002 10:28 PM
> To: ASP+
> Subject: [aspx] RE: Need Help - Second Post
>
>
> Tried it. Didn't work. Doesn't the bin directory need to be part of
> the webroot?
>
> > That's the problem there. The directory structure should be:
> >
> > ASPProject
> > Webroot
> > MyPortal
> > bin
> >
> > Give that a shot.
> >
> > Doug
> >
> > -----Original Message-----
> > From: Hugh McLaughlin [mailto:hugh@k...]
> > Sent: Sunday, February 03, 2002 10:03 PM
> > To: ASP+
> > Subject: [aspx] RE: Need Help - Second Post
> >
> >
> > I have the sturcture set up like this
> >
> > ASPProject
> > Webroot
> > Bin
> > MyPortal
> >
> > The MyPortal.dll is located in the bin directory. The .dll file was
> > created in Visual Studio which defaulted the dll to MyDocuments. I
> > simply copied the file to the bin directory. The MyPortal.aspx and
> > web.config files are located in the MyPortal folder. I have IIS set
> to
> > use the Webroot folder as the default path for this particular site.
> > Does the code look correct to you? I think it is and I suspect that
> > since I am using a different configuration thant the books, I
rpobably
>
> > have something messed up. Am I correct in assuming that the dll can
> be
> > created anywhere and simply copied to the appropraite directory?
> >
> > Thanks for your effort.
> >
> >
> >
> > > Can you tell me the directory structure that you're using? Where
> > > does
> >
> > > the .aspx file reside and where does the .bin file reside?
> > >
> > > -----Original Message-----
> > > From: Hugh McLaughlin [mailto:hugh@k...]
> > > Sent: Sunday, February 03, 2002 9:07 PM
> > > To: ASP+
> > > Subject: [aspx] RE: Need Help - Second Post
> > >
> > >
> > > Thanks Doug. I tried your suggestion without success. Like I
> > > mentioned
> > >
> > > in my post, I have used the same code in a class within an ASPX
> > > page and
> > >
> > > it worked. This is why I suspect it is a configuration issue.
> > > But
> > > I
> > > am
> > >
> > > so new at .Net, I can't be sure if it is the code or
> > > configuration.
> > >
> > > > Sorry about that last post of mine, I overlooked your web.config
> > > > file.
> > >
> > > > You *did* include the assembly. My apologies.
> > > >
> > > > Try using MyDataGrid.DataBind() in the .aspx page. I'll keep
> > > > looking to see if I can find anything else.
> > > >
> > > > Doug
> > > >
> > > > -----Original Message-----
> > > > From: Douglas Rohm [mailto:dlr@m...]
> > > > Sent: Sunday, February 03, 2002 2:46 PM
> > > > To: ASP+
> > > > Subject: [aspx] RE: Need Help - Second Post
> > > >
> > > >
> > > > You have to add the assembly to the web.config file:
> > > >
> > > > <configuration>
> > > > <system.web>
> > > > <compilation debug="true">
> > > > <assemblies>
> > > > <add assembly="MyPortal" />
> > > > </assemblies>
> > > > </compilation>
> > > > <customErrors mode="Off"/>
> > > > </system.web>
> > > > </configuration>
> > > >
> > > > See if that helps.
> > > >
> > > > Doug
> > > >
> > > > -----Original Message-----
> > > > From: Hugh McLaughlin [mailto:hugh@k...]
> > > > Sent: Sunday, February 03, 2002 7:36 PM
> > > > To: ASP+
> > > > Subject: [aspx] Need Help - Second Post
> > > >
> > > >
> > > > I am having a great deal of difficulty getting a basic business
> > > > component to function. I have posted the code for the component
> > > > itself at:
> > > >
> > > > http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
> > > >
> > > > It consists of two simple functions - one that returns a simple
> > > > "hello
> > >
> > > > world" message and the other which calls a stored procedure to
> > > > return data to populate a datagrid.
> > > >
> > > > The code for the ASPX page which calls the component can be
> > > > found
> > > > at:
> > > >
> > > > http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
> > > >
> > > > I have also supplied the code for the web.config file at:
> > > >
> > > > http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
> > > >
> > > > The error message that I am receiving is:
> > > >
> > > > Compiler Error Message: BC30002: Type 'ManageUsersDB' is not
> > > > defined.
> > > >
> > > >
> > > > I am using Visual Studio Version 1 on a Windows 2000 server. I
> > > > am
> > > > compiling the code within Visual Studio. It appears to compile
> > > > successfully. I then copy the file MyPortal.dll to the bin
> > directory
> > > > of the webroot. I think the code is correct since I have tested
> > > > it
> > in
> > >
> > > > a class within an ASP.Net page and it works fine. I suspect
> > > > there
> > > > is
> >
> > > > a
> > >
> > > > configuration problem but I can't be positive and I am not sure
> > > > where to look.
> > > >
> > > > Any help would be greatly appreciated. Thanks.
> > > > $subst('Email.Unsub').
> > > >
> > > >
> > > > $subst('Email.Unsub').
> > > >
> > >
> > > ---
> > > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > > unsubscribe send a blank email to $subst('Email.Unsub').
> > >
> >
> > ---
> > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > unsubscribe send a blank email to $subst('Email.Unsub').
> >
>
>
Message #12 by schmidtj@c... on Mon, 4 Feb 2002 08:53:13 -0500
|
|
The line in your html code in your aspx page looks something like this
right?
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="lab.aspx.vb"
Inherits="Profile.lab" %>
Where this says inherits="Profile.lab"
"lab" is the name of my class.
Now look in your .vb file associated with this aspx page.
One of your first lines of code should be something like:
"Public Class lab"
The word "lab" on this line has to match the "Inherits" line word as pointed
out above.
Let me know if you need a further explanation.
Thanks,
Jenna
-----Original Message-----
From: Douglas Rohm [mailto:dlr@m...]
Sent: Sunday, February 03, 2002 6:20 PM
To: ASP+
Subject: [aspx] RE: Need Help - Second Post
Yes, it does need to be a virtual directory in IIS. Heheh, we can take
this offline as I'm sure we're now annoying the heck out of some people
(you're not bothering me so don't worry...).
-----Original Message-----
From: Hugh McLaughlin [mailto:hugh@k...]
Sent: Sunday, February 03, 2002 11:23 PM
To: ASP+
Subject: [aspx] RE: Need Help - Second Post
Well, I tried moving the bin directory into the MyPortal directory, but
it still didn't work. Does MyPortal need to be a Virtual Directory?
> No, the bin directory should be a sub-directory of the application
> root. If your application is called MyPortal, then the bin directory
> should be a sub-directory of it. In the MyPortal directory, place the
> .aspx and .config files. In the bin folder, place the .dll.
>
> -----Original Message-----
> From: Hugh McLaughlin [mailto:hugh@k...]
> Sent: Sunday, February 03, 2002 10:28 PM
> To: ASP+
> Subject: [aspx] RE: Need Help - Second Post
>
>
> Tried it. Didn't work. Doesn't the bin directory need to be part of
> the webroot?
>
> > That's the problem there. The directory structure should be:
> >
> > ASPProject
> > Webroot
> > MyPortal
> > bin
> >
> > Give that a shot.
> >
> > Doug
> >
> > -----Original Message-----
> > From: Hugh McLaughlin [mailto:hugh@k...]
> > Sent: Sunday, February 03, 2002 10:03 PM
> > To: ASP+
> > Subject: [aspx] RE: Need Help - Second Post
> >
> >
> > I have the sturcture set up like this
> >
> > ASPProject
> > Webroot
> > Bin
> > MyPortal
> >
> > The MyPortal.dll is located in the bin directory. The .dll file was
> > created in Visual Studio which defaulted the dll to MyDocuments. I
> > simply copied the file to the bin directory. The MyPortal.aspx and
> > web.config files are located in the MyPortal folder. I have IIS set
> to
> > use the Webroot folder as the default path for this particular site.
> > Does the code look correct to you? I think it is and I suspect that
> > since I am using a different configuration thant the books, I
rpobably
>
> > have something messed up. Am I correct in assuming that the dll can
> be
> > created anywhere and simply copied to the appropraite directory?
> >
> > Thanks for your effort.
> >
> >
> >
> > > Can you tell me the directory structure that you're using? Where
> > > does
> >
> > > the .aspx file reside and where does the .bin file reside?
> > >
> > > -----Original Message-----
> > > From: Hugh McLaughlin [mailto:hugh@k...]
> > > Sent: Sunday, February 03, 2002 9:07 PM
> > > To: ASP+
> > > Subject: [aspx] RE: Need Help - Second Post
> > >
> > >
> > > Thanks Doug. I tried your suggestion without success. Like I
> > > mentioned
> > >
> > > in my post, I have used the same code in a class within an ASPX
> > > page and
> > >
> > > it worked. This is why I suspect it is a configuration issue.
> > > But
> > > I
> > > am
> > >
> > > so new at .Net, I can't be sure if it is the code or
> > > configuration.
> > >
> > > > Sorry about that last post of mine, I overlooked your web.config
> > > > file.
> > >
> > > > You *did* include the assembly. My apologies.
> > > >
> > > > Try using MyDataGrid.DataBind() in the .aspx page. I'll keep
> > > > looking to see if I can find anything else.
> > > >
> > > > Doug
> > > >
> > > > -----Original Message-----
> > > > From: Douglas Rohm [mailto:dlr@m...]
> > > > Sent: Sunday, February 03, 2002 2:46 PM
> > > > To: ASP+
> > > > Subject: [aspx] RE: Need Help - Second Post
> > > >
> > > >
> > > > You have to add the assembly to the web.config file:
> > > >
> > > > <configuration>
> > > > <system.web>
> > > > <compilation debug="true">
> > > > <assemblies>
> > > > <add assembly="MyPortal" />
> > > > </assemblies>
> > > > </compilation>
> > > > <customErrors mode="Off"/>
> > > > </system.web>
> > > > </configuration>
> > > >
> > > > See if that helps.
> > > >
> > > > Doug
> > > >
> > > > -----Original Message-----
> > > > From: Hugh McLaughlin [mailto:hugh@k...]
> > > > Sent: Sunday, February 03, 2002 7:36 PM
> > > > To: ASP+
> > > > Subject: [aspx] Need Help - Second Post
> > > >
> > > >
> > > > I am having a great deal of difficulty getting a basic business
> > > > component to function. I have posted the code for the component
> > > > itself at:
> > > >
> > > > http://www.hughmclaughlin.com/CodeSamples/MyPortalComponent.htm
> > > >
> > > > It consists of two simple functions - one that returns a simple
> > > > "hello
> > >
> > > > world" message and the other which calls a stored procedure to
> > > > return data to populate a datagrid.
> > > >
> > > > The code for the ASPX page which calls the component can be
> > > > found
> > > > at:
> > > >
> > > > http://www.hughmclaughlin.com/CodeSamples/MyPortalASPX.htm
> > > >
> > > > I have also supplied the code for the web.config file at:
> > > >
> > > > http://www.hughmclaughlin.com/CodeSamples/MyWebConfig.htm
> > > >
> > > > The error message that I am receiving is:
> > > >
> > > > Compiler Error Message: BC30002: Type 'ManageUsersDB' is not
> > > > defined.
> > > >
> > > >
> > > > I am using Visual Studio Version 1 on a Windows 2000 server. I
> > > > am
> > > > compiling the code within Visual Studio. It appears to compile
> > > > successfully. I then copy the file MyPortal.dll to the bin
> > directory
> > > > of the webroot. I think the code is correct since I have tested
> > > > it
> > in
> > >
> > > > a class within an ASP.Net page and it works fine. I suspect
> > > > there
> > > > is
> >
> > > > a
> > >
> > > > configuration problem but I can't be positive and I am not sure
> > > > where to look.
> > > >
> > > > Any help would be greatly appreciated. Thanks.
> > > > $subst('Email.Unsub').
> > > >
> > > >
> > > > $subst('Email.Unsub').
> > > >
> > >
> > > ---
> > > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > > unsubscribe send a blank email to $subst('Email.Unsub').
> > >
> >
> > ---
> > Change your mail options at http://p2p.wrox.com/manager.asp or to
> > unsubscribe send a blank email to $subst('Email.Unsub').
> >
>
>
|
|
 |