•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 361,920 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,556 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 944 | Replies: 5 | Solved
![]() |
I'm using Visual Studio and I'm learning ASP.net, to learn I'm following the VWD Videos available on the Microsoft website.
I watched one of the videos and the guy used a Global.asax file, I followed exactly as I did but at the top of the file where the
"C:\Documen....\Scripts\Global.asax: ASP.net runtime error: There is no build provider registered for the extension '.asax'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure it has a BuildProviderAppliesToAttribute attribute which includes the value 'web' or 'All'"
I managed to fix the problem by moving the Global.asax file back to the main folder (root folder) but when I have it in the Scripts folder I've made it messes up. I like to organise everything that I can, all the vb files of pages in a separate folder (that's another thing, how can I get it so the pages automatically create the VB pages in a certain folder and connect to it?) and stylesheets in another etc. but it doesn't seem to want to work with the Global.asax file. Is there anyway to fix this?
I watched one of the videos and the guy used a Global.asax file, I followed exactly as I did but at the top of the file where the
<%@ Application Language="VB" %> is it's underlined yellow (possibly some other colour in different colour schemes) and it gives me the following error:"C:\Documen....\Scripts\Global.asax: ASP.net runtime error: There is no build provider registered for the extension '.asax'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure it has a BuildProviderAppliesToAttribute attribute which includes the value 'web' or 'All'"
I managed to fix the problem by moving the Global.asax file back to the main folder (root folder) but when I have it in the Scripts folder I've made it messes up. I like to organise everything that I can, all the vb files of pages in a separate folder (that's another thing, how can I get it so the pages automatically create the VB pages in a certain folder and connect to it?) and stylesheets in another etc. but it doesn't seem to want to work with the Global.asax file. Is there anyway to fix this?
Stone In Focus - Caffeine Group - CoffeePHP - Open Notes - Onyx - Redpoint Network - Espresso
Please Organize the web.config and global.asax in the same folder
Regards
razool
Regards
razool
•
•
•
•
I'm using Visual Studio and I'm learning ASP.net, to learn I'm following the VWD Videos available on the Microsoft website.
I watched one of the videos and the guy used a Global.asax file, I followed exactly as I did but at the top of the file where the<%@ Application Language="VB" %>is it's underlined yellow (possibly some other colour in different colour schemes) and it gives me the following error:
"C:\Documen....\Scripts\Global.asax: ASP.net runtime error: There is no build provider registered for the extension '.asax'. You can register one in the <compilation><buildProviders> section in machine.config or web.config. Make sure it has a BuildProviderAppliesToAttribute attribute which includes the value 'web' or 'All'"
I managed to fix the problem by moving the Global.asax file back to the main folder (root folder) but when I have it in the Scripts folder I've made it messes up. I like to organise everything that I can, all the vb files of pages in a separate folder (that's another thing, how can I get it so the pages automatically create the VB pages in a certain folder and connect to it?) and stylesheets in another etc. but it doesn't seem to want to work with the Global.asax file. Is there anyway to fix this?
Here's the screenshot, as you can see my Global.asax file and web.config file aren't in the same folder, and yes it does work if they're in the same folder
but It would be nice to be able to organise it as I have done there as you may see on the right
but It would be nice to be able to organise it as I have done there as you may see on the right
Stone In Focus - Caffeine Group - CoffeePHP - Open Notes - Onyx - Redpoint Network - Espresso
Hi
you shouldn't organized global.asax in script folder.
global.aspx should be resides in the root directory of you asp.net application. more over there should be only one global.asax in asp.net app.
please refer the following link
http://msdn2.microsoft.com/en-us/library/2027ewzw.aspx
http://aspalliance.com/1114_Understa...balasax_file.2
Regards
razool
you shouldn't organized global.asax in script folder.
global.aspx should be resides in the root directory of you asp.net application. more over there should be only one global.asax in asp.net app.
please refer the following link
http://msdn2.microsoft.com/en-us/library/2027ewzw.aspx
http://aspalliance.com/1114_Understa...balasax_file.2
Regards
razool
Ah, thank you for clarifying that for me razool
shame really, I like to keep everything neat and tidy heh.
shame really, I like to keep everything neat and tidy heh. Stone In Focus - Caffeine Group - CoffeePHP - Open Notes - Onyx - Redpoint Network - Espresso
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- urgent: session timeout occurs unexpectedly(given both web.config & global.asax code) (ASP.NET)
- .net authentication / refresh problem (ASP.NET)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- ASP.Net Directory Problems (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: How to add mouseover event on hyperlink with in a gridview?
- Next Thread: .NET v3.5 ScriptManager problem


Linear Mode