|
Hi,
I did the same thing, but still I am getting the following message. Can you please help me. I have created a web application (WA) and a master page in it and then I have implemented classes MasterPageVirtualFile and MasterPageVirtualFile in it.
Then I have created a virtual directory mapping this application physical folder (MasterPageVD).
Then I have another applications default page in that I am using the reference of (WA) and in Global.asax I am registering Master Page path. I am getting the following message. Where am I missing? Please help me.
Thanks in advance.
"System.ArgumentException: The virtual path '/Internet/apps/MasterPageDir/MasterPage.master' maps to another application, which is not allowed"
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
I found that
assembly.GetManifestResourceStream(MasterPageVirtualPathProvider.VirtualPathProviderResourceLocation + "." + resourceFileName)
is returning null, is it not used for the web applications, is this function only used for class libraries?
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Sorry I got it friend I would post the code very soon. Thanks for all your support.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
Just now i see your reply.Glad you solved it
You have to learn to think like a computer or teach him to think like a human...
----Kornfeld Eliyahu Peter
|
|
|
|
|
Hi,
I have created new web application and it is mapped to the following url 'http://localinternet:80/'.
But I want to remap the application URL with my defined virtual directory ie. 'http://localinternet/Internet/apps/CNPWeb4.5/Ffvp', but its allowing me to do this.
Can anybody help me please? Any sort of help would be helpful.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
First of all what error you are getting? which version of IIS you are using.
|
|
|
|
|
Sorry I got it sorted out, the problem was when we open the project properties in web section there we have option called create virtual directory. It wasn't doing it by displaying message the directory is already mapped to different folder.
By checking different options on the same web section I got it sorted out.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
cool
|
|
|
|
|
difference between server site and alient
|
|
|
|
|
|
i have project when i run the project in bin\debub\tespage.html one is creating and opening the that file only . its not showing localhost\aspx page.
its opening the entire root folder in the address bar of the browser
|
|
|
|
|
|
in solution explorer -> (right click) on the *.aspx page and click set as start page.
|
|
|
|
|
your are not select particular page to default, you should make your page default page simply right click on page in solution explorer and check make as default.
|
|
|
|
|
Could anyone suggest me where I can find free 3d Chart control for asp.net to draw a scatter plot.
|
|
|
|
|
|
|
Hi Experts,
I am not real sure why this code doesn't work any more.
When a user logs into the system, we perform a check based on his/her session Id to see if his/her profile is update to date.
If any field on his/her profile page is blank, display a message informing him/her to update his/her personal profile.
It stopped working.
I think the reason it stopped working is that when you query the database, no rows are returned. All are blank.
Does anyone know what I have to do to fix this?
If Not IsPostBack Then
Dim myConnectionString As [String] = ConfigurationManager.ConnectionStrings("DBConnectionString").ConnectionString
Dim myConnection As New SqlConnection(myConnectionString)
Dim nameTB As String
Dim AddressTB As String
Dim emailTB As String
Dim phoneTB As String
Dim PrecinctTB As String
Dim PositionTB As String
Try
myConnection.Open()
Dim cmd2 As New SqlCommand("Select l.FullName,l.address,l.Phone_nbr,l.email,l.precinct,p.position_title from Users l inner join Positions p on l.positionId = p.positionId and l.username = @username", myConnection)
cmd2.Parameters.AddWithValue("@username", Session("username"))
cmd2.Parameters.AddWithValue("@email", Session("UserId"))
Dim dr2 As SqlDataReader = cmd2.ExecuteReader()
If dr2.Read() Then
nameTB = dr2("FullName").ToString()
AddressTB = dr2("address").ToString()
phoneTB = dr2("phone_nbr").ToString()
emailTB = dr2("email").ToString()
PrecinctTB = dr2("precinct").ToString()
PositionTB = dr2("Position_title").ToString()
dr2.Close()
If nameTB = "" Or AddressTB = "" Or phoneTB = "" Or emailTB = "" Or PrecinctTB = "" Or PositionTB = "" Then
lblMessage.Text = "Please update your personal information"
Else
End If
lblMessage.Text = ""
End If
Catch ex As SqlException
Response.Write("<SCRIPT LANGUAGE='JavaScript'>alert('" + ex.Message + "')</SCRIPT>")
Finally
myConnection.Close()
End Try
End If
Thanks a lot in advance
|
|
|
|
|
Instead of politely show him a message of "Please update...", redirect him to the update page...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
You are using an INNER JOIN to join Positions table, it could be possible that there is no record of that user in the positions table and causing dr2.Read() to return no records at all, Try using a LEFT JOIN and see what happens.
|
|
|
|
|
Actually,that seemed to have worked.
From positions left join Users.
Thanks for that suggestions.
|
|
|
|
|
Hi All,
I am getting the following error, please help me in fixing the problem
Server Error in '/Internet/apps/CNPWeb4.5/ORFfvpProd' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'DIS.CnpWeb.ORFfvpProd.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="DIS.CnpWeb.ORFfvpProd.Global" %>
Source File: /Internet/apps/CNPWeb4.5/ORFfvpProd/global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18067
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
modified 1-Apr-14 17:14pm.
|
|
|
|
|
What is it about that message that is not clear? Where is the source for DIS.CnpWeb.ORFfvpProd.Global ?
|
|
|
|
|
It is in correct location means in the same folder and name space where global.asax is located.
The strange thing about it is, when I remove bin and obj folders, clean and rebuild the application, close the visual studio and reopen it again, and finally remove the application as application and then converting it back again as application. It runs good.
But I have to do all these steps whenever I change anything in the code. It is seeming mess for me all the time if I have to do it.
May be it something to do with its pdb files, is it because I have taken another web application changed its name and everything and then joined it into my solution. May be it is because of it? Please help me in making a permanent solution to it.
Every time doing the above steps may create more problems to my development time. Please any kind of help would help me a lot.
Thanks in advance.
Thanks & Regards,
Abdul Aleem Mohammad
St Louis MO - USA
|
|
|
|
|
indian143 wrote: May be it something to do with its pdb files Most unlikely, since they are the project debug files used only by Visual Studio. It is much more likely that a path has been lost during a reorganisation or build of your files. There are a number of other reports of the same issues found by Google[^], which may help you.
|
|
|
|