For my 2 cents worth. There are many ways to solve this problem. One way, is to store the actual pdf file on server some where, and maybe store the path to where this file is located on the server, in the database. You can select out the path information information from database and retrieve the file accordingly. Another way, store the content in the database, and create the pdf on the fly when you retrieve the information from database. Thanks.
vanikanc
Posts
-
How to upload pdf file from sql to C# -
Incorrect Oracle.DataAccess.ddl reference in web site projectThank you for your reply. Since this is set up as a web site, there is not reference folder. I right click on project, and add a reference. When I select the dll from the correct location, windows folder, it adds this reference in the web.config file. There is not path specified in the config file. Thanks!!
-
Incorrect Oracle.DataAccess.ddl reference in web site projectHello All, I created a new web site. I need to get data from oracle. So, I installed the ODAC components. To add a reference in my web site, I accidentially, added the dll reference from this location - C:\app\\product\11.2.0\client_1\odp.net\bin\4\Oracle.DataAccess.dll I need to get this dll reference from C:\Windows\Microsoft.NET\assembly\GAC_64\Oracle.DataAccess\v4.0_4.112.3.0__89b483f429c47342\Oracle.DataAccess.dll I keep adding this new reference but it is not adding this new reference as well. How can I change this? Thank you!!!
-
ODP.Net provider errorWhen I installed the ODAC componenets for .Net, there was a folder created, in addition to adding the dll to GAC, C:\app\\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
Thanks so much for your help!!
-
ODP.Net provider errorHello, 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\\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!
-
401 Unauthorized errorHello, 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.
-
WSAT tool with IIS 7THANK YOU!!!! Part of the problem was, we have all the web site projects located on the d drive of server. Now, I copied this project over to C drive, same where \ASP.NETWebAdminFiles resides and THIS worked!!!!! Thanks so much!
-
WSAT tool with IIS 7Hello, I am in the process of developing a company intranet. The intranet would be driven by different departments, which is set up as folders in the website project, like Marketing, Finance etc. This is developed in VS 2010 using C#. The WSAT from VS works great, i can see the different folders and able to set up roles with access to certain folders. Now, I deployed this website onto Windows 2008 server running IIS 7. Having rough time with trying to set up the WSAT tool for this intranet. 1. I copied over WSAT project from my laptop, C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ASP.NETWebAdminFiles over to the windows server running IIS 7.0. I copied over to \\\C:\inetpub\wwwroot\ASP.NETWebAdminFiles. 2. Set up an application pointing to this path. 3. Copied over my website to same server on D drive of windows server \inetpub\WebDev-Intranet. I set this up as a new website on IIS 7.0. This site is running fine. 4. How do I link the WSAT tool to this website on IIS 7.0? THANKS!!!!
-
WMI remote callAwesome!! thanks, that is what I was looking for, in terms of what is returned in the returnValue parameter. It is a console based application, which does NOT put up a user interface. This works well!
-
error with update queryYou can use it. But make sure you specify in the connection string, that the database type is access. Can you print out the sql in your c# program, log onto access, and try to run the same update statement in access.
-
error with update queryWhat is the error message? Or why not throw that sql into a string. And then set the .commandtext as this string? like:: string sqlSelect = "UPDATE Users_Table SET Password= '" + txtNewPassword.Text.ToString() + "' WHERE Username='" + txtUsername.Text + "' AND Password='" + txtOldPassword.Text + "'"); command.CommandText = sqlSelect; Also, I did notice an extra space at the time of closing the sql. txtOldPassword.Text + "' )"); Change to txtOldPassword.Text + "')");
-
WMI remote callHi, I am using WMI to make a call to an executeable on a remote server. I have this defined in the managementpath, \\\\\\root\\cimv2:Win32_Process My actual exe is located on the D drive of the same machine. Is it required that this exe also be located on the C drive of the remote server???? Also, in the ManagementBaseObject class, method the InvokeMethod as a returnValue parameter. What are all the possible values for this parameter? What value is returned if successful versus failed? Thanks so much!!
-
WSAT deploy to web serverHello All, With great diffculty was able to set up the Website Administration Tool on the web server, with a copy from my laptop running Visual Studio. I ran the aspnet_regsql.exe, and set up the database to connect. All the tables related to this app was created in this database. Using IIS 7, was able to change the connection string, to reflect to this database. Now, when I click on "Security" tab, it comes back with "Object reference not set to an instance of an object." It also states that the role Manager is maybe not enabled. Where do I enable this roleManager? Thanks!!
-
Serious help uploading a file using C# in Asp.Net 3.5 higherI do apologise for "bumping" this question. Thank you - I will be using a bat file, called from process class to upload this file to the required server! Thanks again!!
-
Serious help uploading a file using C# in Asp.Net 3.5 higherHi, I am so confused with the research I have done. Please help me upload a file, a csv file from a certain location to a remote http server? I cannot use the file upload control. I have tried 1. WebClient class - using the simple UploadFile method. It did not work. Kept coming back with 404 or 405 error. 2. Tried REST call with no luck. Any simple method to transfer a file from one location to remote http server. Thank you and much appreciated!
-
Upload file using webclientThank you for your reply. I am just trying to upload a simple .csv file from my project.
-
Upload file using webclientHi, I am trying to upload a file from my laptop to remote development server. It keeps coming back with either 404 error or 405 error. I am able to download a file with no issues at at all. all I have is a form with a button on it, and clicking on button invokes the below. I get the message, "Upload Complete" but the file does not exist on the remote server.
private void button3_Click(object sender, EventArgs e)
{
WebClient wcUpload = new WebClient();
NetworkCredential myNwc = new NetworkCredential("username", "password");
wcUpload.Credentials = myNwc;wcUpload.UploadFile("http://:85", "POST", "C:\\\\projects\\\\ProgressBar\\\\file\_0122.csv"); MessageBox.Show("Upload complete!!"); }// end button3\_Click
-
Role based securityHi, I was able to add roles and users to this roles. With in Visual Studio, I went to website, ASP.Net configuration and was able to add the users. I was able to do this locally on my laptop. I have set up a web site on a web server, having IIS 7. How can I access this same screen on the web server? Thanks!
-
Role based securityHello, I am in the process of building a web application for our company. The entire application will be driven by the different buisness users we have set up. Like Finance, HR, Marketing. So, folks belonging to that unit should be able to access their areas. In the past I did this using SQL server, set up tables having roles and then assigned users to that role. It was pretty laborious. This was in VS2005. Is there something already re-built into VS 2010? Any other approaches? Much appreciated! Thanks!
-
TextArea value in C#Thank you for all your help! This web application is written in C#, I should have specified that. So, the small and big "V" would not have been an issue. Also, "InnerText" is a property of of the textarea. Not Javascript. Solved this problem by using an asp:Literal tag. Thank you!