I am trying to create a template code behind file for a website which all
pages should be inherited from. This base class however, when I try to view
the aspx page in Visual studio .NET (2002), it gives me the error:
The file failed to load in the web form designer. Plese correct the
following error, then load it again: An exception occurred while trying to
create an instance of GManWebSync.tem plates.WebBase (the base class). The
exception was "Object reference not set to an instance of an object."
Despite the fact that the file displays as expected in the web browser. I am
able to view the html code of the page so is more of a nusance. I have moved
the header html tag to be written from the template, however I have not
taken out the header section of all the pages yet (but this problem occurs
with all pages). I am sure that all varibles are initialised before they are
used (assuming "titlebar = CType(LoadContr ol(Request.Appl icationPath &
"/Components/comtop.ascx"), comTop)" initalises titlebar) as it compiles and
functions as expected
The page structure is going to be a title bar (initialised with the above
line) and then a table with 2 columns with a menu in the left column
(currently not shown (as I am having difficulties including it), but
designed as a component) and a maintaince side in the right (in which my
manager wants to have some changes reflected in the menu e.g. changing a
users name will change the link in the left menu) . The template is designed
to have the code to write the header information, include the title bar (it
is a basic component), write the table, include the menu, write the
maintaince page (which inherits the template page) and close the table and
body.
Any suggestions as to what I should look at closer
--
Brian Barnes 4 1683
"Brian Barnes" <sp****@nospam. com> wrote in message
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. . I am trying to create a template code behind file for a website which all pages should be inherited from. This base class however, when I try to view the aspx page in Visual studio .NET (2002), it gives me the error:
The file failed to load in the web form designer. Plese correct the following error, then load it again: An exception occurred while trying to create an instance of GManWebSync.tem plates.WebBase (the base class). The exception was "Object reference not set to an instance of an object."
Despite the fact that the file displays as expected in the web browser. I am able to view the html code of the page so is more of a nusance. I have moved the header html tag to be written from the template, however I have not taken out the header section of all the pages yet (but this problem occurs with all pages). I am sure that all varibles are initialised before they are used (assuming "titlebar = CType(LoadContr ol(Request.Appl icationPath & "/Components/comtop.ascx"), comTop)" initalises titlebar) as it compiles and functions as expected
The page structure is going to be a title bar (initialised with the above line) and then a table with 2 columns with a menu in the left column (currently not shown (as I am having difficulties including it), but designed as a component) and a maintaince side in the right (in which my manager wants to have some changes reflected in the menu e.g. changing a users name will change the link in the left menu) . The template is designed to have the code to write the header information, include the title bar (it is a basic component), write the table, include the menu, write the maintaince page (which inherits the template page) and close the table and body.
Any suggestions as to what I should look at closer
It appear that this problem is a Visual Studio corruption problem as I went
to a backup of this site (before I first saw this error) and am still having
the problem. I am doing a repair install at present and will let you know
how it goes.
--
Brian Barnes
No Spam Proof e-mail
Use News Groups
"Brian Barnes" <sp****@nospam. com> wrote in message
news:uC******** ******@TK2MSFTN GP10.phx.gbl... "Brian Barnes" <sp****@nospam. com> wrote in message news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .I am trying to create a template code behind file for a website which all pages should be inherited from. This base class however, when I try to view the aspx page in Visual studio .NET (2002), it gives me the error:
The file failed to load in the web form designer. Plese correct the following error, then load it again: An exception occurred while trying to create an instance of GManWebSync.tem plates.WebBase (the base class). The exception was "Object reference not set to an instance of an object."
Despite the fact that the file displays as expected in the web browser. I am able to view the html code of the page so is more of a nusance. I have moved the header html tag to be written from the template, however I have not taken out the header section of all the pages yet (but this problem occurs with all pages). I am sure that all varibles are initialised before they are used (assuming "titlebar = CType(LoadContr ol(Request.Appl icationPath & "/Components/comtop.ascx"), comTop)" initalises titlebar) as it compiles and functions as expected
The page structure is going to be a title bar (initialised with the above line) and then a table with 2 columns with a menu in the left column (currently not shown (as I am having difficulties including it), but designed as a component) and a maintaince side in the right (in which my manager wants to have some changes reflected in the menu e.g. changing a users name will change the link in the left menu) . The template is designed to have the code to write the header information, include the title bar (it is a basic component), write the table, include the menu, write the maintaince page (which inherits the template page) and close the table and body.
Any suggestions as to what I should look at closer
It appear that this problem is a Visual Studio corruption problem as I went to a backup of this site (before I first saw this error) and am still having the problem. I am doing a repair install at present and will let you know how it goes.
Well it didn't go to well, I still have the same problem. The backup does
not work, nor does the original (although another website I am working on
does). I am sure that when I took the backup, there was no problem
--
Brian Barnes
No Spam Proof e-mail
Use News Groups
"Brian Barnes" <sp****@nospam. com> wrote in message
news:e5******** ******@TK2MSFTN GP10.phx.gbl... "Brian Barnes" <sp****@nospam. com> wrote in message news:uC******** ******@TK2MSFTN GP10.phx.gbl... "Brian Barnes" <sp****@nospam. com> wrote in message news:%2******** *******@TK2MSFT NGP09.phx.gbl.. .I am trying to create a template code behind file for a website which all pages should be inherited from. This base class however, when I try to view the aspx page in Visual studio .NET (2002), it gives me the error:
The file failed to load in the web form designer. Plese correct the following error, then load it again: An exception occurred while trying to create an instance of GManWebSync.tem plates.WebBase (the base class). The exception was "Object reference not set to an instance of an object."
Despite the fact that the file displays as expected in the web browser. I am able to view the html code of the page so is more of a nusance. I have moved the header html tag to be written from the template, however I have not taken out the header section of all the pages yet (but this problem occurs with all pages). I am sure that all varibles are initialised before they are used (assuming "titlebar = CType(LoadContr ol(Request.Appl icationPath & "/Components/comtop.ascx"), comTop)" initalises titlebar) as it compiles and functions as expected
The page structure is going to be a title bar (initialised with the above line) and then a table with 2 columns with a menu in the left column (currently not shown (as I am having difficulties including it), but designed as a component) and a maintaince side in the right (in which my manager wants to have some changes reflected in the menu e.g. changing a users name will change the link in the left menu) . The template is designed to have the code to write the header information, include the title bar (it is a basic component), write the table, include the menu, write the maintaince page (which inherits the template page) and close the table and body.
Any suggestions as to what I should look at closer
It appear that this problem is a Visual Studio corruption problem as I went to a backup of this site (before I first saw this error) and am still having the problem. I am doing a repair install at present and will let you know how it goes.
Well it didn't go to well, I still have the same problem. The backup does not work, nor does the original (although another website I am working on does). I am sure that when I took the backup, there was no problem
Now this is really getting confusing. My web service .asmx and .asmx.vb
files (when double clicking on them in the solution explorer) come up with
the error:
An exception occurred while trying to create an instance of GManWebSync.Bas e
(the Base class for the web service, not to be confused with
GManWebSync.tem plates.webBase) . The exception was "HttpContex t is not
available. This class can only be used in the context of an ASP.NET
request".
Despite the fact that the web service works as per normal (on both a backup
(that was taken before the original error, and was working perfectly) and my
most recent version), and another web site (as a completely different
project) has no issues whatsoever. I can however right click the file and
select view code to see the code. The only change to the system that I have
done is XP service pack 2.
Any idea's before I have to re-create the project?
--
Brian Barnes
No Spam Proof e-mail
Use News Groups
"Brian Barnes" <sp****@nospam. com> wrote in message
news:e0******** ******@TK2MSFTN GP12.phx.gbl... "Brian Barnes" <sp****@nospam. com> wrote in message news:e5******** ******@TK2MSFTN GP10.phx.gbl... "Brian Barnes" <sp****@nospam. com> wrote in message news:uC******** ******@TK2MSFTN GP10.phx.gbl... "Brian Barnes" <sp****@nospam. com> wrote in message news:%2******** *******@TK2MSFT NGP09.phx.gbl.. . I am trying to create a template code behind file for a website which all pages should be inherited from. This base class however, when I try to view the aspx page in Visual studio .NET (2002), it gives me the error:
The file failed to load in the web form designer. Plese correct the following error, then load it again: An exception occurred while trying to create an instance of GManWebSync.tem plates.WebBase (the base class). The exception was "Object reference not set to an instance of an object."
Despite the fact that the file displays as expected in the web browser. I am able to view the html code of the page so is more of a nusance. I have moved the header html tag to be written from the template, however I have not taken out the header section of all the pages yet (but this problem occurs with all pages). I am sure that all varibles are initialised before they are used (assuming "titlebar = CType(LoadContr ol(Request.Appl icationPath & "/Components/comtop.ascx"), comTop)" initalises titlebar) as it compiles and functions as expected
The page structure is going to be a title bar (initialised with the above line) and then a table with 2 columns with a menu in the left column (currently not shown (as I am having difficulties including it), but designed as a component) and a maintaince side in the right (in which my manager wants to have some changes reflected in the menu e.g. changing a users name will change the link in the left menu) . The template is designed to have the code to write the header information, include the title bar (it is a basic component), write the table, include the menu, write the maintaince page (which inherits the template page) and close the table and body.
Any suggestions as to what I should look at closer
It appear that this problem is a Visual Studio corruption problem as I went to a backup of this site (before I first saw this error) and am still having the problem. I am doing a repair install at present and will let you know how it goes.
Well it didn't go to well, I still have the same problem. The backup does not work, nor does the original (although another website I am working on does). I am sure that when I took the backup, there was no problem
Now this is really getting confusing. My web service .asmx and .asmx.vb files (when double clicking on them in the solution explorer) come up with the error:
An exception occurred while trying to create an instance of GManWebSync.Bas e (the Base class for the web service, not to be confused with GManWebSync.tem plates.webBase) . The exception was "HttpContex t is not available. This class can only be used in the context of an ASP.NET request".
Despite the fact that the web service works as per normal (on both a backup (that was taken before the original error, and was working perfectly) and my most recent version), and another web site (as a completely different project) has no issues whatsoever. I can however right click the file and select view code to see the code. The only change to the system that I have done is XP service pack 2.
Any idea's before I have to re-create the project?
Recreation didn't work. However, I now have a work around. Whenever I want
to go into design mode, I have it inherit page (as opposed my page template
base class).
I'm still looking for a more perminant solution.
--
Brian Barnes
No Spam Proof e-mail
Use News Groups This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Greg B |
last post by:
Created a simple Win32 application (using Visual Studio wizard)...
Am using Visual Studio (Enterprise Edition) 6.0, as well as Service
Pack 5.
At the start of 'WinMain' function, added the following two lines:
char* ptr = NULL;
*ptr = 'b';
Built the crashTestApp.exe in both Release and Debug configurations.
|
by: Alf P. Steinbach |
last post by:
// As usual the error message directs one to the report the bug.
//
// And as usual there is absolutely no way to do so without paying for
// the privilege...
//
// Or using three or four hours to find the _current_ reporting page...
#include <vector>
#include <iostream>
|
by: Somesh |
last post by:
#include<map>
#include<iostream>
#include<string>
using namespace std;
int main()
{
map <string,int> test;
|
by: Daniele |
last post by:
Hi,
how is it possible to create a project with a specific template, compile it
and close it? All with a c# script.
Thanks,
Daniele
|
by: Mark |
last post by:
Hopefully somebody can help me with this very frustrating problem.
In Dreamweaver I have a template page and a page created from this template
called Home.aspx. In Visual Studio I have a class inherited from
System.Web.UI.Page which represents the template (including all components
and associated events defined in the template). Then I have a codebehind
file for Home.aspx that defines a class (Home) that includes controls
specific to...
| |
by: fiona |
last post by:
Innovasys Ltd., a leader in help authoring and documentation tools,
today announced the inclusion of a tailored version of the Innovasys
HelpStudio help authoring product, HelpStudio Lite, in the Microsoft
Visual Studio 2005 Software Development Kit. By providing a full help
authoring environment within the Visual Studio 2005 SDK, Innovasys is
providing developers building components and products that integrate
with Visual Studio 2005 a...
|
by: KevinGPO |
last post by:
My application was developed under Visual C++ 6.0, ATL, MFC &
PlatformSDK Feb2003 (the last VC6 compatible version).
I am wondering if PlatformSDK Feb2003 is compatible with Visual
Studio.NET 2003? I am having major problems trying to port/build my
application under Visual Studio.NET 2003 using the unmanaged/native C++
compiler.
I was told that Visual Studio.NET 2003 had native C++ compiler support.
I am aware about the new C++ 1999...
|
by: terry.trent |
last post by:
I'm new to c# and Visual C# Express, and to normal programming in
general (some background in web programming), and i have a question
vital to my current project.
Basically, i have been asked to learn how to create new extensions for
a web application, and turns out that i need to use Visual Studio and
IIS together to do this.
One of the first steps is to create a web service from within Visual
Studio, using the ASP.NET Web Service...
|
by: fiona |
last post by:
Reading, Berkshire, UK 05 June 2007 - Crainiate Software make details
available of the release of Objecto Framework 2.0, an upgrade to their
enterprise business component framework, designed to make it easy for
programmers to create agile persisted business objects that are
reusable, customisable and scalable, without additional developer
tools.
Objecto uses object persistence and managed database technology to
allow developers to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |