I have Installed Visual studio 2005 Professional Edition to my local computer (OS: XP Prof), I have also asp.net 1.1 installed in it.
Now I am trying to convert one small application from ASP.Net 1.1 to ASP.Net 2.0 with conversion wizard but unfortunately it’s doing nothing I am getting these errors:
Unable to open the Web 'http://localhost/MyProj. Visual Web Developer does not support opening SharePoint Web sites. See Help
for more details.
If some can please help me to find our this issue, I would really appreciate that.
Thank you very much for your advice. I got through conversion. Now I am facing some strange conversion problme like I have .ascx file so I am getting error in that like in following line
In the vb file where the classascx is defined, is there a Namespace declaration? If not, you may need to add one to place the class in the ProjName namespace that it's expecting. In 2005, there is no root namespace for a Web Site (all pages and custom
controls are actually under an ASP namespace) as there was in 2003.
Thanks for reply, as It does not allow Project namespace looks like after conversion my project open wtih c:/../../Inetpub/wwwroot/Projname insted of http://localhost/ProjName.
I tried to change in namespance with http://localhost/ProjName then it does not open project and fiving me error that sharedpoint doe not support....althought I have change ASP.net version on virtual directory
I'm not entirely sure if I understand what you're asking. You're talking about namespaces and then referring to logical directories and web addresses. The namespace thing that I'm talking about is in code.
Namespace
MyProject
Partial Class _Default
Inherits System.Web.UI.Page
End Class
End Namespace
It looks like you're talking about the difference between opening a Web Site from the file system vs local IIS. Could you provide more explanation and the full error you were recieving?
After my project conversion from VS 2002 to VS2005 , I got it converted with some of warnings but Project was open with c:/../../Inetpub/wwwroot/Projname insted of
http://localhost/ProjName.
I started getting following errors.
I was getting error that “Global” key word in Global.asax is not valid, so I excluded Globle files from project then it went off.
Then I got error that "Could not load type 'ProjName.Classascx'" in
So I tried to import Project namespace to the VB file of that but I could not see that after Import word, I could see like system, Microsoft, me…..
So I thought because project is not open with http:// …. So I tried to change project route in solution file instead of c:/../../ to http://.... Then it denied opening that project with following error
“Unable to open the web http://localhost/project visual studio does not support sharepoint websites.”
althought I have change ASP.net version on virtual directory.
I seriously doubt that's the issue since he installed VS 2005 which won't even run without the 2.0 framework.
Sam,
Sorry I haven't made any posts over the weekend. So I have a few questions and some places to point you. First of all, there are some very explicit instructions for converting from VS 2003 to 2005. Did you read them carefully and follow all their instructions?
I really wouldn't start fooling with settings in a solution or project file. I'm still not 100% sure if you're running into compile errors now or conversion errors. If you're having conversion errors, I'd read the conversion instructions and make sure you
followed them correctly. If you're getting compile errors, could you post some sample code? The one last place that I'd like to point you towards is the new Web Application Project. You can find Scott Guthrie's post about it here:
http://weblogs.asp.net/scottgu/archive/2006/04/05/442032.aspx. I've seen a couple of places suggest that it may be easier to convert to the 2005 Web Application project from 2003 than
to the 2005 Web Site model.
Hi Cris,
Yes, I am getting error while conversion, I am doing 2005 Web Application project from 2002 (not 2003) . Whta is the stange I am looking is, I have oone .ascx file and I am inheting its its class to client side file. Here is the code
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="DVBanner.ascx.vb" Inherits="DataVault.DVBanner" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> and I am getting error that
Error 4 Could not load type 'DataVault.DVBanner'. " So I tried to Import DataVaut(Project Name ) to code file but its not comming up as my project open with c://..//wwwroot/datavault/
INSTED OF http://localhost/datavault
IbsNet
Member
35 Points
7 Posts
Please help......can not convert from ASP.Net 1.1 to ASP.Net 2.0
Apr 06, 2006 09:49 PM|LINK
I have Installed Visual studio 2005 Professional Edition to my local computer (OS: XP Prof), I have also asp.net 1.1 installed in it.
Now I am trying to convert one small application from ASP.Net 1.1 to ASP.Net 2.0 with conversion wizard but unfortunately it’s doing nothing I am getting these errors:
Unable to open the Web 'http://localhost/MyProj. Visual Web Developer does not support opening SharePoint Web sites. See Help for more details.
If some can please help me to find our this issue, I would really appreciate that.
Thanks a lot in advance
Sam
albertpascua...
All-Star
17520 Points
3475 Posts
MVP
Re: Please help......can not convert from ASP.Net 1.1 to ASP.Net 2.0
Apr 06, 2006 10:22 PM|LINK
That happens when you try to open with 1.1 or 2.0?
As looks like you did not set up the Virtual Directory. However if you want to convert to 2.0 open the project file, not the solution file.
Hope this helps
Al
Al
My Blog
IbsNet
Member
35 Points
7 Posts
Re: Please help......can not convert from ASP.Net 1.1 to ASP.Net 2.0
Apr 07, 2006 04:29 PM|LINK
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Filename.aspx.vb" Inherits="ProjName.classascx"%>
"Could not load type 'ProjName.Classascx'"
Any Idea
Thanks in advance
Sam
cubeberg
Member
710 Points
142 Posts
Re: Please help......can not convert from ASP.Net 1.1 to ASP.Net 2.0
Apr 07, 2006 04:34 PM|LINK
Sam,
In the vb file where the classascx is defined, is there a Namespace declaration? If not, you may need to add one to place the class in the ProjName namespace that it's expecting. In 2005, there is no root namespace for a Web Site (all pages and custom controls are actually under an ASP namespace) as there was in 2003.
My Blog
IbsNet
Member
35 Points
7 Posts
Re: Please help......can not convert from ASP.Net 1.1 to ASP.Net 2.0
Apr 07, 2006 05:30 PM|LINK
I tried to change in namespance with http://localhost/ProjName then it does not open project and fiving me error that sharedpoint doe not support....althought I have change ASP.net version on virtual directory
Thanks
cubeberg
Member
710 Points
142 Posts
Re: Please help......can not convert from ASP.Net 1.1 to ASP.Net 2.0
Apr 07, 2006 06:06 PM|LINK
Sam,
I'm not entirely sure if I understand what you're asking. You're talking about namespaces and then referring to logical directories and web addresses. The namespace thing that I'm talking about is in code.
Namespace
MyProjectEnd Namespace
It looks like you're talking about the difference between opening a Web Site from the file system vs local IIS. Could you provide more explanation and the full error you were recieving?
Chris
My Blog
IbsNet
Member
35 Points
7 Posts
Re: Please help......can not convert from ASP.Net 1.1 to ASP.Net 2.0
Apr 07, 2006 06:39 PM|LINK
Oh sorry Its my bad, I mean to say soution file,
Let me explain you whole story,
After my project conversion from VS 2002 to VS2005 , I got it converted with some of warnings but Project was open with c:/../../Inetpub/wwwroot/Projname insted of http://localhost/ProjName.
I started getting following errors.
I was getting error that “Global” key word in Global.asax is not valid, so I excluded Globle files from project then it went off.
Then I got error that "Could not load type 'ProjName.Classascx'" in
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Filename.aspx.vb" Inherits="ProjName.classascx"%>
So I tried to import Project namespace to the VB file of that but I could not see that after Import word, I could see like system, Microsoft, me…..
So I thought because project is not open with http:// …. So I tried to change project route in solution file instead of c:/../../ to http://.... Then it denied opening that project with following error
“Unable to open the web http://localhost/project visual studio does not support sharepoint websites.” althought I have change ASP.net version on virtual directory.
Its really frustrating when nothing works L
Thanks for your interested in my problem
Hope your advice may solve my problem
C#CodeMaster
Member
5 Points
1 Post
Re: Please help......can not convert from ASP.Net 1.1 to ASP.Net 2.0
Apr 10, 2006 07:21 AM|LINK
cubeberg
Member
710 Points
142 Posts
Re: Please help......can not convert from ASP.Net 1.1 to ASP.Net 2.0
Apr 10, 2006 12:46 PM|LINK
Codemaster,
I seriously doubt that's the issue since he installed VS 2005 which won't even run without the 2.0 framework.
Sam,
Sorry I haven't made any posts over the weekend. So I have a few questions and some places to point you. First of all, there are some very explicit instructions for converting from VS 2003 to 2005. Did you read them carefully and follow all their instructions? I really wouldn't start fooling with settings in a solution or project file. I'm still not 100% sure if you're running into compile errors now or conversion errors. If you're having conversion errors, I'd read the conversion instructions and make sure you followed them correctly. If you're getting compile errors, could you post some sample code? The one last place that I'd like to point you towards is the new Web Application Project. You can find Scott Guthrie's post about it here: http://weblogs.asp.net/scottgu/archive/2006/04/05/442032.aspx. I've seen a couple of places suggest that it may be easier to convert to the 2005 Web Application project from 2003 than to the 2005 Web Site model.
Chris
My Blog
IbsNet
Member
35 Points
7 Posts
Re: Please help......can not convert from ASP.Net 1.1 to ASP.Net 2.0
Apr 10, 2006 04:41 PM|LINK
Yes, I am getting error while conversion, I am doing 2005 Web Application project from 2002 (not 2003) . Whta is the stange I am looking is, I have oone .ascx file and I am inheting its its class to client side file. Here is the code
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="DVBanner.ascx.vb" Inherits="DataVault.DVBanner" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> and I am getting error that
Error 4 Could not load type 'DataVault.DVBanner'. " So I tried to Import DataVaut(Project Name ) to code file but its not comming up as my project open with c://..//wwwroot/datavault/
INSTED OF http://localhost/datavault
Thats killing me..
I hope detail explains the problem.
Thanks man
Sam