|
Anyone tried the AddSite3 in SmarterStats web services?
it's asking for the LogLocations as ConfigLogLocation[] and I don't know how to pass it using C#.
This is what I am starting with:
AddSite3("statsadmin", "xxxxxxxxx", "usernameHmmm", "userPasswordHmmm", "userFirstName", "userLastName", "localhost", 0, "domainName", "W3Cex",
Technology News @ www.JassimRahma.com
|
|
|
|
|
Hello,
I downloaded and installed the ODAC for 64 bit machine. There were no issues installing, except that you have a to execute a sql file at the end of installation. It is located at
c:\app\<username>\product\11.2.0\client\Asp.net\SQL - Where would I execute this? From DOS prompt?
I added the Oracle.DataAccess.dll to VS 2010. I keep getting this error -
Error 2 Could not load file or assembly 'Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified. C:\projects\CSCC-DotNet\Web.config 14
any ideas? I did search the web, but with no luck.
Thanks!
|
|
|
|
|
It is telling you it can't find the DLL. On line 14 in your web.config, you're referencing a DLL, and for some reason the runtime system can't find it. Either the assembly is not in the GAC, or the path you specified is wrong. In my Web.config the tag looks like this:
<add assembly="Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
Which suggests the assembly is found in the GAC - which is where the installer should have placed it. This has nothing to do with the SQL scripts, which have probably already been run on your server - they only need to be run once for each server, so if you're the second or later developer to install this, you can skip it.
One way to "reset" VS in terms of finding this assembly is to go into your project property pages, open the "references" and remove the Oracle.DataAccess reference. Then save your project, I usually restart VS, then right-click the bin, choose "Add Reference..." and add the Oracle DLL back in. That should help it find the thing correctly.
If that doesn't work, drop a copy of the Oracle.DataAccess.DLL into the bin.
|
|
|
|
|
When I installed the ODAC componenets for .Net, there was a folder created, in addition to adding the dll to GAC,
C:\app\<username>\product\11.2.0\client_1\odp.net\bin\4\ORacle.DataAccess.dll. I am using this reference in my web site.
Maybe this is the problem. How can I un-reference this one and add this one - C:\Windows\Microsoft.NET\assembly\GAC_64\Oracle.DataAccess\v4.0_4.112.3.0__89b483f429c47342\ORacle.DataAccess.dll??
In m web.config file, there is the same listing
<assemblies>
<add assembly="Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
</assemblies>
Thanks so much for your help!!
|
|
|
|
|
I think you can do the swap with the references window in your project properties. I just checked my site, and I'm using the "DLL in the bin folder" method. I don't remember why, but I think it's because the locations are different in the server.
|
|
|
|
|
I need to generate a PDF report which contains some images, costume text info, and a table from my ASP.net MVC3 application. please give me any ideas on the best way to implement this?
|
|
|
|
|
hi all ,
Tracing web application with ASP.NET[^]
Tracing Methods
•
On the Page
When this method is used, the trace output is displayed on the page that is executed.
•
Out of Page
In this method, the tracing results are not displayed on the page but these are stored on the web server and in the root folder of the application in a file named as “trace.axd”. After execution of the pages, this file can be viewed on the browser.
“trace.axd”.-----here what is the expansion of axd...
|
|
|
|
|
Is there something troubling you? I don't see a question here. Can you rephrase and elaborate on what are you trying to ask?
|
|
|
|
|
hi,
what i mean is user control page has extension as .ascx---here the expansion of ascx is "active server control extension"
along the same lines .asax ----the expansion of asax is "active server application extension".
in the same manner just i wanna know the expansin of axd in tracefilename.axd
usually trace files have .axd extension
i googled it but i am unable to find the answer.ie y i asked in this blog....
|
|
|
|
|
I have a problem with using grideview to display data
I don't want to use Default display in gridview.
For example
-------------------------
Image1 Title="###" |
Date="###" |
Price="###" |
-------------------------|
Please all friends help me to solve this in asp.net
Please kindly to email to me by polen.lang@gmail.com
|
|
|
|
|
|
<asp:GridView ID="GridView1" runat="server">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID="img1" runat="server" ImageUrl='<%#Eval("imageUrlFielName") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
|
|
|
|
|
create a generic handler file e.g.-> showpic.ashx
with code
<%@ WebHandler Language="C#" Class="showpic" %>
using System;
using System.Web;
using System.Data.SqlClient;
using System.Data;
using System.IO;
using System.Collections.Specialized;
public class showpic: IHttpHandler {
public string GetConnectionString()
{
return System.Configuration.ConfigurationManager.ConnectionStrings["b4mConnectionString"].ConnectionString;
}
public void ProcessRequest(HttpContext context)
{
string id = context.Request.QueryString["id"];
string img = context.Request.QueryString["img"];
if (id != null)
{
try
{
MemoryStream memoryStream = new MemoryStream();
SqlConnection connection = new SqlConnection(GetConnectionString());
string sql = "SELECT " + img + " FROM useraccount WHERE userid= @id";
SqlCommand cmd = new SqlCommand(sql, connection);
cmd.Parameters.AddWithValue("@id", id);
connection.Open();
SqlDataReader reader = cmd.ExecuteReader();
reader.Read();
byte[] file = (byte[])reader[0];
reader.Close();
connection.Close();
memoryStream.Write(file, 0, file.Length);
context.Response.Buffer = true;
context.Response.BinaryWrite(file);
memoryStream.Dispose();
}
catch
{
}
}
}
public bool IsReusable {
get {
return false;
}
}
}
change the database & query parameters
within the gridview create a templated field with Image control
In Image Url property set the following code
'<%# "generics/showpic.ashx?id="+Eval("userid")+"&img=picture" %>'
e.g-> <asp:Image ID="Image1" runat="server" Height="60px"
ImageUrl='<%# "generics/showpic.ashx?id="+Eval("userid")+"&img=picture" %>'
Width="60px" />
change as per your database configuration.
now you will be able to show picture in gridview
Regards
Bikash
|
|
|
|
|
Hi,
I want to ask what's the best way yo have a development environment and move it easily to the production?
Technology News @ www.JassimRahma.com
|
|
|
|
|
|
Hi,
I want to know how can I have a facebook-like alert to display (Email was sent) or (Record was saved) for a few seconds then disappear?
Technology News @ www.JassimRahma.com
|
|
|
|
|
|
We have back office application (developed using ASP.NET & SQL Server) and website for the same business (developed using PHP & My SQL).
Pl let me know how to link My SQL database with SQL Server.
Uma
|
|
|
|
|
|
Hello,
I do apologize if this is the incorrect forum to post.
I have a file which I need to post to a remote client server. I created a .p12 key file from the client web site. Using this .p12 ket file, password information I need to post a file to the server.
Using class, X509Certificate2 from namespace using System.Security.Cryptography.X509Certificates X509Certificate2.
I created a simple C# console application on my laptop using VS 2010, to define the parameters to the .p12 key file, and path to the csv file to post to remote server. I keep getting "Remote Server returned error - 401 UnAuthorized Error". Is there some sort of permission issue on .net end or the client side. The client keeps stating there is no communcation problem on their end.
I have been working on this code for some time now. any ideas is much, much appreciated.
|
|
|
|
|
vanikanc wrote: a file which I need to post to a remote client server
vanikanc wrote: I keep getting "Remote Server returned error - 401 UnAuthorized Error".
To me, based on above statements, it looks like the request is not going through. The key created/used is not having correct password or so leading to unauthorized error.
Issue wise, it might be of certificate or the way you are sending/using it to communicate. Ideally, client server must be setup to accept calls with proper certificate(having correct password) for handshake permission. Error wise, the communication is not as per expected. Talk to someone on client side, make sure you are communicating correctly and the certificate-password is valid.
|
|
|
|
|
We have tired of ton JS code in our applications, when errors could occurred in runtime (and specific browsers only).
So we decide to write something which allow to build rich client-side (single page as well) web applications on C# using our Incoding Meta Language.
It's simple - you define the tag behaviour on C# and then it parsed using our JS engine. Any js library could be plugged in, like we did for the Jquery UI (dialog, slider), Google Maps (show map, add/remove marker), BlockUI...
Even more, some our new developers even don't know the Javascript at all now
No trial, no donate. Just Open Source. We would like if someone would say "that's cool, i will try!" and give any feedback (critics are welcome).
I know some questions would be like "we need to learn this before start using, why do we need that if we already known js?".
- I would answer by asking another thing:
"What if your teammate (or another developer) leave some code for you and you need to understand what the hell this js construction is and first of all, where to find that event handler?"
With this approach, you just find the element on page and see what the behavior defined in C# well typed code.
You may kick me for the spam, but I just want to discuss:
1) If this type of approach could be alive or not?
2) What are your suggestions? Do you use something else to exclude such problems like we have had to write this?
P.S. We have all current projects using this. And there are server-side features as well.
|
|
|
|
|
How can i go about maintaining the state of an intranet application: Such that an authenticated user can process one or more sales in an instance?
On the otherhand is it possible to assign a Session object a value that is returned from a process after the Application had already started and running?
|
|
|
|
|
cLeanMy wrote: Such that an authenticated user can process one or more sales in an instance
And the issue with it? You can use Session variable to keep track of the current authenticated user and use that for multiple calls.
cLeanMy wrote: is it possible to assign a Session object a value that is returned from a process after the Application had already started and running
Not sure what application you are talking of here. If you are talking of your web application, then yes, sessions can be defined and assigned values later in the workflow as and when required.
Sounds like state management article should help you.
Depending on the requirement/security/performance/UI implementation, there can be various ways to pass on data from one page to other.
You can use Querystring, Session, PreviousPage, etc.
Have a read on the following:
MSDN: ASP.NET State Management Overview[^]
MSDN: Cross-Page posting[^]
State management in ASP.NET - 1[^]
ASP.Net State Management Techniques - 2[^]
|
|
|
|
|
sir
i am an electrical engineer but interested in programming . i developed one v.net project for office and now wanna use send sms coding... the coding is as below but i am not getting message... please help... thanks in advance
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SMSPort As SerialPort = New SerialPort
With SMSPort
.PortName = "COM7"
.BaudRate = 460800
.Parity = Parity.None
.DataBits = 8
.StopBits = StopBits.One
.Handshake = Handshake.RequestToSend
.DtrEnable = True
.RtsEnable = True
.NewLine = vbCrLf
End With
SMSPort.Open()
If SMSPort.IsOpen = True Then
SMSPort.WriteLine("AT" & vbCrLf)
'set command message format to text mode(1)
SMSPort.WriteLine("AT+CMGF=1" & vbCrLf)
'set service center address (which varies for service providers (idea, airtel))
SMSPort.WriteLine("AT+CSCA=""9848001104""" & vbCrLf)
' enter the mobile number whom you want to send the SMS
SMSPort.WriteLine("AT+CMGS= ""9494949494""" & vbCrLf)
SMSPort.WriteLine("aaaaat" & vbCrLf & Chr(26)) 'SMS sending
SMSPort.Close()
End If
End Sub
|
|
|
|