I am getting following error each time I tried to select database. The database 'DB Name' is not accessible. (Microsoft.SqlServer.Express.ObjectExplorer)
Note: My OS is Win Vista.
When I tried to open SQL Mgmt Studio as Run as administrator than I can able to access database properly.
why it is giving error.
I am also getting following error when my asp.net application is trying to access database.
Cannot open database "DBName" requested by the login. The login failed. Login failed for user 'PCNameabcd'.
I am not very good with SQL Server, how to create user and grant them permission in case that is what causing the problem.
I have created an ASP.NET database application using SQL Server express on one of my home network PC's. I can access SQL Server Express from the other PC's (using SQL Server Authentication) so I know it is set up ok for network access. I can run the web site on the host PC under IIS & everything works ok.
When I try to access the application from another PC using http://192.168.0.8/TestApp/Default.aspx it is not available. I can ping 192.168.0.8 & it is accessible.
why I can not view the web site from another PC on the network?
I have been doing dynamic PDF creation via ASP.net for some time -- in the form of HTML to PDF conversion. It works well for us, but we have accessibility requirements from the State to make everything is accessible. For static PDFs, we simply "tag" the files manually using Adobe's accessibility tools. Of course this does not work for dynamically created files. PDFs that I create dynamically fail the Acrobat Pro Accessibility test.
want to create PDFs dynamically in ASP.net, but producing PDFs that are tagged and can pass the Adobe Accessiblity test? I have researched many components, but none that I have found support tagging.
I have application..its runnning on my localhost.. i need one more machine to access that application.. but when in tht link i type my IP address instead of localhost.. it showing cannot find server.. in orderr to access appplication to other machine.. as such there is no UAT server as of now...
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
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.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
I have developed a WCF .NET web service. It has evolved from a console application, hence some shortcuts were taken in VS 2008 rather than establishing the project from scratch as a WCF Web Service.
I have a page that i created a few weeks back.. had a few controls on the page.. everything worked and works great. Now this past week we had to me some changes to the page, adding a few more controls to the page.. the issue is that now, all the new controls.. (standard .net controls within VS2008) are not accessible from the code behind..
Example, if i add a textbox today to the page.. when i go to the code behind and begin to type textbox1. intellesense doesnt do anything.. and if i complete the line i get a wavy line under it..
In order to gain access to the textbox i have to add this to the code behind
I have an ajax tab container in an aspx page. Earlier I had 2 tab panels in the tab cotnainer. Now I want to add third tab panel. I could add the third panel but I am able to access the third panel, i.e. When I click on third panel, the panel is not shown(I didnt even get the handy cursor when i place the cursor on the third tab panel name).
In my namespace I can have public classes which are accessible to all other pages in my namespace. How do I go about having public functions? Do I have to create a class with the functions in it? Or is there an easier way?
So - to start with textbox1.text is set to 1. But - If I do a postback, the value of textbox is lost - it's just empty. I need to pick up the value of the textbox during "DoThis()" but it only works the first time round.
Surely the value of the textbox is accessible during Page_Iniit?
I'm doing somehting stupid here.
(And BTW - I have to call DoThis from page_Init as that method also adds other controls to the page but I need to get this code working first)/
i'm using VS2005 and when i drag and drop an image button, i can't access it from code behind. the following is an example of an unaccessible imagebutton
I have a web page that I am converting from classic ASP to ASP.Net. There are a bunch of "Select" controls (DropDown Boxes) that I am changing to DropDownList controls. I have set the "runat='server'" in all of these controls. However, when I go to the code-behind, they are not visible/accessible. I have tried to "clean" the solution and rebuild it and the controls still won't show.
On Default.aspx.vb page under on_load sub I'm setting a value on Session() but, if I try to access the same value on Default.aspx, it shows as empty. Here is the code:
I have an application that runs on a client's server built on a SQL Server 2005 database.We have now developed an ASP.NET v2 application which connects to this database. This web application will be hosted on an ISP's server but needs to access the SQL Server database on the client's server.
The client's server has a firewall and so forth so I assume it should be possible to make the SQL Server accessible via the Internet but of course I am woriied about security. Can someone point me to some best practices to achieve this.
I'm getting this error when trying to connect to SqlServer:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
A few points:All was working well 6 hrs before, and I didn't change anything.I get the error anytime I try to connect to a local database (not remote, but I tried anyway to allow remote connections and here's a screenshot of what I get - there's nothing there:
http://www.zumodrive.com/share/5OKBNDg0OT)Screenshot of trying to configure SqlDataSource control: http://www.zumodrive.com/share/5OJEYmVhMm Screenshot of trying to connect in Sql Server Management Studio: http://www.zumodrive.com/share/5OJINGQ2MG
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
After looking at about 200 examples on this and other sides, I combined several pieces of code that I found and created one to upload an image, give it a random name, verify that a file with that same names doesn't already exists on the server, resize the image 3 different ways; one keeping aspect ratio and two square thumbnails; and save them to different folders in the server. This is the code:
I get the error on intellisense: Overload resolution failed because no accessible DrawImage can be called without a narrowing conversion. ..... Argument matching parameter 'srcX' narrows from 'Double' to Inter... narrows from 'Double' to 'Single'.
There is content page where I have grid, when I click on it, I am displaying modal popup. Everything works fine. The only problem is: I have close button on top of the modal popup window. If modal displays on top of the image, and if I click on close button, then close button event will not fire, insted it redirect to google.com. All other controls besides image are not accessible. If image is not behind of modal (if I scroll down the page), then close button event works fine.
I'm fetching some settings out of the database based on a value passed from a query string. Out of these settings, a few will be used in master page, few on my Page and few in my user control (say login control which is a web user control).I've an entity class MySetting for it and there is a method in my data access layer which returns me an instance of MySetting when I pass the value I got in query string.
I don't want to fetch settings from the database multiple times for one request. I'm using asp.net web forms with C# and sql server.
I am using third party component for printing purposes (Combit list and label). There is dll which has function for printing. (means it suppresses the print dialgue box and have information embedded in a file about the printer location). The printer is shared printer and attached to machine which is different from the development machine. Now the printing from this printer works fine during debugging. But when I publish the pages in virtual directory and then executing the application does not print. (pages are also published on the development machine).
I have a PlannerShiftView user control in the root folder of my ASP.NET web site. In my App_Code folder, I have a ShiftViewTemplate class that needs to instantiate a PlannerShiftView (for a TemplateField in a GridView). The problem is, the following code doesn't compile because the PlannerShiftView type is not available in what I deem to be the App_Code 'phantom namespace'.
Please can somebody explain to be what is happening here, as well as what to do. I know I can just move the ShiftViewTemplate out of App_Code, going against convention and without explantion, but that is something of a hollow victory.