473,378 Members | 1,218 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Cannot load default.aspx

Hi,

I am using VS 2008.

I am working on a web site, with the code behind. Everything worked fine,
but from some reason, I started to get error message in a browser while
debugging the application: "Could not load type "MyPartialClassName"

"MyPartialClassName" is the class in the codebehind file in default.aspx.cs
file.

Page directive is :
<%@ Page Language="C#" AutoEventWireup="true CodeBehind="Default.asapx.cs"
Inherits="MyNamespace.MyPartialClassName" %>

When I changed CodeBehind to CodeFile, page was loaded but when conencted to
database I get error that IIS is not configured to communicate on port XX.

Before it all works fine with CodeBehind attribute. All stopped to work when
we changed compiler directive from Any CPU to X86. I think something has
changed in website VS project settings, but I am not sure what.

Do you have any ideas?

Thanks,

Lubomir
Jul 8 '08 #1
2 2414
try repairing asp.net using aspregiis -I don’t quote me on the exact syntax

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
-------------------------------------------------------
"Lubomir" <Lu*****@discussions.microsoft.comwrote in message
news:AA**********************************@microsof t.com...
Hi,

I am using VS 2008.

I am working on a web site, with the code behind. Everything worked fine,
but from some reason, I started to get error message in a browser while
debugging the application: "Could not load type "MyPartialClassName"

"MyPartialClassName" is the class in the codebehind file in
default.aspx.cs
file.

Page directive is :
<%@ Page Language="C#" AutoEventWireup="true CodeBehind="Default.asapx.cs"
Inherits="MyNamespace.MyPartialClassName" %>

When I changed CodeBehind to CodeFile, page was loaded but when conencted
to
database I get error that IIS is not configured to communicate on port XX.

Before it all works fine with CodeBehind attribute. All stopped to work
when
we changed compiler directive from Any CPU to X86. I think something has
changed in website VS project settings, but I am not sure what.

Do you have any ideas?

Thanks,

Lubomir
Jul 10 '08 #2
re:
!try repairing asp.net using aspregiis -I don't quote me on the exact syntax

The exact syntax is :

aspnet_regiis -i

If a misconfiguration has occurred, running

aspnet_regiis -u

....before running

aspnet_regiis -i

....fixes most default configuration problems.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Alvin Bruney [ASP.NET MVP]" <vapor dan using hot male spam filterwrote in message
news:19**********************************@microsof t.com...
try repairing asp.net using aspregiis -I don't quote me on the exact syntax

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
-------------------------------------------------------
"Lubomir" <Lu*****@discussions.microsoft.comwrote in message
news:AA**********************************@microsof t.com...
>Hi,

I am using VS 2008.

I am working on a web site, with the code behind. Everything worked fine,
but from some reason, I started to get error message in a browser while
debugging the application: "Could not load type "MyPartialClassName"

"MyPartialClassName" is the class in the codebehind file in default.aspx.cs
file.

Page directive is :
<%@ Page Language="C#" AutoEventWireup="true CodeBehind="Default.asapx.cs"
Inherits="MyNamespace.MyPartialClassName" %>

When I changed CodeBehind to CodeFile, page was loaded but when conencted to
database I get error that IIS is not configured to communicate on port XX.

Before it all works fine with CodeBehind attribute. All stopped to work when
we changed compiler directive from Any CPU to X86. I think something has
changed in website VS project settings, but I am not sure what.

Do you have any ideas?

Thanks,

Lubomir

Jul 10 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Do | last post by:
Hi, I simply try to add new default webforms to my project and none of them can load. Has anybody received an error like this? Thanks, Do Parser Error
12
by: Ian Murphy | last post by:
Hopefully someone else has seen something similar. We are experiencing an odd problem with aspnet, iis6 and w2k3. I have written a small site which works fine during the day. Each morning however...
2
by: Steve M | last post by:
I am having a really strange problem. I have a site setup in a virtual directory that fails with the error below. It works on other web servers that are network load balanced with this server. I...
4
by: Charts | last post by:
6/23/05 ..NET Development\Framework\dotnet.framework.aspnet Visual Studio 2005 Beta 2 project cannot work in IIS virtual directory I used Visual Studio 2005 Beta 2 to build a simple new...
1
by: Dhruba Bandopadhyay | last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm....
11
by: scott | last post by:
Hi, From IIS6 and from a session on the 2003 server i attempt to browse to http://localhost/default.aspx and get the following error: Description: An error occurred during the processing of...
1
by: Radu | last post by:
Hi. I am trying to localize a page AND simulate the AJAX watermarks in it, i.e. the textbox contains the text "Enter your name", or "Entrez votre nom", for instance, then on click, delete this...
5
by: Author | last post by:
I followed the example at http://support.microsoft.com/kb/308001/EN-US/ and created my own HttpHandler. Here is the code: using System.Web; namespace MyNameSpace { public class...
5
by: Med | last post by:
Hi, Initial load of my pre-compiled ASP.NET app takes more than 50 seconds to load after site has been idle for a while. Then it become fairly fast. Followings are my app/hardware configs: ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.