Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Problems with current site when use .NET framework 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nugnet - 01 Mar 2006 14:20 GMT
Hi,
  I have a site that works fine with v1.1. but when I run with v2.0 I
get the following HTTPException when trying to browse a page "There is
no build provider registered for the extension .sppx". It has further
details on how to define a buildProvider within machine.config or
web.config.

The exception is thrown from a custom handler I wrote that defines an
application mapping for my custom pages *.sppx.

The custom handler has the following code ..

IHttpHandler handler =
System.Web.UI.PageParser.GetCompiledPageInstance(        context.Request.FilePath,
context.Request.PhysicalPath, context );
handler.ProcessRequest(context);

The exception is thrown in the GetCompiledPageInstance call.

I have a few questions that I would appreciate help with
1. Has anyone encountered this themselves?
2. Any suggestions on how to get around this problem?
3. My main problem is that at runtime I want to find what framework
version is being used (can get this with System.Environment.Version)
and then if it is v2.0, configure the buildProvider setting somehow so
the framework will load the page correctly. Anyone have any ideas how
to do this at runtime.

Thanks in advance for any help
John
Christopher Reed - 04 Mar 2006 13:39 GMT
Does you have two versions of this handler, one for 1.1 and one for 2.0?
Signature

Christopher A. Reed
"The oxen are slow, but the earth is patient."

> Hi,
>   I have a site that works fine with v1.1. but when I run with v2.0 I
[quoted text clipped - 27 lines]
> Thanks in advance for any help
> John

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.