|
nazimghori wrote: I published my website and then i copied my project folder in www r
After publishing the site, you have to deploy the site on IIS, and does not mean that just putting the code on wwwroot.
Do the Following Steps :
1. Published the code.
2. Put the code into wwwroot
3. Open IIS > You will see there should be a folder with the name of your web application
4. Right Click on that and Click on Properties.
5. Click on Create Virtual Directory Folder.
6. Set additional Setting if you need
7. Then try to access using http://localhost/virtualdirectory/home.aspx
Let me know if you have any issue.
|
|
|
|
|
THANK YOU VERY MUCH
I DID THE SAME AS U SUGGESTED...
BUT THERE IS NO OPTION LIKE CREATE VIRTUAL DIRECTORY ON RIGHT CLICK OF MY FOLDER.
SO PLEASE SUGGEST HOW CAN I GET THAT.
|
|
|
|
|
|
hello
thanks i have done the way you told and it worked thanks for help.
Now when i run my application there is error like:
XML Parsing Error: syntax error
Location: http://localhost/handloom/Home.aspx
Line Number 1, Column 1:
can u please suggest what this error is..
thank you.
|
|
|
|
|
That because you didn't set the framework version in Virtual Directory Properties. Goto the properties of the virtual directory, then go to ASP.NET Tab, check the asp.net version, If your web application developed in asp.net 2.0 then it should be 2.0.x.x .
Set that, apply and try again !!
It will work.
|
|
|
|
|
hello
thanks for your help it is working now
but the promblem is for metabase this time i am using iis(v 5.1) with asp.net 2005 with frame work 2.0 and dont know how to configure it.
i am doing this for first time so
can you please suggest how this works..
Thank you.
|
|
|
|
|
nazimghori wrote: but the promblem is for metabase this time i am using iis(v 5.1) with asp.net 2005 with frame work 2.0 and dont know how to configure it.
What do you mean by meta base ? Can you tell me what actual error are you getting ? Are you able to view your page now?
|
|
|
|
|
hello
The error that i got is like.
if i use my browser as netscape navigator than below error is displayed.
Failed to access IIS metabase.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.
if i use my browser as IE then error is like.
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
Please suggest some solution for this.
modified on Monday, July 6, 2009 12:33 AM
|
|
|
|
|
Did you try that What CG has already Suggested ?
You have installed IIS before or After Installing .NET Framework ? It seems, your IIS is not registred with ASP.NET .
Run the following command :
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i
[ Note : I assumed the your framework has installed the following location ]
Then Try.
This will resolve your issue.
|
|
|
|
|
I believe this means that ASP.NET is not installed for IIS.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Hello every one
I need to develop an application in asp.net where i had to make report in excel for that i wrote my code like
Dim xl As New Excel.Application
xl = CreateObject("Excel.Application")
xl.Workbooks.Add()
xl.visible = True
this code works with vb.net 2005 but the same i want to use in asp.net 2008
now it shows an error like "type 'excel.application' not found"
so please help me how to approach
I am new to asp.net 2008.
|
|
|
|
|
I am guessing you did this in the past via some code you found online and have no idea how it worked. The Excel stuff is not built in, you need to download the toolkit for it from MS. Also, you need Excel to be installed.
You will create an Excel sheet on the server and users will download it ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
I created Custom dropDownList .
I use it in a page. but I can't access to it in code behind.
|
|
|
|
|
Show your code what did you do so far.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
mohandesmehran wrote: but I can't access to it in code behind.
what does it mean ? from where you are trying to access the code?
|
|
|
|
|
namespace HakhamaneshControl
{
[ToolboxData("<{0}:Drp_Languages runat=server></{0}:Drp_Languages>")]
public class Drp_Languages : DropDownList
{
protected override void RenderContents(HtmlTextWriter output)
{
output.RenderBeginTag(HtmlTextWriterTag.Option);
output.AddAttribute(HtmlTextWriterAttribute.Value, "Ar");
output.Write("Ar");
output.RenderEndTag();
}
}
}
///
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CreateCustomControl._Default" %>
<%@ Register Assembly="ServerControl1" Namespace="HakhamaneshControl" TagPrefix="cc2" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
<div>
<cc2:Drp_Languages ID="hhhh" runat="server">
</cc2:Drp_Languages>
</div>
</form>
</body>
</html>
//code behind
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(DropDownList1.SelectedItem.Value.ToString());// null refrence exception
}
|
|
|
|
|
try this way
Response.Write(DropDownList1.SelectedValue.ToString());
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
unfortunately don't work. I think ,I must add items in a different manner. but I don't know how.
|
|
|
|
|
unfortunately don't work. I think ,I must add items in a different manner. but I don't know how.
|
|
|
|
|
I need a dropdownlist with 3 items. I use this dropdownlist in each page in my project.
how can I inherit from DropDownList control and add these items to it?
|
|
|
|
|
i have 3 link button, and i want set the text for them,
i set their name from database and i want use from (for) how can i do this?
LinkButton lkb1 = new LinkButton();
LinkButton lkb2 = new LinkButton();
LinkButton lkb3 = new LinkButton();
for (int j = 1; j <= 5;j++)
{
lkbj.text = ds.tables[0].rows[0][1].tostring();
}
|
|
|
|
|
LinkButton _button = null;
for (int count = 1; count < 5; count++)
{
_button = new LinkButton();
button .text = ds.tables[0].rows[count][1].tostring();
}
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
LinkButton lkb = null;
for (int j = 1; j <= 5;j++)
{
lkb = new LinkButton();
lkb.Text = ds.Tables[0].Rows[0][1].ToString();
YourContainerControl.Controls.Add(lkb);
}
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Hi everybody,
I need to disable a ComboBox after clicking a button. I set the Enabled property to false at Click Event of button,
but it didn't work (because it needs a postBack)
I want to do this after clicking the button and doing sth (if succeed), so I can't do it in Page_Load.
What should I do?
Best wishes
|
|
|
|
|
mehrdadc48 wrote: What should I do?
Do it at the client side using Java script.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|