In the software I made, it runs fine and connects fine to the database when running from the server via remote desktop. However, when i run it from a mobile device (which is running xp professional), and I map a drive to the location of the software, I get this error:
Request for the permission of type 'System.Data.Sq lClient.SqlClie ntPermission, System.Data, Version 2.0.0.0, Culture=neutral , PublicKeyToken= *whatever* failed
...
User Profile
Collapse
-
problems connecting to sql server
-
printing to a printer by designated IP
I plan on designating an ip address which corresponds to a printer for each user that logs into my asp.net application. The IP address is stored in the database for the user. My question is, in my code, where i have a variable set to print to the default printer, do I just modify that to point to the iP address for the printer, and it should print? -
Printing a string to the local printer
Is there anyway that I could print a string I of data to the default client side printer in ASP? In my aspx.vb file, There is a string that will represent a barcode that I want to print when you hit a button. -
Public Class clsPrintLabels
<StructLayout(L ayoutKind.Seque ntial, CharSet:=CharSe t.Unicode)> _
Structure DOCINFOW
<MarshalAs(Unma nagedType.LPWSt r)> Public pDocName As String
<MarshalAs(Unma nagedType.LPWSt r)> Public pOutputFile As String
<MarshalAs(Unma nagedType.LPWSt r)> Public pDataType As String
End Structure
...Leave a comment:
-
Imports System.Data
Imports System.Drawing. Printing
Imports System.Runtime. InteropServices
Imports System.Web.Conf iguration
Imports System.IO
Partial Class _Default
Inherits System.Web.UI.P age
Dim cnOper As String = "DSN=GDC"
Dim CustNo As String
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArg s) Handles...Leave a comment:
-
Printing from the web
On the page that I made, when you hit a button it should print some bar codes from the data you inputted into textboxes, and write them to the database. The problem is, it will only print when running from the local host (our server), but when we upload it to our customer's server, it wont print when we try it. Here is the code for the page. -
I now think it could be because in my code I don't put in a default value for my IDataReaders. I get the warning at the bottom of the screen
Variable 'iDr' is passed by reference before it has been assigned a value. A null reference exception could result at runtime.
And thats exactly what its doing. What default variable can I have it set to so that it wont actually run.Leave a comment:
-
I'm also using a DSN for the connection string to the database. It works when running from a compile and off the local port, but doesnt work when on our webserver.Leave a comment:
-
After playing around with it even more, it seems that its an authentication problem. It runs fine and connects to the database when run via a compile within VS 2005, but when run off our server, it doesnt want to connect, therefore causing the above error. Any ideas?Leave a comment:
-
Response.Redirect problem in ASP.NET (object refrence not set...)
in my home.aspx page I have a simple login set. when you hit the button it redirects. Here is the code:
Protected Sub btnLogin_Click( ByVal sender As Object, ByVal e As System.EventArg s) Handles btnLogin.Click
If txtUserID.Text = "" Then
txtUserID.Focus ()
Exit Sub
End If
If txtPassword.Tex t = "" Then
txtPassword.Foc us()...
No activity results to display
Show More
Leave a comment: