One of the things you told me was to delete the web config it creates and to create my own. Can you point me in the direction on documentation for recreating it after migrating.
I am used to it being created as I design the aspx.
Right now I am getting the following error message. I think this is from IIS or either a database connection error, not sure which one. I have seem it before in an IIS error:
Error:
Line 37: by Microsoft that offers a single logon and core profile services for member sites. Line 38: --> Line 39: <authentication mode="Windows" /> Line 40: Line 41:
Code:
OfficeAdmin = False
End If
End Function
Sub OperLogon()
Dim sServerName As String
I did some reading last night and changed it to forms and that did not work. I removed the authentication=windows and now I am getting the following:
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. \web.config 39 I did a rebuild
on the site after removing this.
I'm going through something tough right now myself...
My three children are home today, President's day, and my 4 year old daughter asked me to install her new game...
Now I've got Cinderellas Magical Dollhouse installed on my Dev machine. [:$]
Seems like we think alike. I have been viewing the club starter kit web.config because my site it simular to to this one the user has to log on. I had thought about replacing mine with that one.
I will view the blog as well.
I hope you have fun with Cinderella, I always have to deal with Barbie and the Brats.[:)]
This is one of the tougher areas I tried to mention as we began this thread.
My suggestion is to not try and re-write those ASP parts at all.
Honestly it will be a lot easier for you if you experiment with, and learn, the new ASP.NET 2.0 data methods.
This site has some very good tutorials, videos, code samples.
Some of these discussions should also be taken to other areas of these forums.
I'm still willing to do what I can to help but this sort of discussion, data methods, is outside the scope of simple replies.
Honestly you'll find some of the new data methods in ASP.NET 2.0 really simple and quick compared to the old one-way server data in ASP.
I'm still a big fan of ASP but am so very much pleased with the changes in ASP.NET 2.0, relieved and pleased. [;)]
wisecarver
Participant
1169 Points
375 Posts
Re: Changing an active server page site to asp.net
Feb 16, 2007 08:16 PM|LINK
Indeed...We all have questions, thus communities like this one...The Framework is gigantic.
Glad to see it's going well however.
deemurphy
Member
94 Points
223 Posts
Re: Changing an active server page site to asp.net
Feb 18, 2007 01:28 PM|LINK
One of the things you told me was to delete the web config it creates and to create my own. Can you point me in the direction on documentation for recreating it after migrating.
I am used to it being created as I design the aspx.
Thanks
Dee
deemurphy_us@yahoo.com
wisecarver
Participant
1169 Points
375 Posts
Re: Changing an active server page site to asp.net
Feb 18, 2007 01:59 PM|LINK
That will be good enough, use the new web.config VS will create for you.
Make sure it works at all times during your project migration.
Keep backups and add to that web.config as you make changes/additions.
If you need examples of SQL Connection strings, Ajax, Handlers or any other tips you can always get them here.
Another good resource for working with your new APS.NET project is Google Microsoft: http://www.google.com/microsoft.html
deemurphy
Member
94 Points
223 Posts
Re: Changing an active server page site to asp.net
Feb 19, 2007 01:58 AM|LINK
Right now I am getting the following error message. I think this is from IIS or either a database connection error, not sure which one. I have seem it before in an IIS error:
Error:
Code:
OfficeAdmin = False
End If
End Function
Sub OperLogon()
Dim sServerName As String
Dee
deemurphy_us@yahoo.com
wisecarver
Participant
1169 Points
375 Posts
Re: Changing an active server page site to asp.net
Feb 19, 2007 12:01 PM|LINK
For now remove your Authentication section.
Take a look on MSDN and learn a bit about Authentication methods in asp.net, you'll probably want to change to the Forms method later.
deemurphy
Member
94 Points
223 Posts
Re: Changing an active server page site to asp.net
Feb 19, 2007 01:42 PM|LINK
I did some reading last night and changed it to forms and that did not work. I removed the authentication=windows and now I am getting the following:
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. \web.config 39 I did a rebuild on the site after removing this.
Dee
deemurphy_us@yahoo.com
wisecarver
Participant
1169 Points
375 Posts
Re: Changing an active server page site to asp.net
Feb 19, 2007 02:34 PM|LINK
Don't pull your hair out just yet.
Keep in mind the Migration tool was for version 1.1, many of the errors you will see may be due to the changes in version 2.0
It may help to install some of the newer Starterkits from this site and look at the way they handle authorization and roles.
This blog some time ago appears to address the problem you're having now:
http://blogs.msdn.com/robgruen/archive/2005/09/12/464196.aspx
I'm going through something tough right now myself...
My three children are home today, President's day, and my 4 year old daughter asked me to install her new game...
Now I've got Cinderellas Magical Dollhouse installed on my Dev machine. [:$]
deemurphy
Member
94 Points
223 Posts
Re: Changing an active server page site to asp.net
Feb 19, 2007 03:07 PM|LINK
Seems like we think alike. I have been viewing the club starter kit web.config because my site it simular to to this one the user has to log on. I had thought about replacing mine with that one.
I will view the blog as well.
I hope you have fun with Cinderella, I always have to deal with Barbie and the Brats.[:)]
deemurphy_us@yahoo.com
deemurphy
Member
94 Points
223 Posts
Re: Changing an active server page site to asp.net
Feb 19, 2007 06:55 PM|LINK
I have everything in the web.config working now.
I had made a copy of the status page, which is what they wanted changed first. While doing my dedugging I removed:
Dim
rs As ADODB.Recordset - it was not declared, I tried to declare it as a string and as an object, then just removed it to see further errors.5 lines that have
Call LogToFile(SQL, "Log") - I believe this is to write to the SQL log
rs =
New ADODB.Recordset - which I believe writes a new record to SQLrs.open(SQL, sConn)
While
Not rs.eof As I went further down I noticed that this would wirte to the database correctly because of how theResponse.Write
is written.
Dee
deemurphy_us@yahoo.com
wisecarver
Participant
1169 Points
375 Posts
Re: Changing an active server page site to asp.net
Feb 19, 2007 07:06 PM|LINK
This is one of the tougher areas I tried to mention as we began this thread.
My suggestion is to not try and re-write those ASP parts at all.
Honestly it will be a lot easier for you if you experiment with, and learn, the new ASP.NET 2.0 data methods.
This site has some very good tutorials, videos, code samples.
Some of these discussions should also be taken to other areas of these forums.
I'm still willing to do what I can to help but this sort of discussion, data methods, is outside the scope of simple replies.
Honestly you'll find some of the new data methods in ASP.NET 2.0 really simple and quick compared to the old one-way server data in ASP.
I'm still a big fan of ASP but am so very much pleased with the changes in ASP.NET 2.0, relieved and pleased. [;)]