CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: Date Entered: 11/17/2006 1:00:45 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 6 Views: 63 Favorited: 0 Favorite
7 Items, 1 Pages 1 |< << Go >> >|
"ljp007" <>
NewsGroup User
VS 2005 App Code Compilation11/17/2006 1:00:45 AM

0

I'm just getting started with VS 2005. One of the questions I have is regarding the App Code folder. I write my VB class code and drop the .vb file in the App Code folder. Then in my Webform .asp page I can access my classes. My question is how does the webform know about the classes in the App Code folder? I thought the class code in the App Code folder would get compiled into an assembly (.dll) and this would be placed in the bin folder. However, I have not created a bin folder and no .dll file has been created by VS. Is there an assembly being built behind the scenes which contains references to the classes I create in the App Code folder? Which brings me to my next question. If I have a .dll file containing classes, do I simply need to create the bin folder, add the .dll to the bin and then I can directly reference the classes in my .aspx page?

 Thanks for any clarification on the App Code, bin, and referencing classes questions which seem to always be lingering.

-lance

"vcsjones" <>
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 5:57:14 AM

0

ASP.NET 2.0 does dynamic compilation. Any code in the App_Code folder is compiled into the App_Code.dll assembly. This Assembly is created during the Application Startup.

ljp007:
Is there an assembly being built behind the scenes which contains references to the classes I create in the App Code folder

That is pretty much it.

As far as using already existing Assemblies, yes you create the bin folder and put your assemblies in there, then you can reference them.


Cheers,
       Kevin Jones


"ljp007" <>
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 6:36:35 PM

0

So if I work on a .VB file in the App code folder and I modify it locally, then want to make the changes availabe on my remote server, do I only need to FTP the .VB file and not worry about moving around the App_Code.dll assembly?

 Thanks
 

"vcsjones" <>
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 7:58:45 PM

0

That is correct. When a file changes in the App_Code folder, the assembly is automatically recompiled. No need to worry about compilation.
Cheers,
       Kevin Jones


"nolazabal" <>
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 9:18:13 PM

0

Do you have to distribute any vb codebehind for my aspx pages? With the project as well?

"Mikhail Arkhip
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 9:27:22 PM

0

Yes, you need to publish vb files along with aspx if you want server to take care of the compilation.
Thanks

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

This posting is provided "AS IS" with no warranties, and confers no rights.
"nolazabal" <>
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 9:54:42 PM

0

ty very much for the response.

btw. great job you guys responding vey fast to forum questions Yes 

 

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:













two sites with one login base: how to save different profiles?

problems with createuserwizard and changepassword

recursive query the user in roles

membershipprovider not showing changepassword function

aspnet user write permissions

fileupload security issue

convert existing user db to net .net membership db

gridview1.datasource = membership.getallusers();

logout process after closing browser

forms authentication

help..security gates

extending membership and roles to consider groups

using manage roles in web admin results thrown an exception

help! single forms authentication for multiple asp.net 2.0 applications on different hosts

create user wizard - no controls declared ???

login's remember me

authorization do a specific folder

unable to login, but user name in table

digital signatures with x509

delegation with secondary website

need some help with membership.

custom 'roles' and login

mixing windows authentication and forms authentication

loginview control

applicationname in membership provider config

installing ssl on windows 2000 server

unable to log out after setting domain in auth cookie

custom membershipprovider

this application was precompiled with personalization turned off

paypal security header invalid in iis [:s]

login controls?

setting password for aspnetdb

forms authentication question

how does membership magicly connect to roles?

user spamming

how to assign permissions on file

how to check .net 1.1 code access in client machine from webpage

[help!] how do i redirect roles to customized pages using the login control?

display links on a website depending on the os-rights of the requesting user?

could not load type 'custommembershipprovider'.

authenticating from a different domain

set and control roles on a site which is on the hosting server

aspnetdb.mdf

protecting multiple directories in one application

authentication problem

i authenticate my app by using forms but cannot get security from history in internet explorer

logon failure: unknown user name or bad password

some newbie questions on security implementation.

user login

using application pool process identity with delegation level impersonation

   
  Privacy | Contact Us
All Times Are GMT