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

Visual Developer 2008 Express Edition

$
0
0

Selecting"Solution Express" does not give an error but fails to display a table with the associated Files. I have uninstalled and reinsalled with no improvement, I have loaded the program on another PC and it works correctly.

Ray Brown


Opening Project in VS produces reports IIS Express error.

$
0
0

I have a project that runs on https://localhost:44306 .  Yesterday by my manager's requirement I published the project for deployment to a test machine for the customers (which also is using IIS Express and is running IIS Express from the command.  However, the IIS Express on that machine for some unknown reason is not able to be configured to use SSL.  Therefore before publishing I changed the project properties so as to run usinghttp://localhost:51716 , and changed SSL Enabled to false.  (I've since discovered that this was not necessary as the web app would run under whatever bindings were entered in applicationHost.config for that web app no matter what it read when it was published.)

However, once the deployment was complete I switched the project back to SSL Enable = true and to run usignhttps://localhost:44306 .  I had to go into the applicationHost.config to put the SSL binding back into the Web site description.  However now whenever I open the project in VS 2012 I get an error message saying:

An error occured when applying the IIS Express settings 
to server URL 'https://localhost:44306' for project 'projectName'. 
You may have to manually edit the applicationHost.config file 
and make changes for your site to run correctly.

Since I've already done that then I am not sure what possible error IIS Express could be experiencing.  There is nothing in the IIS Express log files to indicate that an error even occurred.  Nor is there anything in the Event Viewer logs to show ANY error.  I cannot find any Visual Studio 2012 error logs. 

While one may be attempted to recommend that this thread be posted on the IIS.Net forums, I've found over the past year that the contributors to  that forum are unconversant with IIS Express and do not bother answer queries about it.

So to quote Star Wars;  "Help me Obi-wan Kenobi; you're my only hope."

Changing default set up of new Asp.net visual Studio 2012 Project

$
0
0

In VS 2012 the standard new Web Forms project and MVC project automatically include the DotNetOpenAuth assemblies.  We do not use Openauth.  We cannot use openauth.  In just makes for an number of additional files that are included in the project which then makes deployment exceedingly difficult, and slow over a slow network where each file being deployed has to be documented.  However, each time I try to remove them from a project to which they have been added, it makes for a long involved struggle to get to the point at which the project can be compile and published again because of all the errors that get thrown when these files and references are removed.

I would like to know how to change the default set up of a new web forms or MVC project so that it would not include these extraneous assemblies.

Thank everyone in advance for your assistance.

VS 2013 (II8 express) and MySQL slow initially (Help!)

$
0
0

Help! I have just brought a new HP Envy laptop, my old laptop had Windows 7 on it but this one has Windows 8.1 on it. I have installed VS 2013 express and installed MySQL on it (localhost) and imported my database on it to allow me to keep on developing my website. However, I have come across a problem that I cannot seem to find a fix for.

When I run my website from VS 2013 it runs it in the II8 express environment. Everything is fine with it running and it runs without errors. However, as soon I click RUN, the time it can take before the page comes up in the browser (intermittently) can take up-to 20 seconds, sometimes not at all and sometimes straight away, sometimes you will have to STOP debugging and just run again. It is annoying. It seems to be the amount of time it connecting to the MySQL server and then returning he data. When the initial connection has been made subsequent DB request as instantaneous.

I have looked on the internet a found information about disabling IPv6. Adding skip-name-resolve in the my.cnf within MySQL. I even moved the MySQL database from my server to the local PC to eliminate and network slowness but nothing. I still get WAITING FOR LOCALHOST at the bottom of the browser.

Any ideas?

Thanks.

Page.IsValid Becomes False after Custom Validator

$
0
0

I am validating my text box using custom validator but it becomes false after the validation event from code behind.

When Debug control move from custom validator event to the button click event Page.Isvalid becomes false, As it was true in custom validator event.

Please help me.

Error in executing sql query on database in Server Explorer of Visual Studio 2012 Ultimate

$
0
0

I have installed Visual Studio 2012 Ultimate. Installation is completed but following Warning is shown- "Windows Error Log file is full." I restarted computer without dealing with this warning. And created a new asp.net project. Then I added a sql server database in App_Data folder, but when I open this database in Server Explorer, I am getting in the following error -

System.MissingMethodException
Method not found: 'Void Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.GetWorkload(Int32 ByRef, Int32 ByRef, System.String ByRef)'.

at Microsoft.VisualStudio.Data.Tools.Package.StatusBarService.TotalWorkload(String& description)
at Microsoft.VisualStudio.Data.Tools.Package.StatusBarService.UpdateStatusBar()
at Microsoft.VisualStudio.Data.Tools.Package.StatusBarService.OnIdle()
at Microsoft.VisualStudio.Data.Tools.Package.UI.DataPackage.OnIdle()
at Microsoft.VisualStudio.Data.Tools.Package.Project.VsPkgIdleProcessingComponent.FDoIdle(UInt32 grfidlef)

After displaying this error message, Visual Studio is restarted automatically. Please tell me solution for this problem. Thank you.

Visual Studio 2013 Debugging Session Variable

$
0
0

In an earlier version of Visual Studio, I could see the contents of a session variable by highlighting the session variable after hitting a breakpoint.

session("UserID")

But I can't do it in VS 2013.

What am I missing?

Thanks in advance

Error JavaScript runtime error: Object doesn't support property or method 'bind'

$
0
0

After updating to visual studio 2013 update 3, I am getting the following runtime error on every page with a formview.  

Unhandled exception at line 65, column 3427 in http://localhost:53693/9b3609c5e71a4703b362072b60faa99e/browserLink 0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'bind'. 

The debugger points to this line:  

try { this.addExtension("Microsoft.VisualStudio.Web.BrowserLink.HtmlMappingExtensionFactory", (function(n,t){function k(){var b=this,w=function(n,i){var e,r,u,o;if(!i)return null;if(e=f(i),e)return e.selectorData==n?e:null;if(t(i).is(n.selector)){if(r=null,n.parent){for(u=i.parentElement,o=n.selector.split(">").length-1;o>0;o--)u=u.parentElement;s(n.parent,u)&&(r=t(i.parentElement).children(n.selector))}else n.descendant?t(i).find(n.descendant.selectorData.selector).each(function(i,u){if(s(n.descendant,u))return r=t(u).parents(n.selector),!1}):r=t(n.selector);r&&v(n,r)&&(r.each(function(t,i){if(!p(i)){var u=t%n.elements.length,r=n.elements[u];r&&a(i,r)}}),n.isInTemplateLike||d(n))}return f(i)},s=function(n,t){return w(n.selectorData,t)==n},nt=function(n){for(var u,r,t=0;t<i.length;t++)if(u=i[t],u&&(r=w(i[t],n),r))return r;return null},e=function(n){var t=f(n);return t?t:nt(n)},l=function(n,t,i){if(n<r.length){var u=r[n];if(u)return{sourcePath:u,startPosition:t,length:i}}return null},y=function(t,i){t&&(i==null&&(i=!0),n.invoke("selectRange",t.sourcePath,t.startPosition,t.length,i))},tt=function(n,t,i){return n.sourcePath.toLowerCase()!=t.toLowerCase()?!1:n.startPosition>i?!1:i-n.startPosition>n.length?!1:!0},g=function(n,t,i){var r=n.start,f=n.length,o=r+f,e=n.startTag||0,s=r+e,u=t-i;r>=t?u>=o?(r=t,f=0,e=0):u>r?(f=o-u,r=t,e=u>=s?0:s-u):r+=i:s>t?(u>s?e=t-r:e+=i,u>o?f=t-r:f+=i):o>t&&(u>o?f=t-r:f+=i),n.start=r,n.length=f,n.startTag&&(n.startTag=e)},k=function(n,t){for(var f,e,i,r;t.length>=2;)for(f=t.shift(),e=t.shift(),i=0;i<u.length;i++)r=u[i],r.sourceIndex==n&&g(r,f,e)},c=function(t,i){if(t<r.length){var u=r[t];n.invokeAsync("getChangesInFile",u).continueWith(function(n){k(t,n),c(t+1,i)})}else i()};this.getCompleteRange=function(n){var t=e(n);return t?l(t.sourceIndex,t.start,t.length):null},this.getStartTagRange=function(n){var t=e(n);return t&&t.startTag?l(t.sourceIndex,t.start,t.startTag):null},this.selectCompleteRange=function(n){y(b.getCompleteRange(n))},this.selectStartTagRange=function(n){y(b.getStartTagRange(n))},this.canMapToSource=function(n){return e(n)!=null},this.ensureUpToDateAsync=function(n){n&&h.push(n),o||(o=!0,c(0,function(){var t=h,n;for(h=[],o=!1,n=0;n<t.length;n++)try{t[n]()}catch(i){}}))},this.getElementAtPosition=function(n,i){for(var f=null,o=null,r,e=0;e<u.length;e++)r=u[e],r.start<=i&&r.length>=i-r.start&&(f==null||f.length>r.length)&&(f=r);return f&&t(f.selectorData.selector).each(function(n,t){if(s(f,t))return o=t,!1}),o}}var l=!1,r=[],o=!0,h=[],u=[],i=[],f=function(n){return n?n.__browserLink_sourceMapping||null:null},p=function(n){return f(n)!=null},a=function(n,t){n&&(n.__browserLink_sourceMapping=t)},v=function(n,t){return n.isTemplateLike||n.isParentTemplateLike?t.length%n.elements.length==0:t.length==n.elements.length},c=function(n){var r,o,e,t,f,h,u,s;for(i.push(n),r=i.length-1;r<i.length;r++)for(o=i[r],e=0;e<o.elements.length;e++)if(t=o.elements[e],t){for(f=0;f<t.children.length;f++)h=t.children[f],i.push(h);for(u=0;u<t.ancestors.length;u++)s=t.ancestors[u],i.push(s)}},d=function(n){for(var t=0;t<i.length;t++)i[t]==n&&(i[t]=null)},nt=function(n){return t(n)},g=function(n,i){for(var u=t(n),f=i.split(">"),r=0;r<f.length;r++)u=u.children(f[r]);return u},b=function(n,i){return t(n).parents(i)},y=function(n,t){var i=t(n.selector);v(n,i)?(i.each(function(t,i){var o=t%n.elements.length,r=n.elements[o],u,f;r!=null&&(a(i,r),u=r.children,e(u,0,u.length,null,g.bind(null,i)),f=r.ancestors,e(f,0,f.length,null,b.bind(null,i)))}),n.isTemplateLike&&c(n)):c(n)},e=function(n,t,i,r,u){for(var f=t;f<t+i;f++){if(f>=n.length){r&&r();return}y(n[f],u)}t+i<n.length&&setTimeout(function(){e(n,t+i,i,r,u)},5)},w=function(n,t){e(n,0,10,t,nt)},s=function(n){var v=[],l,o,i,a,e,t,f,h,r,c;if(n)for(l=0;l<n.length;l++)for(o=n[l],i={selector:o[0],elements:[],isTemplateLike:!1},v.push(i),a=1;a<o.length;a++){if(e=o[a],t=null,e){for(f=e[0],h=e.length>=2?e[1]:{},t={selectorData:i,sourceIndex:f[0],start:f[1],length:f[2],startTag:f.length>=4?f[3]:null,children:s(h.children),ancestors:s(h.ancestors)},h.templateLike&&o.length==2&&(i.isTemplateLike=!0,i.isInTemplateLike=!0),r=0;r<t.children.length;r++)t.children[r].parent=t,t.children[r].isParentTemplateLike=i.isTemplateLike,t.children[r].isInTemplateLike=i.isInTemplateLike;for(c=0;c<t.ancestors.length;c++)t.ancestors[c].descendant=t;u.push(t)}i.elements.push(t)}return v};return n.addSharedService("sourceMapping",new k),{onConnected:function(){if(!l&&n.initializationData&&n.initializationData.requestId){var i="~/__browserLink/requestData/"+n.initializationData.requestId;n.invokeAsync("resolveUrl",i).continueWith(function(i){i&&t.ajax(i,{dataType:"json",data:{version:2},cache:!0,success:function(t){l=!0;var i=s(t.map);w(i,function(){n.invokeAsync("resolveSourceFilePaths",t.files).continueWith(function(t){r=t,o=!1,n.sourceMapping.ensureUpToDateAsync(null)})})}})})}}}})); } catch(e) { this.log("Invalid extension script encountered for extension 'Microsoft.VisualStudio.Web.BrowserLink.HtmlMappingExtensionFactory'."); return; }

I can ignore the error and the formview appears to work.


Username and UserType Validation in asp.net using mysql

$
0
0

I have two tables in the database:

Login (LID,UName,UPasword,UserType_ID)
UserType(UserType_ID,UserType)

I need to validate username and usertype and create a session variable for UserName(UName).

code

 protected void Button1_Click1(object sender, EventArgs e)
        {
            name = Request.Form["TextBox1"].ToString();
            pwd = Request.Form["TextBox2"].ToString();
            conn.Open();
            MySqlCommand cmd = new MySqlCommand(" select * from login  where UName =  '" + name + "'  and  UPasword =  '" + pwd + "' ");
            cmd.Connection = conn;
           // cmd.Connection = conn;
            MySqlDataReader dr = cmd.ExecuteReader();
            if(dr.HasRows )

           {
               dr.Read();
               Session[" UName"] = dr[1].ToString(); ;
               Session[" UPasword"] = dr[4].ToString();
               Session["UserType_ID"] = dr[0].ToString(); ;
               //Session["prenom"] = dr[2].ToString();
               //Session["telephone"] = dr[3].ToString();


           
            Response.Redirect("View_Reports.aspx");
            }
            
            else
                {
                    Response.Redirect("gallery.aspx");

                }

            dr.Close();
            conn.Close();
              

            
        }

but it shows me error on this line

name = Request.Form["TextBox1"].ToString();

ERROR IS

Object reference not set to an instance of an object.

ViewSwitcher Mobile 404 error

$
0
0

Using VS 2013 Pro

After creating a file Default.Mobile.aspx and assigning it a master page Site.Mobile.Master then running it a 404 'not found' error is always returned.

Any ideas what could be going wrong, and/or is there any good reference material for this? The only stuff I can find is from 2012 or older. I have spent days downloading different packages and still the same result, so...

...have now tried creating three separate projects 'out of the box'

Web | ASP.Net web application Forms and adding MVC and/or API or just plain forms

Add the Default.Mobile.aspx file and assign it to Site.Mobile.Master  - each time I get the same 404 error when it's run

I then created a Web Forms project - Web | Visual Studio 2012 | ASP.NET Web Forms Application. With this the Default.Mobile.aspx form will run (but doesn't display the friendly URL but the full path and the aspx extension) and will switch to the main default file, but will not switch back again.

On all flavours the View Switcher control just displays as 'view | Switch to' and appears not to be loading ViewSwitcher.ascx and showing 'x view | Switch to y view'

Any ideas

Thanks

enable asp.net 4.0

$
0
0

I used vs 2010 to start a website using file system.  I already enable 4.0 framework from the application pool for the site.  Everything seems to work fine.

Now, I am trying to open the site using local IIS.  I get this message:

The ASP.NET 4.0 Web extension is not enabled on the Web server.  http://mywebsite is targeting ASP.NET 4.0.  Do you want to enable ASP.NET 4.0 on the Web server?

Action choices are: Yes, No, Cancel

What should I do?  What does that mean?  Should I stick to the file system to access my website?

Thanks.

ASP data grid

$
0
0

Hi all, I have ASP datagrid which displays few columns from database. Now i added new column(case_desc) in the database but the datagrid is not displaying the new column. I am getting A field or property with the name "case_desc" was not found on the selected datasource. Urgent pls help 

Getting Bootswatch LESS file to work in Visual Studio

$
0
0

I have installed Web Essentials 2013 for Visual Studio Update 3.

This has an LESS compiler in it which seems to work.

I created a new WebForms project which has bootstrap included

Then I installed the twitter.less NuGet package.

Then I copied the variables.less and bootswatch.less to the content folder from Bootswatch.

Then I added the import lines to the bootswatch.less file for /bootstrap/mixins and variables

When I go and view the page, NO CSS formatting shows up.

I am sure I am missing a step, but I cannot figure out what it is and after two hours of Googling, cannot figure it out.

Please help. Note this is Web Forms, NOT MVC

Thanks!

"Text Editor" option disappeard from VS2013 Fonts and Colors setting

$
0
0

Recently I had the "Text Editor" option disappear from the "Fonts and Colors" settings. It used to be at the top of the "Show settings for" list, but now the drop down starts with "Printer". I tried resetting the Visual Studio settings per another post, but the "Text Editor" option is still missing.  

See below:

Error

Passing Value from TxtBox to ASPX webpage

$
0
0

I'm having trouble understanding where to get started with this but what I'm trying to do is take data that is entered by the user in a txtBox control and passing that to a certain search field on a webpage by that fields ID. I believe it can be done via GetElementbyID but I've never used the function and not sure how to proceed with it.

Any help is appreciated.


VS2013 WebEssentials and LESS structure

$
0
0

Hi there,

Is anyone out there using WebEssentials with LESS and @import files? I'm struggling to find a LESS structure that is manageable. For example: I like to have one main main.less that imports variables/mixins/layout/typography etc. The issue I have with this is that in order to recompile main.less when I make a change to an included file (such as variables.less), I have to save variables.less and then also go and save main.less.

I have tried a few experiments creating CSS bundles but I've not found a way of doing that where I can use intellisense in the included LESS files. For example: I can't use variables in mixins.less because they are not included in that file. But if I do include the variables file in mixins.less then the variables file get's included in the css twice.

I hope that makes sense! Anyone have any ideas?

Pete

unable to see database in server Explorer

How to stop information resetting when changing web page

$
0
0

Hi,

In its simplest form, I have it set up that a user can write something in a textbox and when they submit it, it changes the text in a label to the text they have written. When this is done and I go to another page, then return to the original page, the text in the Label has re-set.

How do I go about having this information saved so that the Label text remains changed until something else is submitted through the textbox, despite moving pages?

Many thanks

VS2012 project has security issues on VS2013

$
0
0

I had an MVC project on 2012 (Windows Security) which I can run up and see the User.Identity.Name for OK, which is my PC and user name, fine so far.

Take that project and run it up on 2013 and I get an error message No Access. If I goto the configuration for  it on IISExpress, I have to set anonymous to False then I get a password prompt, I have to sign in again before I am allowed to use the site.

Any ideas why this is happening as it was all working on VS2012

ConfigureTest Explorer results in milliseconds not seconds

$
0
0

I'm trying the testing project in VS2013 and am comparing two processes that are at the sweet spot of one second and I do not know what amount of milliseconds round to 1 second.

Is there a way of just configuring the duration/time results in milliseconds for more practical comparisons close to one second?

Viewing all 3509 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>