Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all 3509 articles
Browse latest View live

Logging in using asp.net built-in login page, Bad Error!

$
0
0

Hi I have created an asp.net Web Forms Website in vs 2012 ultimate and it has some forms and a login service. I created a user and it seems that VS will automaticly create an SQL Database (.mdf) (for user accounts and passwords) and a connection string will added to web.config file, I will run it on VS using Ctrl + F5 and it works fine in signing in but when I publish this site (I think it is precompiled) and create a site with this physical path in IIS 8.0 Manager and then browse it with IE when I want to login this exception happens, what can I do?

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: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.
)

SqlException (0x80131904): 
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5295167
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +242
   System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover) +5307115
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) +145
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) +920
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) +307
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions) +434
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +225
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +37
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionOptions userOptions) +558
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnectionOptions userOptions) +67
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1052
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +167
   System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +143
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +83
   System.Data.SqlClient.SqlConnection.Open() +96
   System.Data.SqlClient.SqlProviderServices.UsingConnection(SqlConnection sqlConnection, Action`1 act) +79
   System.Data.SqlClient.SqlProviderServices.UsingMasterConnection(SqlConnection sqlConnection, Action`1 act) +384
   System.Data.SqlClient.SqlProviderServices.GetDbProviderManifestToken(DbConnection connection) +241
   System.Data.Common.DbProviderServices.GetProviderManifestToken(DbConnection connection) +26

Using Page Inspector on web sites

$
0
0

Is it possible to use page inspector on web sites on the internet, say www.google.com?

I know I can use it for my sites, but what about using it like firebug so that I can see whats going on with another pages.

Cant install Visual Studio 2010

$
0
0

Hello all, just to give some background info: I just bought a new laptop (64 bit Windows 7) and have updated it. I have previous experience in working C++.

Now, the problem is no matter i downloaded the installer from this http://www.microsoft.com/en-us/download/details.aspx?id=14632#system-requirements (x64) or the x86, i can't seem to get the program in my computer. Can anyone tell me why is this so and the steps needed to install it?

Thank you so much in advance and reading this thread!

Visual Studio 2012 build error with old website(VS 2010 build successfully)

$
0
0

Hi, Same as Title. I got an error( many page and usercontrol in my website also get error).

I tried remove visual studio 2012 then rebuild by VS 2010, Its build successfully

I need help. Here my picture error

I need to total radio button lists responses from a survey to another page, how can I code this?

$
0
0

I need to total the responses from several radio button lists from a survey to another page, how can I code this? The responses are yes or no for each set of rbl's. I couldn't get a screenshot of the survey to load on here. Below is code that I started but I don't think it is right. I'm thinking I will need individual if, else statements for each radio button list but not sure how to do this so it will add the total number of yes or no for each response for say a two week period. Any help will be greatly appreciated.

//User defined method to calculate the survey results
private void DisplaySurveyResults()
{
if (lblTrainerOnTime = checked)
{

}

Include items to solution folder from vsTemplate

$
0
0

Hi all,

i have created a visual studio template.. where its get created some projects.

Now i need to include the solution folder to it and add some plain files(i.e txt, config.. or some independent files) to this folder.

right now i can create solution folder from template. but i cant add any items to it... how to do it.

from templateContent i added solitionfolder tag and inside i added projectItem thats vain. i also mapped projectTemplateLink to template whose Type is Item...thats to no use..

any solution for this...

No video support in VS???

$
0
0

How come Visual Studio 2012 doesn't support the HTML video tag??? That seems to be a MAJOR oversight....

Warning    2    Validation (HTML5): Element 'video' is not supported.

And now I can't even publish my website, because it refuses to let me bypass the error.

Websockets

$
0
0

Hi,

How can I find out if a page uses websockets from my browser?

Thanks


Multiple Web.Config

$
0
0

When I have a Web Application Project in Visual Studio 2010 I get a choice of multipe web.config files. I get one for each configuration.

When I have a web site without project file I loose the feature.

Is that correct?

Error screen shows a different .NET version than the development IDE .NET version selected for the project

$
0
0

Hello,

I'm developing a web application project in .NET Framework 4.5, ASP.NET 4.5, MVC 4 in Visual Studio 2012 Pro, SP1, executing in Visual Studio Development Server on a Windows 7 Ultimate, SP1 computer.

When I run my ASP.NET 4.5 web application project using CTRL-F5 in VS Development Server on VS 2012, and I get an error screen, the error screen shows a different .NET version than the development IDE .NET version selected for the project?

The error screen shows this: "Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 "

When I view the properties for the project, the Application tab Target Framework field shows .NET Framework 4.5

The Control Panel Pograms and Features shows Microsoft .NET Framework 4.5 is installed.

I'm not concerned about the error, I know what it is.  I just want to know why it shows a different version than what I am expecting.

Is my project using .NET 4.0 or .NET 4.5?

Any help would be gratefully appreciated.

Thanks, Tony

downloading vs2010

$
0
0

I want to download vs2010 professional edition which when I tried to download from Microsoft

site it gives trial edition for 30 days but I want full ,proper version for my web development.

Can I use "ultimate" edition ?will it supported by windows xp or server 2003?what is a difference

between professional edition and ultimate edition.

Auto Scrolling or Sliding Paging in Gridview

$
0
0

i want to auto scroll or slide paging in gridview. please give me solution

Reg Installing SQL Server 2005

$
0
0

Hi,

I have installed Visual Studio 2008 and i am trying to install SQL Server 2005 full version,after some steps-

ERROR :

SQL Server Setup failed to obtain system account information for the ASPNET account. To proceed reinstall the .NET Framework, and then run SQL ServerSetup again.

This Error occurs at Report server installation option wizard for installing Default Configuration.

Please help to rectify and install the SQL Server 2005.

Calling powershell in VB

$
0
0

Dear Expert,

Need your support to working with VB, this is my first time i am trying to develop program in VB and calling powershell command,

following below microsoft link , but did not success however could any one guide me steps by steps for initailly...

http://msdn.microsoft.com/en-us/library/bb332449(v=exchg.80).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

Imports

System.Management.Automation

Imports

System.Management.Automation.Host

Imports

System.Management.Automation.Runspaces

Imports

System.Collections.Generic

Imports

System.Collections.ObjectModel

Public

Class

Form1

Dim Out As

Object

PrivateProperty info As

Object

PrivateSub Form1_Load(ByVal sender As System.Object,ByVal e As System.EventArgs)HandlesMyBase

.Load

Dim rsConfig As

RunspaceConfiguration

rsConfig =

RunspaceConfiguration

.Create()

Dim snapInException As

PSSnapInException

Diminfo = rsConfig.AddPSSnapIn(

"Microsoft.Exchange.Management.PowerShell.Admin"

, snapInException)

Dim myRunSpace As

Runspace

myRunSpace =

RunspaceFactory

.CreateRunspace(rsConfig)

myRunSpace.Open()

Dim pipeLine As

Pipeline

pipeLine = myRunSpace.CreatePipeline()

Dim myCommand AsNewCommand("Get-Command"

)

pipeLine.Commands.Add(myCommand)

Dim commandResults AsCollection(OfPSObject

)

commandResults = pipeLine.Invoke()

End

Sub

End

Class

Nuget Packages - Freezing on Install

$
0
0

Hi there,

I have an issue installing Nuget packages on my MVC3 projects in Visual Web Developer. If I use the GUI via Visual Studio, it hangs not long after I click install. I have to kill Visual Web Developer via Task Manager to get out of it.

Up untill yesterday, I could still install packages to my projects via the Package Manager Console but now that too hangs every time. Again, the only way out of it is to kill Visual Web Developer via the Task Manager.

I've repaired the VWD install twice to no avail.

I had MVC4 installed (but I'm not using it so I uninstalled that). - no luck.

My set up is:

Visual Web Developer 2010
MVC3
Visual Studio Service Pack 1

Like I say, it's all been working ok until recently. Can anyone help? I need to get this up and running asap.

Thanks,


Auto pasting on save

$
0
0

A few of us have had this issue in our office. I was wondering if anyone else has experienced this and knows a solution.

We have reshaper 7 installed in VS 2010. For a legacy vb app its so slow because of all the errors, we disable it. When that's done certain pages have issues where every time you save the page it auto copies certain sections of the markup over and over. So you end up with hundreds of repeated lines of markup.

I've worked around this by making one minor save at a time, closing the page and then re-opening. If I work on the page for more than one or two edits, the auto pasting starts up again.

Another developer spent a day removing and resinstalling VS, but I don't think this is the culprit since now others have the same issue.

Does anyone have any ideas on this?

Microsoft Visual Studio 2010 backgrounds

$
0
0

I have wrote a ASP.NET system for our old payroll system (which has been replaced) to keep online the old data. I used Visual Studion 2010 Professional to construct it.

Now the screens I use have plain background colors. Bland I say.

Anyway to get special colors or background skins to show up?

Thanks,

Deaf

Visual Web Developer 2008 and ASP.NET 4.0

$
0
0

Can I create an ASP.NET 4.0 web application / project using Visual Web Developer 2008?

Background - I'm still running XP, which I believe limits me to Visual Web Developer 2008.  I can't upgrade from XP because I have other utilities which won't run under more recent Operating Systems.  The server I'm developing my application for already has ASP.NET 4.0 for other web pages in the site.  So, how do I proceed (answers along the lines of 'upgrade everything to the latest version' won't help me).

I have loaded the ASP.NET 4.0 Framework onto my XP system via windows update (i.e C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319 exists)

Problem keeping data connection in server explorer alive...

$
0
0

Hi,

Currently i'm running visual studio 2010 and I'm having problems keeping my data connections alive.

After I've launched VS, I can create a data connection to my SQL server. I see all tables and everything works great.
When I close VS, and launch it again, the connection is still visible, but broken (red cross). I'm not able to retreive any table info.
After I delete the connection, I'm not able to recreate the connection again. I have to wait some time or reboot my machine.
It's very unpleasant to recreate the connection again everytime I close VS.

Does anyone know how i can fix this issue?

Thanx



Visual studio Express is it or isn't it?

$
0
0

From the Getting started page there is  a link  "Install Visual Studio 2012 Express "FREE".

This doesn't seem to be the same Express edition I've come to expect from Microsoft, unless I'm missing something. The last time I tried installing this it turned out that it was just a 30 day trial and not in fact one of the Express editions like I have had on my machine before Not only that but honestly I really don't want to waste another half day doing all that just to find out that it was a waste of time. So can anyone tell me if in fact this link does take you to a Express edition  as in actually "FREE" or would it just give me another trial edition.

Viewing all 3509 articles
Browse latest View live




Latest Images