Cannot load default.aspx

  • Thread starter Thread starter Lubomir
  • Start date Start date
L

Lubomir

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
 
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 said:
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 said:
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
 
Back
Top