Hi All,
Can someone help on this?
I have 2 ASP.NET applications, 1 built in 1.1 and the other on 2.0
In 1 of the aspx pages in my ASP.NET 2.0 application, I do Server.Execute and call another aspx page which is part of the ASP.NET 1.1 application. On doing this, I get this error: Invalid path for child request. A virtual path is expected.
Is there any solution for this except for using Response.Redirect (WHICH I CANT USE). If not then can someone suggest a wayout for this:
Whenever a new user signs up in my ASP.NET 2.0 application, I need to create a new user in my ASP.NET 1.1 application as well. Directly creating the new user in the ASP.NET 1.1 database is not possible and so I have 1 ASPX file in my ASP.NET 1.1 application which accepts data in form of querystring and does Response.Write <status>1</status> if it can successfully create a new user, else it does <status>0</status>. I need to read this status. Only if it is 1, I proceed further in my ASP.NET 2.0 application and add the new user in my ASP.NET 2.0 database as well. Please see below code to understand (this is a helper function in my ASP.NET 2.0 ASPX Page):
Private Function CreateUserInCommunityServer() As Boolean
Dim strUrl As String
Dim swTemp1 As New System.IO.StringWriter
Dim strTemp1 As String
strUrl = ConfigurationManager.AppSettings("CookingSpotCommunityServerFolderPath") & "/CreateUser.aspx"
strUrl = strUrl & "?username=" & EncryptorDecryptorClass.EncryptText(txtUserName.Text)
strUrl = strUrl & "&email=" & EncryptorDecryptorClass.EncryptText(txtEmail.Text)
strUrl = strUrl & "&password=" & EncryptorDecryptorClass.EncryptText(txtPassword.Text)
Server.Execute(strUrl, swTemp1)
strTemp1 = swTemp1.ToString
If strTemp1.IndexOf("<status>1</status>") >= 0 Then
Return True
End If
Return False
End Function
Thanks,
Raj
Cheers,
Raj
Raj Chaudhari
![]() |
0 |
![]() |
hello.
well, i think that you can allways use the webclient et al (httpwebrequest, httpwebresponse, etc...) to do that kind of thing (don't forget to pay attention to thecredentials that are sent)
--
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
![]() |
0 |
![]() |