|
|
when i run application on simple browser it works.
but when i browse it with mozilla it makes broblem of stylesheet.
|
|
|
|
|
Use the error console, it will exactly print the problems
Stef
|
|
|
|
|
Error: System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
this is my code:
System.IO.MemoryStream ms = new System.IO.MemoryStream();
string ipath=Server.MapPath("~/image.gif");
image.Save(ipath, System.Drawing.Imaging.ImageFormat.Gif);
Response.ClearContent();
Response.ContentType = "image/Gif";
ImageMap1.ImageUrl = ipath;
anybody help me.
|
|
|
|
|
jayvaishnav82 wrote: this is my code:
System.IO.MemoryStream ms = new System.IO.MemoryStream();
string ipath=Server.MapPath("~/image.gif");
image.Save(ipath, System.Drawing.Imaging.ImageFormat.Gif);
Response.ClearContent();
Response.ContentType = "image/Gif";
ImageMap1.ImageUrl = ipath;
You mean that this is part of your code? It's not enough of your code to diagnose the problem.
How do you create the image object? Why do you create a memory stream that you don't use? Why are you changing the content type of the page when you are still creating an html page?
---
single minded; short sighted; long gone;
|
|
|
|
|
Wow. I'm guessing that you just cobbled together this code without actually trying to figure out what it does?
The error probably indicates that you're trying to save to an invalid path, or to a location where the ASP.NET user doesn't have write access. But that's hardly the only thing keeping this code from working.
- Stop.
- Think about what you're trying to do.
- Identify what needs to happen in order to accomplish that.
- Write the code to do those things.
- If you are tempted at any point to include even a single line whose purpose you do not know or understand, stop and re-think what you're doing.
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
Does anybody know if it's possible to configure IIS to allow write access to a folder and all it's sub folders to ASP.NET??
/\ |_ E X E GG
|
|
|
|
|
I am not sure if you are asking it you can do it through programming in C#. If you are, then the answer is no. If you are talking about manually, then yes you can. You have to look at what the identity of your app pool is running as. Be default it is aspnet. So you can give aspnet and iis_WPG access to the folder and subfolders. You should make sure to give mimimum access that is needed, since in general you really don't want to give IIS rights that it doesn't need. Just make sure that whatever rights you give to the aspnet user you all give to iis_wpg group.
Hope that helps.
Ben
|
|
|
|
|
IIS does not control disk access.
Open the properties for the folder and go to the security tab to change file access for users. The account that is used for running ASP.NET code is usually ASPNET or IIS_WPG.
---
single minded; short sighted; long gone;
|
|
|
|
|
As long as you are only concerned abnout doing this on your own, private development machine, I have found the simplest way to deal with this "problem" is to add a line like the following to the web.config file of the application:
<identity impersonate="true" userName="XXX" password="YYY" />
where XXX/YYY is a(n) administrator login for your machine. Make sure you don't upload this to the deployment server... I only resorted to this because for reasons I never could fathom I had a hell of a job trying to configure the ASPNET account to have write access. But this works.
cheers
F
|
|
|
|
|
Can some body help me with the steps of web setup project with VS2005.
|
|
|
|
|
|
hi all if any one got the cause please send the remedy to phani.mca2k4@gmail.com
i am using .NET 2005 and DB2 Ver8.0 and i published my web application
when i browse this page through "localhost" i got the home page LOGIN.aspx
and when i am trying to log-on it will give the error as
==============================================================================
The 'ibmdadb2' provider is not registered on the local machine.
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.InvalidOperationException: The 'ibmdadb2' provider is not registered on the local machine.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: The 'ibmdadb2' provider is not registered on the local machine.]
System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper) +975902
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +118
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +53
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup) +27
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +47
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.OleDb.OleDbConnection.Open() +37
_Default.LoginButton_Click(Object sender, EventArgs e) +43
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
==============================================================================
how to resolve this please any one know reply soon
its my project work and i cant able to browse even the first page.
Phanindra.Tsk
|
|
|
|
|
got this from another forum (http://www.orafaq.com/forum/t/38330/0/):
This is an authentication problem which can be resolved as follows:-
Open Explorer and select the ORACLE_HOME directory, e.g. c:OracleOra92
Right click on the directory and look at its properties.
Go to the Security tab and select Authenticated Users.
Unclick and then re-click the Read & Execute permission under the Allow column.
Click the advanced button and ensure that the Authenticated Users entry allows Read & Execute on This Folder,subfolders and files.
Click OK and then Apply.
Reboot the machine and all should be OK.
google is my best friend
Stef
|
|
|
|
|
thank you Mr stef
i dont want waste u r time as i got this error when i am dealing with IBM-DB2
so if u could please redirect me to that particular link
thanking U
Phanindra.tsk
with best regards
|
|
|
|
|
Hi Guys,
I have an ASP.Net code below. How can I get the value of "OrderID" field?
Dim strConnString As String = ConfigurationManager.ConnectionStrings("MyConnectionString").ConnectionString
Dim sqlConn As New Data.SqlClient.SqlConnection(strConnString)
Dim cmd As New Data.SqlClient.SqlCommand
Dim da As Data.SqlClient.SqlDataAdapter
Dim ds As New Data.DataSet
cmd.CommandText = "Select Top 1 OrderID, OrderTracking From tblOrders " _
& "Where OrderTracking = '" & Trim(CType(sender, DropDownList).SelectedItem.Text) & "' "
cmd.CommandType = Data.CommandType.Text
cmd.Connection = sqlConn
da = New Data.SqlClient.SqlDataAdapter(cmd)
da.Fill(ds)
If ds.Tables.Item(0).Rows.Count > 0 Then
txtOrderID.Text = ds.Tables.Item(0).Columns(0).ToString
End If
da.Dispose()
ds.Dispose()
sqlConn.Close()
RefreshGridView()
hifiger2004
|
|
|
|
|
txtOrderID.Text = ds.Tables(0).Rows(0)(0)
|
|
|
|
|
Thank you, I will try it
hifiger2004
|
|
|
|
|
I am retrieving time from a database to display to the user, is there a way for display it in military format?
|
|
|
|
|
Please give more informations like
the backend and the front end softwares.
If U use sql server use convert function.
Regards,
Arun Kumar.A
|
|
|
|
|
Nothing Fancy, SQL Server database Visual Studio, Visual basic.net in a web app that collects data from the SQL database and lists it on the screen in a listbox.
Dim dt As New DataTable ' ready to process
sqlStatement = "Select PROCESS_START_TIME from MyTable"
Dim cn As New SqlConnection(sqlConnString)
cn.Open()
Dim cmd As New SqlCommand(sqlStatement, cn)
Dim dr As SqlDataReader = cmd4.ExecuteReader
Do While dr.Read()
MyDataRow = dt.NewRow()
MyDataRow(0) = dr(0) ' this is a date wanted in military format
(Military format being not 1:00 PM, but 13:00 format)
|
|
|
|
|
No-e wrote: (Military format being not 1:00 PM, but 13:00 format)
Oh, that is the international standard for formatting date and time, ISO 8601.
Use .ToString("HH:mm") to format the time.
---
single minded; short sighted; long gone;
|
|
|
|
|
That depends entirely on what platform you are using.
What exactly is "military format"? Where I live, the military doesn't have any special time format.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi all,
Iam new to javascript , I want to validate Checklistbox using javascript,
please send source code example
Thanks N Advance
|
|
|
|
|
I have two files: scriptfile and file.txt and both in the same level
in the scriptfile i call:
fh = fopen("c:/folder/file.txt", 0);
now my question is can I use a relative path?
because the location of the file is changeable ...
I tried "./file/txt" and "file.txt" but didn't work
Faris Madi
Nothing Comes Easy (N.C.E.)
|
|
|
|