Showing posts with label file. Show all posts
Showing posts with label file. Show all posts

Tuesday, March 27, 2012

Analysis services

I am doing a data mining project using the census bureau data set. The data set is a pdf, so I saved it as a text file, I imported as a flat source file and am trying to create my data source? But am having trouble with this? Please help?

Can you post details of the errors you're seeing? This might be a question for the Integration Services forum.|||i fixed the error. but thanks. Perhaps, you could help me with Analysis services, Data source views. Under the Data source views tab select tables and views, if I only have one file of data with columns and rows, is it possible to data mine this one file. or should i be incorporating more files?|||

There are no specific restrictions on the number of tables you need to use to perform data mining. You can certainly mine data in a single file/table if that contains the attributes you're interesting in mining.

For example, you could have a single customer table with demographic information like age, income and so forth and you could apply several of the available algorithms to it to derive interesting patterns - clustering to group together similar customers, decision trees to classify them based on how they behave with respect to a predictable attribute or naive-bayes to explore dependencies and differences between attributes for customers.

|||

How would you implement the MS Time series algorithm to predict population patterns? or would you suggest I use MS decision trees?

Thanks

|||Create a table with date and columns for each series you want to analyze

Sunday, March 25, 2012

Analysis service: pb when archiving/restoring from 1 machine to another

I have to install cubes on another machine (not on the same site/NT domain).
I have archived the OLAP db and generated a .cab file.

I have retored on the destination server.
It works fine in Analysis Manager console (I can process and lokk at the data).
But when I want to access the cube from Excel using OLAP cube, I have an error msg.

Is there something I need to do on the distination server ?
Langage, SP, role, version of SQLServer/Analysis services ...

ThanksWhat is the error message that you get?|||In Excel: (translated from French)
"OLAP cube not found
OLAP database ha been modified or you do not have necessary authorisation to connect to the cube
Contact your database admin"

It has something to do wuth SSPI authentication ?|||It could have something to do with the access rights...
I once saw something similar to this, and then the problem was solved by adding the user account to the OLAP admin group.

Analysis Server Database has errors. Cant delete, can't view

I tried to import a abf file in my Analysis Services using the wizard. It didn't succeed completely as I ran out of disk space. However it left my AS database in inconsistent state. I can't view anything. Can't delete anything. The entire AS is unusable at the moment. I get the following error.

"Errors in metadata manager. The dimension with ID of v_Contract, Name of Contract referenced by 'GPC GL Cube' does not exist......"

Please let me know how to restore my AS so that I can retry importing the database.

Thanks,

Ashish

I was able to remove the database. I had to stop the AS and delete the physical folders. Then restarted the AS and I was able to delete the Databases.

Hope this helps someone else because I spent some time trying to figure this out.

Ashish

Tuesday, March 20, 2012

An unexpected error occurred file 'mddiscretizer.cpp'

Hey guys,

I'm not sure if this one should be addresses to the data mining team or the analysis services team, but I first encountered this error while attempting to process a Naive Bayes mining model that has a column with only a couple of distinct values in it. I set the discretization method for the column to clusters and then tried to process the model. The processing completed with failures and complained that the column had too few distinct values to apply the selected discretization.

I have now also noticed that when I attempt to process an OLAP cube that has the same column as a measure group in it the cube processing fails with the following error:

[Analysis Services Execute DDL Task] Error: Internal error: An unexpected error occurred (file 'mddiscretizer.cpp', line 1532, function 'MDDiscretizer::GetBucketForValue').

Any thoughts on this one?
I have found a workaround for this issue:

http://zen-turkey.com/blog/default.aspx?id=32&t=An-unexpected-error-occurred-file-mddis

This seemed to resolve the issue for me, but I am not sure if this would be considered a bug or not? For me the work-around resolves the issue and I consider it closed... but it might bear further investigation...

Cheers :-)
|||This is still a bug that we will investigate and fix in a future release. Thanks for reporting it.

An OLE DB error has occurred - Description: "Class not registered"

Hi

I have a package the connection of which is defined in a config file. When the source is on SQLserver, the package executes fine but when i change the connection to Oracle then i am getting this error.

TITLE: Microsoft Visual Studio

Error at DMND_PROBS_EXTRACT [Connection manager "DLWSDV18.PM"]: An OLE DB error has occurred. Error code: 0x80040154.
An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".

Error at DMND_PROBS_EXTRACT [DEMANDPROBLEMDETAILS [1]]: The AcquireConnection method call to the connection manager "DLWSDV18.PM" failed with error code 0xC0202009.


ADDITIONAL INFORMATION:

Exception from HRESULT: 0xC020801C (Microsoft.SqlServer.DTSPipelineWrap)


BUTTONS:

OK

Please let me know if theres any solutions.

Thanks,

Vipul

Do you have the Oracle client tools installed?|||Yes Phil, there was some problem with my oracle install. I re-installed it and it worked.

Sunday, March 11, 2012

an error with a subreport

Hello , I have created a new project of reporting services, then I added a rdl file of another report this latter contain asubreport, then when I tried to run this report the rendering of the sub report is failed displaying this error message :

[rsErrorExecutingSubreport] An error occurred while executing the subreport ‘AcctSummarySR’: Report /Sous-rapport Rsum du compte cannot be compiled. Verify the report name and that the report is in the current project.

Even when I add a new sub report the same error message is diplayed related to the new report

Thanks in advance

Both report files (main report and sub report) have to be included in your VS project.|||How do I reference a report in another project (but in the same solution) as a subreport?

an error with a subreport

Hello , I have created a new project of reporting services, then I added a rdl file of another report this latter contain asubreport, then when I tried to run this report the rendering of the sub report is failed displaying this error message :

[rsErrorExecutingSubreport] An error occurred while executing the subreport ‘AcctSummarySR’: Report /Sous-rapport Rsum du compte cannot be compiled. Verify the report name and that the report is in the current project.

Even when I add a new sub report the same error message is diplayed related to the new report

Thanks in advance

Both report files (main report and sub report) have to be included in your VS project.|||How do I reference a report in another project (but in the same solution) as a subreport?

an error while trying to read .sdf file from the pc application ? please help

hi

i have a problem with reading sql mobile database existed on the pc

i made a sql mobile database connection with ( Add New Datasource ) and then set

the datasource of dataviewgrid to display the returned dataset .

at run time i have an exception said :

cann't find the library with the name sqlceme.dll as i remember ,

can you help me solving this problem because i very need this step , please ?

regards

This looks to be a Sql Mobile setup or configuration issue. Moving the thread to the Sql Mobile forum.|||

SQL Mobile did not support Windows Applications before. It was integrated only with Device Applications. However, we will be releasing SQL Server Everywhere on desktop which you can use on desktop.

See the following URL for more details:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=295034&SiteID=1

Thanks,

Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Ev, Microsoft Corporation

|||Is it posible to provide a link to the thread in the Sql Mobile forum?

an error while trying to read .sdf file from the pc application ? please help

hi

i have a problem with reading sql mobile database existed on the pc

i made a sql mobile database connection with ( Add New Datasource ) and then set

the datasource of dataviewgrid to display the returned dataset .

at run time i have an exception said :

cann't find the library with the name sqlceme.dll as i remember ,

can you help me solving this problem because i very need this step , please ?

regards

This looks to be a Sql Mobile setup or configuration issue. Moving the thread to the Sql Mobile forum.|||

SQL Mobile did not support Windows Applications before. It was integrated only with Device Applications. However, we will be releasing SQL Server Everywhere on desktop which you can use on desktop.

See the following URL for more details:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=295034&SiteID=1

Thanks,

Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Ev, Microsoft Corporation

|||Is it posible to provide a link to the thread in the Sql Mobile forum?

An error occurred during the execution of the SQL file InstallRoles.sql.

Error text:

An error occurred during the execution of the SQL file 'InstallRoles.sql'. The SQL error number is 446 and the SqlException message is: Cannot resolve collation conflict for equal to operation.
Cannot resolve collation conflict for equal to operation.

Erroroccurred when running 'aspnet_regsql -Sservername-E -ddatabase -A r'
with previously installed mambership scheme ondatabase.

When googling on this issue, one post on forums.asp.net is listed but link is dead...
please help...



ADDITION:

Also I forgot to mentiona few things(thanks to Kris):
dead link url:forums.asp.net/1063397/ShowPost.aspx

An error occurred during the execution of the SQL file 'InstallCommon.sql'.

Hi,

I'm using Microsoft Visual Studio 2005 Beta 2.

I have created Personal Site using Project Template. 1st it started giving me error related to "Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."

Then i made changes in web.config under configuration "User Instance=True" to "User Instance=False".

Now it started giving me error as follows:
An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 262 and the SqlException message is: CREATE DATABASE permission denied in database 'master'.
Creating the C__INETPUB_WWWROOT_SITE_APP_DATA_ASPNETDB database...

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.

SQLExpress database file auto-creation error:

The connection string specifies a local SQL Server Express instance using a database location within the applications App_Data directory. The provider attempted to automatically create the application services database because the provider determined that the database does not exist. The following configuration requirements are necessary to successfully check for existence of the application services database and automatically create the application services database:

    If the applications App_Data directory does not already exist, the web server account must have read and write access to the applications directory. This is necessary because the web server account will automatically create the App_Data directory if it does not already exist. If the applications App_Data directory already exists, the web server account only requires read access to the applications App_Data directory. This is necessary because the web server account will attempt to verify that the SQL Server Express database already exists within the applications App_Data directory. Note that revoking read access on the App_Data directory from the web server account will prevent the provider from correctly determining if the SQL Server Express database already exists. This will cause an error when SQL Server Express attempts to create a duplicate of an already existing database. SQL Server Express must be installed on the machine. If the application services database does not already exist, the SQL Server Express service account must have read and write access to the applications App_Data directory. This is necessary because the SQL Server Express service account will create the application services database. The web server account used to connect to SQL Server Express must have rights to create a new database.
      When using the local web server(Cassini) installed with Visual Studio, the logged-in user needs the dbcreator privilege in the appropriate SQL Server Express instance. When using IIS, the process account needs the dbcreator privilege in the appropriate SQL Server Express instance. Only consider granting a process account dbcreator privilege on secure development machines. Do not grant the dbcreator privilege on production machines without fully investigating and understanding the security ramifications of running a production web server with the dbcreator privilege. The process account requiring dbcreator privilege varies depending on operating system platform and ASP.NET configuration settings: For IIS5, and IIS6 running in IIS5 isolation mode, the default web server account is the local ASPNET machine account. For IIS6 native mode, the default web server account is NETWORK SERVICE. If application impersonation is enabled, then the application impersonation account requires the dbcreator privilege. If an explicit account was specified for the web server process (either in the <processModel> element for IIS5 and IIS5 isolation mode, or the application pool account on IIS6), then the explicit account requires the dbcreator privilege.

Stack Trace:

[SqlExecutionException: An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 262 and the SqlException message is: CREATE DATABASE permission denied in database 'master'. Creating the C__INETPUB_WWWROOT_SITE_APP_DATA_ASPNETDB database...] System.Web.Management.SqlServices.ExecuteFile(String file, String server, String database, String dbFileName, SqlConnection connection, Boolean sessionState, SessionStateType sessionStatetype) +783 System.Web.Management.SqlServices.SetupApplicationServices(String server, String user, String password, Boolean trusted, String connectionString, String database, String dbFileName, SqlFeatures features, Boolean install) +721 System.Web.DataAccess.SqlConnectionHelper.EnsureValidMdfFile(String fullFileName, String dataDir, String connectionString) +365

The new problem is a result of turning off User Instance. The ASP user doesn't have the permissions to create databases and do the other things specified in the message. User Instance set to true will give your ASP user administration permissions. Your choices are to grant all the approprite database priviledges as specified in the error message to the asp user or to get user instance working. User instance probably didn't work because the asp user didn't have Windows read write permissions to the directory where the database files are located.

Wednesday, March 7, 2012

An attempt to attach an auto-named database for file......

I've read through all the posts in this fourm that are related to the problem I'm getting with this error message on my main form, but none of the fixes seen to solve the problem. So I hope someone can get me pointed in the right direction.

I'm running visual studio 2005 professional, and SQL Server 2005 Express Edition and this is a desktop application. I added the db file to the solution with the Add New Data Source wizard, I can create the datasets and preview the data correctly.

An attempt to attach an auto-named database for file C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\dbInventory.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

When I run the program the exception is throw in the Settings.Designer.vb code, Public ReadOnly Property for the connection string. The InnerException is this...

{"An error occurred loading a configuration file: Could not find a part of the path 'C:\Documents and Settings\<UserName>\<ApplicationName>.vshos_StrongName_1sdf1e34hkn1hqmkn2bgjjwstusfj2sg\1.0.0.0\user.config'. (C:\Documents and Settings\<UserName>\Application Data\...\<ApplicationName>.vshos_StrongName_1sdf1e34hkn1hqmkn2bgjjwstusfj2sg\1.0.0.0\user.config)"}

This folder doesn't exist anywhere on the system, any ideas....

TIA,

SQL Express associates specific database names with the paths where those databases reside. At some point, you've created a database with the same name as the one you're using now, but at a different path. When your code attempts to attach the database with the specific autoname, it finds that name already existing, but at a different path than the one you're specifying, so it fails.

How all this works is wrapped up in the bowles of ClickOnce deployment and SQL User Instances.

You need to clear out the pointer to your database name at the old path, which is easiest to accomplish using SSEUtil. Once you download this utility, you'll be able to easily connect to the User Instance that VS created for you and get a list of all the databases it knows about. (sseutil -L) Find the one that is the same file name as your file but in the wrong location and detach it.(sseutil -d name=c:\somepath\dbinventory.mdf) The name of the database will likely be the path to the file, this is the result of the auto naming that the error is talking about. You can learn more about auto naming and User Instances from the link I've given above.

Mike

|||

Thanks for your reply,

I have run this utility and only one instance of the database is attached. However, I have finally been able to reproduce the problem. I created two identical projects with a dataview bound to one of the tables in the dataset. In one of the test app's, I checked the "Enable ClickOnce Security Settings" in the Security Tab of MyProject settings and ran the app. This caused the error that I'm getting in my real project.....

I went back and unchecked the the Enable ClickOnce Security Setting, ran the project again and it worked fine! So I checked the real project settings and found that indeed the "Enable ClickOnce Security Settings" was enabled, however,after unchecking it and verfiying the other project settings I still am getting the same error!

I ran the sseutil again to see if something was going on, but only one instance of the database is running.

So I went back to the test app and messed around with the settings to see if I could get it to fail, nothing I did seem to create a condition that I couldn't change and get it back working correctly............until I closed the application and reopened it..........It failed as soon as I ran it and I cannot get it running by restoring the settings. I didn't change any code.

The second test app works fine................I compared the code files in the project and can't find anything different between the two.

Is there anything outside of the project files somewhere that might be causing this, registry key or such.......My brain is turning to mush at this point.

Thanks for the help, Burl

|||

Additional information,

Looks like I had multipe problems. I have a habit of moving the solution files around to different folders in VS-2003, such as ActiveProjects, ReleaseProjects, doing so never gave me so much grief as doing this in VS-2005. Just renaming the parent folder cause's the error's along with the above examples.

So, what is the answer to moving a solution to another location?

|||

In your case, it seems your configuration file had a connection string specifying the path to the database. When you moved your project, the path to the database changed and the error was generated cause your connection string was looking in the wrong place. Typically, movement of the data file is handled by the use of the |DataDirectory| macro being used as part of the connection string as in...

AttachDbfilename=|DataDirectory|MyDatabase.mdf

VS knows where the Data Directroy is for your project (or you can set it yourself programatically) and attaches the database for you. If you specify an absolute path, the database has to stay in that path as VS will not automatically change the stored connection string for you.

Mike

|||

Thanks for the reply Mike:

After finally getting this application running again, after a few days I ran into this related problem: When I try to open the Main Form in the Designer I get the Big Red X with a stack trace list and the error message as follows.

"An attempt to attach an auto-named database for file C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\dbInventory.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."

At this point the application runs fine, but I just can't view the Main Form in the designer without it barking about the database connection. Looking at the trace info, it was complaining about a userControl that gets added to the form. So I commented out the line in the designer.vb file where the userControl is added to the forms collection. The form designer now shows the form layout with no errors. I uncommented that line of code and the error came back. So this time I commented out the line again and ran the application just fine. I again uncommented the code and this time the form layout came back OK, no errors.....

Somewhere, somehow a file is getting out of sync but I sure can't find it. The connection string in the app.config file and in the Settings.Designer.vb file look correct.

App.config file string.

<connectionStrings>

<add name="<MyApplicationName>.My.MySettings.dbInventoryConnectionString"

connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\dbInventory.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"

providerName="System.Data.SqlClient" />

</connectionStrings>

Settings.Designer.vb Connection String Property

<Global.System.Configuration.ApplicationScopedSettingAttribute(), _

Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _

Global.System.Configuration.SpecialSettingAttribute(Global.System.Configuration.SpecialSetting.ConnectionString), _

Global.System.Configuration.DefaultSettingValueAttribute("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\dbInventory.mdf;Integra"& _

"ted Security=True;Connect Timeout=30;User Instance=True")> _

Public ReadOnly Property dbInventoryConnectionString() As String

Get

Return CType(Me("dbInventoryConnectionString"),String)

End Get

End Property

End Class

At least I know how to get it fixed at this point, any ideas on the cause. I deleted the bin folder contents and that didn't help.

Thanks, Burl

|||

I'm having a real problem with the path to your database in the error: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\dbInventory.mdf

I would never expect a database to be located there, that is part of the VS program installation and is not normally used as the Data Directory. Are you doing anything in your application to set the DataDirectory to this location? Where are your project files located? How did you create this database?

Also, is this a Windows Forms application or ASP.NET? Are you running your application by hitting F5?

Thanks for the additional information.

Mike

|||

I created the database using the Microsoft SQL Server Management Studio Express, version 9.00.2047.00. Later I detached the database and moved the files into a folder located in C:\MySqlDatabases. This is a Windows form application, I created a Setup Project for it as well, no clickOnce deployment. I get the errors by clicking the "Start Debugging Icon" or by pressing F5.

I started working on some userControls for this project a few weeks ago and didn't need the database until recently. So I go the add the database using the Data Source Configuration Wizard. I browsed to the file location and selected the mdf for this project in the C:\MySqlDatabases folder using Windows authentication and DataSource is Microsoft SQL Server Database(SqlClient), the connection string shows up like this "Data Source=.\SQLEXPRESS;AttachDbFilename=C:\MySqlDatabases\dbInventory.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True". It then asks if I want to copy the data file to my project and I say Yes. It then saves my connection string to the app.config file as "dbInventoryConnectionString". The connection string in the Settings Designer is "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\dbInventory.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True". The connection string in the app.config file is the same.

I don't understand why the designer is barking about the database in "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\dbInventory.mdf " when that userControl is trying to load in the main form, again if I comment out the line where it gets added to the forms collection, run the application and uncomment the line the error goes away. However, in that userControl I have one call to the database to fill a dataset, I had that code commented out while I tried to figure out what was going on. Here is the code for that call.

Private Sub CreateCategoryButtons()
Dim da As New dsCategoriesTableAdapters.CategoriesTableAdapter
Dim ds As New dsCategories da.Fill(ds.Categories)

Me.CategoryStackStrip.Items.Clear()
For Each row As DataRow In ds.Categories
Dim btn As New ToolStripButton
With btn
.Text = row.Item("Category").ToString
.Font = New Font("Tahoma", 8.25, FontStyle.Bold, GraphicsUnit.Point)
.Image = My.Resources.alarmclock
.ImageScaling = ToolStripItemImageScaling.SizeToFit
.CheckOnClick = True
.Alignment = ToolStripItemAlignment.Left
.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText
.ImageAlign = ContentAlignment.MiddleLeft
.Margin = New Padding(0)
.Padding = New Padding(2)
.TextAlign = ContentAlignment.MiddleRight
End With

' Add to Category stack.
Me.CategoryStackStrip.Items.Add(btn)

' Add click event handler for category buttons.
AddHandler btn.Click, AddressOf OnCategoryButton_Click Next

' Activates the first button in the stack.
Me.CategoryStackStrip.Items(0).PerformClick()
End Sub

Now that this code is back into the game, the application fails on trying to read the connection string property in the Settings.Designer.vb code. Exception is {"Configuration system failed to initialize"} and the innerException is {"An error occurred loading a configuration file: Could not find file 'C:\Documents and Settings\Burl\<ApplicationNameHere>.exe_Url_trdwo0grhpv0v5se5luy1xl11k1tlbl2\1.0.0.0\user.config'. (C:\Documents and Settings\Burl\Application Data\...\<ApplicationNameHere>.exe_Url_trdwo0grhpv0v5se5luy1xl11k1tlbl2\1.0.0.0\user.config)"}.

I have no idea why its looking in this location for the config file. I even deleted the dataset and rebuilt it by drag and drop from the Server Explorer onto a new dataset file. Same problem.... All the connection string information in this solution is the same.........

"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\dbInventory.mdf;Integra"& _

"ted Security=True;Connect Timeout=30;User Instance=True"

This was all working a few days ago, then I started working on it the next day and this is the mess I'm in now...........ugh.

Burl

|||

I finally uncovered the root cause of the problem......

When you try to add a user control to a Microsoft Windows Forms-based application in Microsoft Visual Studio 2005, you may receive the following error message:

An attempt to attach an auto-named database for file DriveLetter:\Program Files\Microsoft Visual Studio 8\Common7\IDE\DatabaseName.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

You experience this problem if the user control contains a data-binding object that uses an attached local database file.

http://support.microsoft.com/default.aspx/kb/908038

Ok, here is the workaround I came up with. In my userControl for the Load Event I have code that hits the database and builds some buttons for a menu strip. I wrapped the code with a designMode test.

Original UserControl Load Event:

Private Sub ucNavigation_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' Add Category Items and Overflow items.
CreateCategoryButtons()
AddOverflowItems()
' Set Height.
InitializeSplitter()
End Sub

New UserControl Load Event:

Private Sub ucNavigation_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' Add Category Items and Overflow items.
If Not Me.DesignMode Then
CreateCategoryButtons()
End If

AddOverflowItems()
' Set Height.
InitializeSplitter()
End Sub

After adding the code I closed all the open windows in the designer and rebuilt the solution, now all of the forms open with no errors and no more database or connection string errors. I hope this information helps someone else, cause it's been a real nightmare for me, so for now I've got my fingers crossed...........

Burl

|||

Thanks for the update Burl,

This is good information for everyone who is working with user controls.

Mike

An attempt to attach an auto-named database for file failed.

Hi,

I recently installed VS Web Developer Express Ediition and SQL Server Express and I'm doing the How To tutorials and I can't finish the basic data access walkthrough:

http://msdn2.microsoft.com/en-US/library/tw738475.aspx

Because I get an error like this (link for complete error below):

An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
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: An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

http://pastecode.com/6196

When I am setting up the data source for the gridview tool, everything works fine and the test query works fine, but then when I try to actually test the output in the browser with Cntrl+F5 I get this error.

I have been trying for 48 hours to find a solution on my own. I have googled, I have searched everything and I just am at a point where I think I need to ask someone for help.

Please help.

Make sure the file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\test.mdf failedis not being used by other process. If it is the data file of some database in the SQL instance, you can't attach it by using AttachDBFileName property in the connection string.|||How do I do make sure it's not being used by an other process?|||

In other words, make sure it has not been attached in any SQL instance, and no other application is using it to create a connection.

|||

Thanks for your help so far.

But, how do I do that? How can I tell if another application is using 'it' to create a connection? I am using Visual Web Developer and SQL Server Management Studio Express and SQL Server Configuration Manager. Also when I hit 'Cntrl+F5' while in Visual Web Developer the page opens up in Firefox (my default browser).

I am not using the database for anything else. I have no idea how to monitor SQL instances. I am just beginning to learn these things and am working with tutorials that aren't working for me.

|||

First of all, you aren't crazy or a no brained soul. This is not you. This is quirkiness in how Microsoft (and I am their biggest fan), in trying to make things easier, has somehow made CHANGES to your SQL environment difficult. I am working on sorting this out and creating some kind of a flow chart to troubleshoot all of this, but here are some insights in the meantime (Gurus - please correct me where I am wrong on any of this):

* ASPNETDB.MDF seems to occur for every ASP.NET application and should appear in the |DataDirectory| - which is normally(?/automatically?) APP_DATA

* I think it gets automatically created the first time you run your app (because it seems to me to not be there, then suddenly appear) but it may be under program control - I don't know

* if you have an instance that has been named ASPNETDB or ASPNETDB.MDF in your Sql database, connecting a new one will fail as a duplicate, so use Sql Management Studio to rename any such instances to something unique, like "c:\Webs\PartnerPortal\Northwind Traders\App_Data\ASPNETDB.MDF" instead of just "ASPNETDB.MDF"

* In my environment I have several named instances of Sql Server, including: "STARTEAM" (a Borland created named instance), "OFFICESERVER" "SQLEXPRESS" "MSSQLSERVER" and "MICROSOFT##SSEE" (Mobile edition). However, none of these are useful to me. I have uninstalled SQLSERVER (SQL 2000) and SQLEXPRESS. The one I NEED does not appear - which is the unnamed instance - SQL Enterprise 2005. To access that all I do is enter the server name, ip or .\

* I was using Microsoft Expression Web to edit the default connection string (and this is identical in Server Explorer in VS 2005 also). It asks you the provider. I was using the defaul and could not enter .\ as my Sql Server. I only had the other useless named instances and could not successfully connect. SOOOO I changed the provider. I had two choices:

"Microsoft Sql Server" and "Microsoft Sql Server Database File" (along with "Sql Server Mobile Editiion", etc).

* I changed my selection FROM "Microsoft Sql Server" TO "Microsoft Sql Server Database File". This allowed me to edit the server to be .\ when I went back to my connection string

* Then I changed the provider BACK and now I had the choice I needed! I think that the choice are coming from the registry and it got out of sync

Anyway, now I can connect. I think that connectionString updates the registry, where the problems lie.

*************************************************
Here is the skinny on troubleshooting connections:
*************************************************

(1) have you run aspnet_regsql from a command prompt at the c:\windows\Microsoft.net Framework v2xxx directory?

(2) did you create a virtual directory for your app and enable Asp?
(I have a separate memory pool for each version of Asp - another matter)

(3) did you change the Asp settings to the right connection string? The important things are: .\SQLEXPRESS or .\ or your named instance. If you do not use SQLEXPRESS then User Instance must be False

(4) are all of your instances of ASPNETDB.mdf named uniquely? (Ie: include a path)

(5) does IIS_WPG have sufficient rights to your web directory (this may not be true if you put your webs in your "My Documents")

(6) In VS2005, did you go to Websited-Asp config?

(7) Do you have the right settings in your Web.config?

(8) You must not have extraneous copies of Web.config on your path - they will be automatically referenced in the project. Ie, creating a backup in a subdir, is trouble.

(9) did you set your Default.aspx as the Startup page? (and the right project as the startup project if you have multiple projects?)

(10) did you use Server Explorer to try a different provider, update the registry choices of servers and to include your unnamed instance, per above?

Does Machine.config figure into this?

What have I missed or misstated?

To be honest, having done all of this, I still seem to have a web that I am still troubleshooting the connection for!


****
If anyone can correct, add or improve on the above, please do. What i would love to see is a Visio flowchart in a .pdf that could be emblazoned here. I can be reached at my gmail account of norisksoftware at gmail . com
AND I am looking for contract work doing almost anything technical (web, C#, consulting, Cobol, EDI..) that pays well. I was out of the country for 2 1/2 years and my business kind of dried up. Go figure.

Bill Ross

|||Hi Bill, by default .NET 2.0 security providers(membership, profile, ect.) use a connection string named LocalSqlServer, to learn more details you can take a look at this article:

http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx

An attempt to attach an auto-named database for file failed

Hi

I have a problem when I want to open a page with the database record. This page is created in Visual Web Developer 2005 Express. When I try to open a page I get the following error message even though the connection between the database is ok:

An attempt to attach an auto-named database for file C:\Inetpub\wwwroot\membership\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

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: An attempt to attach an auto-named database for file C:\Inetpub\wwwroot\membership\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

I have a computer with Windows XP Professional running IIS 5.1 and ASP.NET 2.0.
Also I have SQL Express on my machine.
Does any one know how to resolve it.
ThanksSmile [:)]

Here is the entire error message that I am getting:

Server Error in '/membership' Application.

An attempt to attach an auto-named database for file C:\Inetpub\wwwroot\membership\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

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: An attempt to attach an auto-named database for file C:\Inetpub\wwwroot\membership\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[SqlException (0x80131904): An attempt to attach an auto-named database for file C:\Inetpub\wwwroot\membership\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.] System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +437 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84 System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197 System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +1121 System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +105 System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42 System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +83 System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +160 System.Web.UI.WebControls.Login.AttemptLogin() +105 System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +99 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102



Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

|||

This is what I found in the event viewer:

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 1/24/2006
Time: 5:17:15 PM
User: N/A
Computer: DEVELOMPMENT-CO
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/24/2006 5:17:15 PM
Event time (UTC): 1/24/2006 10:17:15 PM
Event ID: 29652843fd234fc6a5a00bd4f9652894
Event sequence: 4
Event occurrence: 3
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/ROOT/membership-7-127826143653860928
Trust level: Full
Application Virtual Path: /membership
Application Path: C:\Inetpub\wwwroot\membership\
Machine name: DEVELOMPMENT-CO

Process information:
Process ID: 2724
Process name: aspnet_wp.exe
Account name: DEVELOMPMENT-CO\ASPNET

Exception information:
Exception type: SqlException
Exception message: An attempt to attach an auto-named database for file C:\Inetpub\wwwroot\membership\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Request information:
Request URL:http://localhost/membership/Login.aspx
Request path: /membership/Login.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: DEVELOMPMENT-CO\ASPNET

Thread information:
Thread ID: 1
Thread account name: DEVELOMPMENT-CO\ASPNET
Is impersonating: False
Stack trace: at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate)
at System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation)
at System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate)
at System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat)
at System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved)
at System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password)
at System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e)
at System.Web.UI.WebControls.Login.AttemptLogin()
at System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details:

For more information, see Help and Support Center athttp://go.microsoft.com/fwlink/events.asp.

This is the connection string:

<connectionStrings>

<addname="Membership"connectionString="Data Source=.\SQLEXPRESS;Integrated Security=True;User Instance=True;AttachDbFilename=|DataDirectory|aspnetdb.mdf;"

providerName="System.Data.SqlClient" />

</connectionStrings>

Thanks for any responses.

|||

More information about this error. My web site works fine when I run it on this built in Asp.net Developer Server that comes with Visual Web Developer. I don't know why it doesn't work on my IIS 5.1 Server.

Any suggestions?

|||

Hi,

The following URL has some explainations and things to try with this error

http://forums.microsoft.com/msdn/showpost.aspx?postid=98346&siteid=1

Hope that helps,

Lan

An attempt to attach an auto-named database for file C:\... failed

Hi,

I recently installed VS Web Developer Express Ediition and SQL Server Express and I'm doing the How To tutorials and I can't finish the basic data access walkthrough:

http://msdn2.microsoft.com/en-US/library/tw738475.aspx

Because I get an error like this (link for complete error below):

An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
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: An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

http://pastecode.com/6196

When I am setting up the data source for the gridview tool, everything works fine and the test query works fine, but then when I try to actually test the output in the browser with Cntrl+F5 I get this error.

I have been trying for 48 hours to find a solution on my own. I have googled, I have searched everything and I just am at a point where I think I need to ask someone for help.

Please help.

Hi,

I guess you want to attach a user instance to SQL Server. But the path specified for the user instance is a server attached instance, which makes you able to view the data through the server explorer but won′t make you able to use the run the code, because at startup VS will try to create a user instance at the location specified (which is already occupied by the server instance database) and which will fail. The solution is to specify another folder to create the suer attached instance during the build of the code, thats all. That should make you able to run the build process as well as the code.

HTH, Jens K. Suessmeyer.

http://www.sqlserver2005.de|||

Try this in the config file ...

Data Source=.\SQLEXPRESS;AttachDBFilename=C:\...\db.mdf;User Instance=true

An attempt to attach an auto-named database for file C:\... failed

Hi,

I recently installed VS Web Developer Express Ediition and SQL Server Express and I'm doing the How To tutorials and I can't finish the basic data access walkthrough:

http://msdn2.microsoft.com/en-US/library/tw738475.aspx

Because I get an error like this (link for complete error below):

An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
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: An attempt to attach an auto-named database for file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

http://pastecode.com/6196

When I am setting up the data source for the gridview tool, everything works fine and the test query works fine, but then when I try to actually test the output in the browser with Cntrl+F5 I get this error.

I have been trying for 48 hours to find a solution on my own. I have googled, I have searched everything and I just am at a point where I think I need to ask someone for help.

Please help.

Hi,

I guess you want to attach a user instance to SQL Server. But the path specified for the user instance is a server attached instance, which makes you able to view the data through the server explorer but won′t make you able to use the run the code, because at startup VS will try to create a user instance at the location specified (which is already occupied by the server instance database) and which will fail. The solution is to specify another folder to create the suer attached instance during the build of the code, thats all. That should make you able to run the build process as well as the code.

HTH, Jens K. Suessmeyer.

http://www.sqlserver2005.de
|||

Try this in the config file ...

Data Source=.\SQLEXPRESS;AttachDBFilename=C:\...\db.mdf;User Instance=true

An attempt to attach an auto-named database for file aspnetdb.mdf

having exhaustively searched the forum and tried everything over the pas few days im still recieving :

Error Caught in Application_Error event
Error in: http://mysite.com/site1/index.aspx
Error Message: An attempt to attach an auto-named database for file E:\Inetpub\wwwroot\mvate.com\WapCms\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
Stack Trace: at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate)
at System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation)
at System.Web.Profile.SqlProfileProvider.GetPropertyValuesFromDatabase(String userName, SettingsPropertyValueCollection svc)
at System.Web.Profile.SqlProfileProvider.GetPropertyValues(SettingsContext sc, SettingsPropertyCollection properties)
at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
at System.Configuration.SettingsBase.get_Item(String propertyName)
at System.Web.Profile.ProfileBase.GetInternal(String propertyName)
at System.Web.Profile.ProfileBase.get_Item(String propertyName)
at System.Web.Profile.ProfileGroupBase.GetPropertyValue(String propertyName)
at ProfileGroupUser.get_ClientID()
at InfoPage.Page_PreInit(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreInit(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

help and suggestions appreciated

Looks like you are trying to attach the mdf files with a name that already exists on the server. Your best option is to rename the mdf/ldf files to a new name. then attach them. SQL Server by default tries to use the same name as the filename for the mdf/ldf files. and if a DB with the same name exists on the server it complains like it did in your message.

An attempt to attach an auto-named database for file

I build a WebApp which i use the default DataBase that come with the App_Data folder.

I have Users and roles into that folder with all my tables regarding my new App.

Why i cant make it work under IIS on my webserver ? When i open it with Visual Studio everything works but outside of it nothing.

An attempt to attach an auto-named database for file c:\inetpub\wwwroot\Survey\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf;

I look arround and cant find a thing on how to fix my issue. I try deleting the Folder under my User Account for SQL Express and nothing happend.

Make sure your IIS account (ASPNET or NETWORK SERVICE) has read&write permission on the folder where the database file locates.|||Yes i did that ! even uers have modify to it. under that folder !|||

Im still looking for help arround here !

anybody fix the issue?

|||

It is not working because IIS is not the place to store database files, you store those in the data subfolder of Microsoft SQL Server in programs. You can modify the code in the thread below for your use. You may need to start with the trail version of SQL Server and later buy the developer edition it is under $40 on the web. Hope this helps.

http://forums.asp.net/thread/977493.aspx

Sunday, February 19, 2012

american idol cat fight topless = VIRUS

THE SCR file attempts to connect
to chit.badpenguin.net
to put a virus on your computer. - RM
Laurens Holst wrote:

> No. But .SCR files are *always* virii,
Surely you mean to qualify that with "posted" .SCR files? Windows
comes with plenty of valid .SCR files.

> just like .PIF files, .COM, .LNK,
> .VBS, etc. No-one meaning any good sends those files, really. .EXE's can
> be given the benefit of the doubt when they come from someone you know,
> but still be *very* wary and suspicous about it. ZIP files containing
> .EXE's: same story, also be very wary. I have received several virii
> like that (or perhaps it was just one and the same). Generally just
> don't execute anything executable you get by email, and *especially* not
> from usenet.
> Anyways, it's weird Norton didn't detect anything bad about it. Are you
> sure its virus definitions are up to date? Or it could be a new type of
> virus which Norton has not yet listed.
I have seen viruses that were not detected until the NEXT update!-)
Happily, I waited for the update (next day) to rescan same.
I have also seen an SCR type file that Norton did not ALARM until
the "screen saver" had downloaded the actual malware. This time I
was not interested in going the next step, just in raising the alarm.

> Be aware that even using an Antivirus doesn't make you 100% safe.
> Because what if I decided to make a virus, which is new to Norton so it
> won't detect it, and I spread it by making a mass mailing to the Usenet
> (say, with the topic "american idol cat fight topless").
I'm hoping you won't DO that!-) - RM

american idol cat fight topless = VIRUS

THE SCR file attempts to connect
to chit.badpenguin.net
to put a virus on your computer. - RMLaurens Holst wrote:

> No. But .SCR files are *always* virii,
Surely you mean to qualify that with "posted" .SCR files? Windows
comes with plenty of valid .SCR files.

> just like .PIF files, .COM, .LNK,
> .VBS, etc. No-one meaning any good sends those files, really. .EXE's can
> be given the benefit of the doubt when they come from someone you know,
> but still be *very* wary and suspicous about it. ZIP files containing
> .EXE's: same story, also be very wary. I have received several virii
> like that (or perhaps it was just one and the same). Generally just
> don't execute anything executable you get by email, and *especially* not
> from usenet.
> Anyways, it's weird Norton didn't detect anything bad about it. Are you
> sure its virus definitions are up to date? Or it could be a new type of
> virus which Norton has not yet listed.
I have seen viruses that were not detected until the NEXT update!-)
Happily, I waited for the update (next day) to rescan same.
I have also seen an SCR type file that Norton did not ALARM until
the "screen saver" had downloaded the actual malware. This time I
was not interested in going the next step, just in raising the alarm.

> Be aware that even using an Antivirus doesn't make you 100% safe.
> Because what if I decided to make a virus, which is new to Norton so it
> won't detect it, and I spread it by making a mass mailing to the Usenet
> (say, with the topic "american idol cat fight topless").
I'm hoping you won't DO that!-) - RM