Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Having trouble....


Message #1 by "Jeff Dupont" <jdupont@j...> on Thu, 21 Feb 2002 18:47:17
I'm trying to design a web application using VS.NET and I'm having a bit 

of trouble. First, I'm trying to authenticate a user from the database 

using custom controls (.ascx) and everything seems to work fine, it's just 

that it's not saving the SetAuthCookie(). When I check to see if what the 

username is from the cookie it's blank and says that authenticated = 

False. So I went into the web.config and changed the Authentication Type 

from Windows to Forms (which is what i'm using)... Thought that that would 

fix my problem, but now I'm getting a global.asax Error:



Description: An error occurred during the parsing of a resource required 

to service this request. Please review the following specific parse error 

details and modify your source file appropriately. 



Parser Error Message: Could not load type 'lydNet.Global'.



Source Error: 





Line 1:  <%@ Application Codebehind="Global.asax.vb" 

Inherits="lydNet.Global" %>



 



Source File: d:\inetpub\wwwroot\lydNET\global.asax    Line: 1 





---------------------------------------------------------------------------

-----

Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET 

Version:1.0.3705.0 



Can't figure out why it's not working... Please HELP!!!



Jeff Dupont

Epic Consulting
Message #2 by "McCloy, Russell" <Russell.McCloy@B...> on Fri, 22 Feb 2002 06:39:38 +1100

Hi there,



I just had the same error.

What I was doing was just saving in VS instead of Actually running the (CTRL

F5)

When you run the app. or debug it, it creates DLL's for your code behind

form classes.

When you just save it these DLL's are not replaced.

Im just guessing!



thanks



RUSs



-----Original Message-----

From: Jeff Dupont [mailto:jdupont@j...]

Sent: Friday, 22 February 2002 5:47 AM

To: aspx_beginners

Subject: [aspx_beginners] Having trouble....





I'm trying to design a web application using VS.NET and I'm having a bit 

of trouble. First, I'm trying to authenticate a user from the database 

using custom controls (.ascx) and everything seems to work fine, it's just 

that it's not saving the SetAuthCookie(). When I check to see if what the 

username is from the cookie it's blank and says that authenticated = 

False. So I went into the web.config and changed the Authentication Type 

from Windows to Forms (which is what i'm using)... Thought that that would 

fix my problem, but now I'm getting a global.asax Error:



Description: An error occurred during the parsing of a resource required 

to service this request. Please review the following specific parse error 

details and modify your source file appropriately. 



Parser Error Message: Could not load type 'lydNet.Global'.



Source Error: 





Line 1:  <%@ Application Codebehind="Global.asax.vb" 

Inherits="lydNet.Global" %>



 



Source File: d:\inetpub\wwwroot\lydNET\global.asax    Line: 1 





---------------------------------------------------------------------------

-----

Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET 

Version:1.0.3705.0 



Can't figure out why it's not working... Please HELP!!!



Jeff Dupont

Epic Consulting




$subst('Email.Unsub').


  Return to Index