|
Yes, but if IIS can't host it, then how would the code run to check that ? So, there would be no point in writing that code, you should check at the point of deployment if your version of IIS will run the code, and it will, or it won't.
you're right, I meant to say IIS.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Plz chk the article
http://www.codeproject.com/KB/aspnet/VSDeploy.aspx[^]">
Cheers!!
Brij
|
|
|
|
|
Yes it seems as if you dont know what you are talking about. First we dont Develop our Applications in IIS, IIS host the Site , we dont Develop in IIS. You Should Say you have a ASP.NET App and you want to knwo how to Deploy it. After your Computer is updated with the .Framwork. go to your IIS and right Click and create a Virtual Directory, make sure it points to your Application and walla its working... but there more settings that needs to be adjusted according to your app. Shout if you need help.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi,
I have create chart in excel for grid data in asp.net 2.0.
my code is
Dim xlWorkBook As Excel.Workbook
Dim xlWorkSheet As Excel.Worksheet
xlWorkBook = New Excel.Application().Workbooks.Add(Missing.Value)
xlWorkBook.Application.Visible = True
xlWorkSheet = xlWorkBook.ActiveSheet
' Gets the dataset containing the data
'ds4 is gridview dataset
Dim dsData As DataSet = ds4
Dim i As Integer = 2
' Outputting the fieldnames in pink bold color
xlWorkSheet.Cells(1, 1) = "Student ID"
xlWorkSheet.Cells(1, 2) = "Student Name"
xlWorkSheet.Cells(1, 3) = "Maths"
xlWorkSheet.Cells(1, 4) = "science"
xlWorkSheet.Cells(1, 5) = "Total"
xlWorkSheet.Range("$A1:$E1").Font.ColorIndex = Excel.Constants.xlColor1
xlWorkSheet.Range("$A1:$E1").Font.Bold = True
' Outputting the data
For Each dr As DataRow In dsData.Tables(0).Rows
xlWorkSheet.Cells(i, 1) = dr(0)
xlWorkSheet.Cells(i, 2) = dr(1)
xlWorkSheet.Cells(i, 3) = dr(2)
xlWorkSheet.Cells(i, 4) = dr(3)
' Building the formula for calculating the sum
xlWorkSheet.Cells(i, 5).Formula = "=SUM($C{0}:$D{0})".Replace("{0}", i.ToString())
' Going to the next row
i = i + 1
Next
' Auto fit the columns
xlWorkSheet.Columns.AutoFit()
' Generating the graph
Dim chart As Excel.Chart
chart = xlWorkBook.Charts.Add()
With chart
.ChartType = Excel.XlChartType.xlColumnClustered
.SetSourceData(xlWorkSheet.Range("A1:E11"), 2)
.HasTitle = True
.ChartTitle.Characters.Text = "Students' marks"
.Axes(1, Excel.XlAxisGroup.xlPrimary).HasTitle = True
.Axes(1, Excel.XlAxisGroup.xlPrimary).AxisTitle.Characters.Text = "Students"
.Axes(2, Excel.XlAxisGroup.xlPrimary).HasTitle = True
.Axes(2, Excel.XlAxisGroup.xlPrimary).AxisTitle.Characters.Text = "Marks"
End With
'Catch ex As Exception
' Throw ex
'End Try
the error is [IndexOutOfRangeException: Cannot find table 0.]
Please help me
|
|
|
|
|
It must be because there is no table at index 0 in your dataset
Make sure you check that there is a table in the dataset
shanthi jothi wrote:
' Gets the dataset containing the data
'ds4 is gridview dataset
Dim dsData As DataSet = ds4
What do you mean by this??
Alexei Rodriguez
|
|
|
|
|
You are flooding these forums with the most trivial questions. You obviously are very new to the world of programming. If you are trying to do such complex things because it's your job, then shame on you and on your company. If you have a choice, then you should try more simple tasks, and you should definately try reading some books. If you have no choice, then you should expect that people will soon get sick of doing your job for you, and stop answering you. We're here to help people who want to learn, not people who are trying to do jobs they are in no way remotely qualified for.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Just Cool down "Graus"
may be her job is at stake ....
There is no dearth of brutal and sadistic Project Managers
poor thing i think she is really desperate
|
|
|
|
|
Dear All
I need a guide line to understand the web.config senerio
All Function and the perfect use of web.config.
Its title bit complex to understand.
Kindly do replay.
Thanks.
|
|
|
|
|
|
Hi Abjit,
I uploaded the asp.net code in my server and i created database in web hosting server.some pages are opening some pages are not opening.can you tell please tell me what might be the reason behind that.please help me.
login page is opening but checking for authentiation its getting web config error like that.please help me.
Thanks in advance
pavani
|
|
|
|
|
Can you please tell the details of the error
Cheers!!
Brij
|
|
|
|
|
I published my code and deployed it in server.
when i open some pages i am getting this error.
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
|
|
|
|
|
But custom error mode set to off then also i am getting that error.
|
|
|
|
|
There must be an error in deployment of application.To get the details,as u did custom erros as off and also search the tag "CallStack" and set it to true.then you'll get the details of the error.
Cheers!!
Brij
|
|
|
|
|
I am getting the following type of errors for some pages.
The type 'Search' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ypages\3d7682ab\46f94baf\assembly\dl3\454e447e\249632ae_3152c901\App_Web_wpylg6wl.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ypages\3d7682ab\46f94baf\assembly\dl3\01e3ea6b\49a007cb_2e52c901\App_Web_4sqjufge.DLL'
If I delete that dll i am getting could not load that dll error.
Please help me how to resolve my problem.
|
|
|
|
|
Might be there is some problem in framework installation.I haven't seen this problem.Deploy the site once again after removing earlier one.Use google.
Cheers!!
Brij
|
|
|
|
|
Thank you very much for your quick response.
I followed your suggestions and solved my problem now its working.Problem with complilation in my visual studio.I tried it from some other system its working.
I am very thankful to codeproject.
|
|
|
|
|
Hi,
How to export datagrid datas in excel with chart format.
|
|
|
|
|
|
I Had Taken TreeView In Which There Are ChildNodes Which Consist Names Of My Web Forms.I Am Filling Values For TreeView Nodes And ChildNodes From DataBase.Each ChildNode Has Its Id Assingned To It.I Want Retrieve That Id On Click Of Child Node Before Opening That Particualar Form.Can AnyOne Help Me.
|
|
|
|
|
Can you tell me your scenario?
Cheers!!
Brij
|
|
|
|
|
Thanks For Reply,
Scenario:-
For Example
RootNode
ParentNode
ChildNodes
Form1
Form2
Form3
In This Case I Binded The Tree Node With DataBase.What I Want To Do Is That If Click On Form2 Then I Want The Form Id Of That Form 2.
Waiting For Reply
|
|
|
|
|
|
The Link You Had Given Me Contains Solution For Windows Application(NodeClickEvent). I Want Solution For Web Application.
|
|
|
|
|
I think you can get the ID for the node on node's click event before redirecting it to other page.
Cheers!!
Brij
|
|
|
|